Files
cc-connect/core
cg33andClaude 4bb14d47d0 fix(core): queue messages during session startup instead of dropping (#565) (#567)
When a session lock is held and a new message arrives, the queue
mechanism requires an interactiveState entry to exist. Previously,
this entry was only created inside the async goroutine after the
agent process was spawned — a potentially slow operation. Messages
arriving during this startup window were silently dropped.

Fix:
- Create a placeholder interactiveState before launching the async
  processor so the queue entry point exists immediately
- Relax queueMessageForBusySession guard to allow queueing when
  agentSession is nil (startup phase), while still rejecting when
  the agent session was established but has died

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-12 06:19:20 +08:00
..
2026-02-28 10:38:24 +08:00