mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-06 07:29:42 +02:00
fix(respawn): wait for idle timeout before triggering cycle
- Fixed respawn controller immediately sending commands when Claude becomes idle, which prevented users from typing. Now waits for idleTimeoutMs (default 10s) before triggering the respawn cycle. - Removed Directory field from Session Options modal for cleaner UI - Compacted CLAUDE.md documentation for better readability Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -225,18 +225,18 @@ export class RespawnController extends EventEmitter {
|
||||
return;
|
||||
}
|
||||
|
||||
// Detect ready state (↵ send indicator) - immediate response
|
||||
// Detect ready state (↵ send indicator)
|
||||
if (isReady) {
|
||||
this.promptDetected = true;
|
||||
this.workingDetected = false;
|
||||
this.lastActivityTime = Date.now();
|
||||
this.log('Ready indicator detected (↵ send)');
|
||||
|
||||
// Handle based on current state - immediate action
|
||||
// Handle based on current state
|
||||
switch (this._state) {
|
||||
case 'watching':
|
||||
this.clearIdleTimer();
|
||||
this.onIdleDetected();
|
||||
// Start idle timer instead of immediate action - gives user time to type
|
||||
this.startIdleTimer();
|
||||
break;
|
||||
case 'waiting_update':
|
||||
this.checkUpdateComplete();
|
||||
|
||||
Reference in New Issue
Block a user