mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-09-30 12:39:42 +02:00
fix: improve respawn idle/working detection patterns
- Add '↵ send' as primary idle indicator (suggestion ready) - Add 'Synthesizing', 'Brewing' to working patterns - Add '✻', '✽' activity indicators to working patterns Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -82,8 +82,9 @@ export class RespawnController extends EventEmitter {
|
||||
private promptDetected: boolean = false;
|
||||
private workingDetected: boolean = false;
|
||||
|
||||
// Terminal patterns
|
||||
// Terminal patterns - detect when Claude is ready for input
|
||||
private readonly PROMPT_PATTERNS = [
|
||||
'↵ send', // Suggestion ready to send (strongest indicator of idle)
|
||||
'❯', // Standard prompt
|
||||
'\u276f', // Unicode variant
|
||||
'⏵', // Claude Code prompt variant
|
||||
@@ -93,7 +94,9 @@ export class RespawnController extends EventEmitter {
|
||||
private readonly WORKING_PATTERNS = [
|
||||
'Thinking', 'Writing', 'Reading', 'Running', 'Searching',
|
||||
'Editing', 'Creating', 'Deleting', 'Analyzing', 'Executing',
|
||||
'Synthesizing', 'Brewing', // Claude's processing indicators
|
||||
'⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏', // Spinner chars
|
||||
'✻', '✽', // Activity indicators (spinning star)
|
||||
];
|
||||
private readonly CLEAR_COMPLETE_PATTERN = /conversation cleared|cleared|❯|⏵/i;
|
||||
private readonly INIT_COMPLETE_PATTERN = /initialized|analyzing|❯|⏵|CLAUDE\.md/i;
|
||||
|
||||
Reference in New Issue
Block a user