Skip to content

Commit 5afd3dc

Browse files
committed
chore: add changeset for session-not-found fix
1 parent ee1921d commit 5afd3dc

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@moonshot-ai/agent-core": patch
3+
"@moonshot-ai/kimi-code": patch
4+
---
5+
6+
Fix stale closed session handling during resume to prevent `[session.not_found]` errors after initialization failures.
7+
8+
When a session was closed while initialization was still running (for example, because an MCP server failed to start), the session object could remain in memory while the persisted directory still existed. Resuming that session later then failed with `[session.not_found]`. The session map now drops stale closed sessions during resume, and the TUI aborts cleanly if the session disappears while applying startup modes.

0 commit comments

Comments
 (0)