Conversation
added 30 commits
June 5, 2026 23:53
…x timelines aren't lost Symptom: codex SDK sessions push a notification and show live ctx/usage, but the chat timeline is blank — sometimes a refresh shows it, sometimes not. Root cause: codex emits MULTIPLE agentMessage items per turn (one per tool round), each a new messageId. The relay only finalized the LAST message (via onComplete); every earlier message stayed `streaming:true`, which is never written to the timeline store — so it vanished on refresh/reconnect. The per-message `currentText` reset (the cross-message bleed fix) made the turn final = last segment only, so when the last segment was empty the whole timeline went blank. Fix (provider-agnostic, in transport-relay onDelta): when delta.messageId changes mid-turn, FINALIZE the previous message — emit it `streaming:false` and append it to transport history so it is persisted. onComplete still finalizes the last message. Every message of the turn now reaches the store. Adds a test helper to reset module-global per-session relay state between tests (prevents an in-flight message from leaking a finalize emit into the next test), updates the messageId-change test to assert the buffered tail is finalized (not dropped), and adds a multi-message-turn persistence regression test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… changes Consolidates the remaining working-tree changes (transport session runtime + queue/ack behavior, session-manager, claude-code-sdk, command-handler, lifecycle, sub-session UI, agent-todos) and their tests, committed together at the user's request. Verified before commit: daemon/web/server typecheck clean; all touched test files pass (daemon 308, web 202). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
No description provided.