Repository navigation
perf(remote): release unviewed transcripts and trim live windows - #814
Merged
Merged
Conversation
This was referenced Sep 5, 2026
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
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-transcript-retention
branch
from
September 7, 2026 17:04
6230658 to
c4f175f
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
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.Dependency #813 is merged. This PR now targets main
bb84772a; range-diff confirms its implementation patches are unchanged after rebase. Current head:c4f175f0. Fresh CI passed before merge. The user authorized merging once current checks pass on 2026-09-07. The parser source alias remains included; the clean-build failure was reproduced and corrected against an unbuilt parser checkout.Merged with explicit user authorization on 2026-09-07 as
13258ffaafter both current-head CI gates passed. No outstanding review feedback. The resolving issue is closed.