perf(remote): release unviewed transcripts and trim live windows - #814
Open
Juliusolsson05 wants to merge 3 commits into
Open
perf(remote): release unviewed transcripts and trim live windows#814Juliusolsson05 wants to merge 3 commits into
Juliusolsson05 wants to merge 3 commits into
Conversation
This was referenced Sep 5, 2026
Make view subscriptions own transcript bodies, mapper state and replay identities. Reuse the pure desktop trim policy while preserving tool pairs, semantic owners and exact history offsets; rebuild indexes and retain identity-only tombstones for safe replay and pagination. Refs #805
A clean checkout has no parser dist directory. The shared live-window planner introduced a runtime ghost-helper import, so mirror the desktop source alias rather than relying on a warmed workspace package build. Refs #805
Juliusolsson05
force-pushed
the
fix/remote-output-backpressure
branch
from
September 6, 2026 00:21
6182392 to
205eb9d
Compare
Juliusolsson05
force-pushed
the
fix/remote-transcript-retention
branch
from
September 6, 2026 00:21
5bda3e7 to
6230658
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The phone previously accumulated every live transcript even on the session list. Transcript ownership now follows actual view subscriptions: unviewed JSONL/semantic bodies are not mapped or retained, and leaving the last view releases entries, tool indexes, mapper/fold state and identity sets. Selecting the session again backfills durable history and rejects stale pending responses.
Fixes #805
Refs #813
Dependency: incremental PR against
fix/remote-output-backpressure(#813). Merge #813 first, then retarget this PR to main and rerun checks. No merge is currently authorized. No protocol migration, desktop/worktree edits or toolkit changes.Acceptance criteria
Validation and reproducible evidence
Limits and tradeoffs
Safety constraints (active/history semantic ownership, tool pairs, missing stable identity/anchor and whole raw records) can pin a viewed window above its nominal target. Older-history reading has a 30-second trim grace. Small UUID-only tombstone sets grow during a continuously viewed session to preserve exact replay deduplication; all are released when that view ends. Live wire entries lack byte offsets and retain provider-marker fallback; history pages use exact offsets when supplied. Re-selection costs a backfill and an interrupted live turn may wait for durable completion. Mobile heap/FPS gains remain unmeasured.
Plan committed before code:
docs/superpowers/plans/2026-09-05-remote-transcript-retention.md.Current validation: rebased onto main
f7507980(toolkit #812 and MCP repair #818), head6230658d. Source changes from the earlier implementation are preserved; both required CI gates pass on this head (CI run). No merge is authorized. The initial CI packaging failure reproduced with an unbuilt parser checkout and is fixed by resolvingagent-transcript-parser/ghostto pinned source in the remote Vite config. The same unbuilt checkout now passes the full local package gate; no shared parser build or pane layout was changed.