mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-04 14:39:42 +02:00
fix: rock-solid idle detection in respawn controller
- Add 300-char rolling window to catch working patterns split across PTY chunks - Check completion message BEFORE working patterns (priority fix) - Clear rolling window on completion message (transition point) - Increase working pattern absence threshold from 3s to 8s - Add Session.isWorking safety check before confirming idle - Add 20+ more working patterns (Compiling, Building, Processing, etc.) - Make AI idle checker prompt more conservative (err toward WORKING) - Update documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -974,6 +974,34 @@ export function createInitialRunSummaryStats(): RunSummaryStats {
|
||||
};
|
||||
}
|
||||
|
||||
// ========== Active Bash Tool Types ==========
|
||||
|
||||
/**
|
||||
* Status of an active Bash tool command.
|
||||
*/
|
||||
export type ActiveBashToolStatus = 'running' | 'completed';
|
||||
|
||||
/**
|
||||
* Represents an active Bash tool command detected in Claude's output.
|
||||
* Used to display clickable file paths for file-viewing commands.
|
||||
*/
|
||||
export interface ActiveBashTool {
|
||||
/** Unique identifier for this tool invocation */
|
||||
id: string;
|
||||
/** The full command being executed */
|
||||
command: string;
|
||||
/** Extracted file paths from the command (clickable) */
|
||||
filePaths: string[];
|
||||
/** Timeout string if specified (e.g., "16m 0s") */
|
||||
timeout?: string;
|
||||
/** Timestamp when the tool started */
|
||||
startedAt: number;
|
||||
/** Current status */
|
||||
status: ActiveBashToolStatus;
|
||||
/** Session ID this tool belongs to */
|
||||
sessionId: string;
|
||||
}
|
||||
|
||||
// ========== Spawn1337 Protocol Re-exports ==========
|
||||
|
||||
export type {
|
||||
|
||||
Reference in New Issue
Block a user