feat: use Task tool description for subagent window titles + auto-minimize completed

- Extract short description from TaskTracker (params.description) for subagent windows
- Correlate subagents with sessions by working directory and timing
- Auto-minimize subagent windows when agents complete
- Persist minimized/open window states to server for cross-browser sync
- Restore window states on reconnection/page reload
- New API: GET/PUT /api/subagent-window-states
- State file: ~/.claudeman/subagent-window-states.json

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-01-26 09:06:49 +01:00
co-authored by Claude Opus 4.5
parent f95ffd12e2
commit f06240f4ef
10 changed files with 388 additions and 11 deletions
+3 -1
View File
@@ -184,7 +184,9 @@ export class RunSummaryTracker {
const now = Date.now();
// Update idle time if was previously idle
if (!this.isCurrentlyActive && this.stats.lastIdleAt) {
// Note: We count the initial idle period (from session start to first working state)
// even if lastIdleAt hasn't been set yet
if (!this.isCurrentlyActive) {
this.stats.totalTimeIdleMs += now - this.lastStatusChangeAt;
}