Skip to content

Dev#24

Open
im4codes wants to merge 226 commits into
masterfrom
dev
Open

Dev#24
im4codes wants to merge 226 commits into
masterfrom
dev

Conversation

@im4codes

@im4codes im4codes commented Jun 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

IM.codes added 30 commits June 5, 2026 23:53
IM.codes and others added 30 commits June 17, 2026 18:44
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant