Skip to content

Comments

fix: preserve async-generated session titles in live status messages#124

Merged
LIU9293 merged 1 commit intomainfrom
fix/qwen-session-title-177172
Feb 22, 2026
Merged

fix: preserve async-generated session titles in live status messages#124
LIU9293 merged 1 commit intomainfrom
fix/qwen-session-title-177172

Conversation

@LIU9293
Copy link
Contributor

@LIU9293 LIU9293 commented Feb 22, 2026

Summary

  • Fixes issue where session titles generated asynchronously (via SiliconFlow API for Qwen, Kimi, Goose, Codex agents) were not appearing in live status messages
  • Root cause: applyStateFromEvents() was rebuilding state on each event but only passing startedAt, losing the async-generated sessionTitle after first event
  • Solution: Retrieve existing state from liveParsedState and preserve its sessionTitle when rebuilding

Changes

  • Modified packages/core/runtime/event-stream.ts:65-74 to preserve sessionTitle from existing state

Test plan

All existing tests pass:

  • session-title.test.ts (5/5)
  • session-inspector.test.ts (7/7)
  • status-message.test.ts (4/4)

🤖 Generated with Claude Code

This fixes an issue where session titles generated asynchronously (e.g., via
SiliconFlow API for Qwen, Kimi, Goose, Codex agents) were not being preserved
in live status messages.

The issue occurred because applyStateFromEvents() was rebuilding the entire
state on each event, but only passing startedAt in baseState, causing the
sessionTitle to be lost after the first event was processed.

Now we retrieve the existing state from liveParsedState and preserve its
sessionTitle when rebuilding the state.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@Gnoll Gnoll force-pushed the fix/qwen-session-title-177172 branch from 5a0db78 to 1887d55 Compare February 22, 2026 04:18
@LIU9293 LIU9293 merged commit 1468fab into main Feb 22, 2026
2 checks passed
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