mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-05 06:59:42 +02:00
Merge pull request #367 from shenlvkang-collab/pr/claude-conversation-first-hand
fix(session): learn the live Claude conversation from the CLI's own hook
This commit is contained in:
@@ -688,6 +688,15 @@ export interface SessionState {
|
||||
* again until the pane's own Enter is known.
|
||||
*/
|
||||
lastSubmitAt?: number;
|
||||
/**
|
||||
* Claude conversations this pane has been on, oldest first, current last.
|
||||
* Written ONLY from a first-hand `UserPromptSubmit`/`Stop` hook payload —
|
||||
* never from the history correlation — so it cannot record a sibling pane's
|
||||
* conversation. Persisted because `/clear` is otherwise unrecoverable: once
|
||||
* the pane moves on, the predecessor id exists nowhere else, and the last
|
||||
* entry is what re-pins `claudeSessionId` past `start()`'s three resets.
|
||||
*/
|
||||
claudeSessionChain?: string[];
|
||||
/**
|
||||
* PTY-exit circuit breaker tripped — respawn blocked until an explicit restart
|
||||
* (COD-118). Runtime-only: never restored on boot (fresh server = fresh breaker).
|
||||
|
||||
Reference in New Issue
Block a user