mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-03 22:19: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();
|
||||
|
||||
@@ -1274,7 +1274,6 @@ class ClaudemanApp {
|
||||
this.editingSessionId = sessionId;
|
||||
|
||||
document.getElementById('sessionNameInput').value = session.name || '';
|
||||
document.getElementById('sessionDirDisplay').textContent = session.workingDir || 'Unknown';
|
||||
|
||||
// Update respawn status display and buttons
|
||||
const respawnStatus = document.getElementById('sessionRespawnStatus');
|
||||
|
||||
@@ -193,10 +193,6 @@
|
||||
<label>Session Name</label>
|
||||
<input type="text" id="sessionNameInput" placeholder="Enter session name...">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label>Directory</label>
|
||||
<div class="session-dir-display" id="sessionDirDisplay">/path/to/dir</div>
|
||||
</div>
|
||||
|
||||
<!-- Respawn Settings Section -->
|
||||
<div class="session-respawn-section" id="sessionRespawnSection">
|
||||
|
||||
Reference in New Issue
Block a user