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:
arkon
2026-01-19 15:00:49 +01:00
co-authored by Claude Opus 4.5
parent 035ffb42b9
commit d412096649
4 changed files with 32 additions and 118 deletions
+4 -4
View File
@@ -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();