fix(feed): keep semantic history visible while JSONL catches up#165
Merged
Conversation
This was referenced Jul 6, 2026
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.
Summary
Adds a bounded renderer-side semantic-history bridge for the MCP/tool-call feed-clearing failure investigated in #159.
The root cause fix is already in
codex-headlessandmain: the committed JSONL tail now follows Codex rollout forks. This PR handles the remaining renderer gap while JSONL is legitimately behind the live semantic stream. Completed live turns are kept renderable in a small semantic history buffer until committed transcript entries arrive and supersede them.Behavior
Feednow receivessemanticHistoryin addition to the current live semantic turn.Files
workspace/semantic/foldEvent.ts— Codex ended-turn replacement, pending-tool completion archive, semantic history handoff.workspace/semantic/helpers.tsandworkspaceState.ts— semantic history now stores a bounded fullSemanticLiveTurnsnapshot instead of a text-only summary.features/feed/ui/Feed.tsx— renderssemanticHistory, suppresses only durable duplicates, includes history in auto-scroll/debug signatures.features/feed/ui/semantic/StreamingTurn.tsxandBlockRow.tsx— prevent duplicate assistant text and tolerate missing Write input JSON.TileLeaf.tsx— passes semantic history intoFeedand keeps render debug logging attached to mounted feeds.streaming.ts/useIpcSubscriptions.ts— richer debug counts for optimistic user rows and JSONL reconcile handoff.Verification
git diff --checktsc -bclaim here: the repo currently has unrelated pre-existing typecheck failures outside this PR, so this was limited to diff validation and prior live MCP reproduction context.Test Plan
visible_rowschanges even when the debug panel is not open.Context
This is the renderer mitigation layer from the same investigation as #159. It is intentionally separate from the
codex-headlesstail-ownership fix so the provider/runtime fix and renderer buffering behavior can be reviewed independently.