Commit Graph
562 Commits
Author SHA1 Message Date
arkon 3a77fe48e3 chore: bump version to 0.1496 2026-02-13 07:42:50 +01:00
arkon e6da0a22ff chore: bump version to 0.1495 2026-02-13 06:16:15 +01:00
arkon 806750fe77 chore: bump version to 0.1494 2026-02-13 06:02:12 +01:00
arkonandClaude Opus 4.6 7d2519cacb fix: subagent windows not opening — two cascading bugs
1. handleInit crash: commit cdc822d removed Map initializations for
   teammateTerminals, teammatePanesByName, teams, teamTasks, teammateMap
   from the constructor but left cleanup code that iterates them.
   cleanupAllFloatingWindows() crashed on "not iterable", preventing
   ALL frontend data (sessions, subagents) from loading.

2. claudeSessionId null on recovered sessions: only set inside
   startInteractive(), never in constructor or persisted. After server
   restart, recovered sessions had null claudeSessionId, so the
   hasMatchingTab check always failed → no subagent windows.

Fixes:
- Re-add all 5 missing Map initializations in app.js constructor
- Set _claudeSessionId = this.id in Session constructor (Claudeman
  always passes --session-id to Claude, so they always match)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 05:07:51 +01:00
arkonandClaude Opus 4.6 82a0da035c fix: actually jump into restored session on reload, not just highlight tab
handleInit is called twice on page load (loadState + SSE init). The second
call cleared terminal state but skipped selectSession because activeSessionId
was still set from the first call. Now reset activeSessionId before
re-selecting so the terminal buffer always gets reloaded.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 20:17:10 +01:00
arkon f47ae4b80f chore: bump version to 0.1491 2026-02-12 20:14:01 +01:00
arkonandClaude Opus 4.6 9702739e67 fix: restore active session tab on page reload (mobile + desktop)
Save activeSessionId to localStorage on tab switch and restore it in
handleInit so reloading the page jumps back to the session you were
viewing instead of always selecting the first tab.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 20:07:36 +01:00
arkon 8f1eeca5b9 chore: bump version to 0.1490 2026-02-12 18:29:49 +01:00
arkonandClaude Opus 4.6 0314de7789 fix: bulletproof test safety — IS_TEST_MODE guards prevent tests from killing real tmux sessions
Added IS_TEST_MODE (process.env.VITEST) guards to every method in TmuxManager and
ScreenManager that touches real tmux/screen sessions. Tests can never create, kill,
discover, or send input to real sessions. Removed broken E2E test suite entirely.
Rewrote test/setup.ts from 459 lines to minimal cleanup. Rewrote tmux-related tests
to verify test-mode safety behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 18:26:16 +01:00
arkon cdc822d657 fix: add Agent Teams types to types.ts, remove unused server imports 2026-02-12 14:42:58 +01:00
arkon e44f827473 chore: bump version to 0.1488 2026-02-12 14:41:27 +01:00
arkonandClaude Opus 4.6 2b685cea65 feat: full Agent Teams support with tmux split-pane mode
- Enable tmux mouse mode on session creation for click-to-select panes
- Auto-discover teammate panes via tmux list-panes when config.json lacks paneIds
- Enable mouse mode dynamically when team pane streams start (restored sessions)
- Suppress teammate subagent popup windows (false info); teammates use main tmux panes
- Remove standalone teammate terminal windows in favor of native tmux interaction

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 13:54:40 +01:00
arkonandClaude Opus 4.6 a4e778c7c4 chore: bump version to 0.1486
feat: interactive teammate tmux pane windows with xterm.js terminals
feat: auto-cleanup teams/subagents/pane windows on session delete
fix: only show agent/teammate windows when matching Claudeman tab exists
fix: UTF-8 encoding in teammate pane terminal output (Uint8Array)
fix: standalone pane window cleanup via subagentParentMap lookup
fix: xterm.js dimensions crash with deferred init + null-safe dispose

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 13:44:07 +01:00
arkon 59a8f6bd7d chore: bump version to 0.1485 2026-02-12 11:35:10 +01:00
arkon 336aff2d2c chore: bump version to 0.1484 2026-02-12 11:17:49 +01:00
arkon a687416798 chore: bump version to 0.1483 2026-02-12 11:13:05 +01:00
arkon 669a2b7773 chore: bump version to 0.1482 2026-02-12 11:11:06 +01:00
arkon 65f81667d0 chore: bump version to 0.1481 2026-02-12 10:29:57 +01:00
arkon 8a85064748 chore: bump version to 0.1480 2026-02-12 08:58:00 +01:00
arkonandClaude Opus 4.6 3145b3f9a3 chore: bump version to 0.1479
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 08:34:51 +01:00
arkonandClaude Opus 4.6 df84804189 docs: remove mobile-with-keyboard screenshot from README
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 17:32:56 +01:00
arkonandClaude Opus 4.6 c2ab0c6a6f chore: bump version to 0.1478
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 17:29:53 +01:00
arkonandClaude Opus 4.5 8f0bbf33d6 chore: bump version to 0.1477
Location: Ko Samui

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 07:24:32 +01:00
arkonandClaude Opus 4.5 99fa04df29 fix: revert broken selectSession optimization
The optimization introduced a duplicate 'session' variable declaration
that caused a SyntaxError, breaking the web UI entirely.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 05:14:18 +01:00
arkon 30f73871c6 chore: bump version to 0.1476 2026-02-02 05:09:23 +01:00
arkonandClaude Opus 4.5 b0d3dfe3a6 perf: optimize tab switching responsiveness
- Increase chunked write size from 64KB to 128KB (halves write time)
- Start buffer fetch immediately before other setup work
- Show "Loading session..." indicator during fetch
- Parallelize session attach with buffer fetch
- Fire-and-forget resize call (don't block on it)

Reduces perceived tab switch latency by ~50-100ms for large buffers.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 05:08:51 +01:00
arkon efd00658aa chore: bump version to 0.1475 2026-02-02 04:50:08 +01:00
arkonandClaude Opus 4.5 e37d2f6f49 docs: add terminal anti-flicker system documentation
- Document 6-layer anti-flicker pipeline (server batching, DEC 2026,
  SSE broadcast, client rAF, sync parser, chunked loading)
- Add detailed implementation notes for server and client sides
- Document responsiveness considerations and latency sources
- Fix cross-session data bleed: clear pendingWrites and syncWaitTimeout
  on session switch and SSE reconnect
- Improve flicker filter to detect cursor-up patterns (ESC[nA)
- Add adaptive batching: extend batch window during rapid-fire events
- Update BATCH_FLUSH_THRESHOLD from 1KB to 32KB for effective batching

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 04:49:15 +01:00
arkonandClaude Opus 4.5 dc0b9f0fb6 fix: capture script now properly spawns subagents
- Fix input submission: add \r and useScreen:true for reliable input
- Link to real codebase instead of empty test case
- Select correct session tab before sending input
- Filter subagents by session for accurate tracking
- Screenshots now show real subagent windows with activity
- Optimized GIF to 3.9MB (was 62MB)

Commit from flight QR118 in an Airbus A350-1000, stable connection thanks to Starlink!

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 07:16:02 +01:00
arkonandClaude Opus 4.5 2186d16616 docs: replace ASCII art with tables in README
- Replace Respawn Controller state machine diagram with state table
- Replace Zero-Flicker pipeline ASCII with flow table
- Cleaner presentation that renders well on GitHub

Commit from flight QR118 in an Airbus A350-1000, stable connection thanks to Starlink!

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 00:37:21 +01:00
arkonandClaude Opus 4.5 cc7c188f1f feat: add subagent screenshot capture script and README images
- Add scripts/capture-subagent-screenshots.mjs for automated capture
- Creates real Claude sessions that spawn Task tool subagents
- Records video and converts to optimized GIF via FFmpeg
- Add subagent-spawn.png, subagent-demo.gif to docs/images
- Update README Live Agent Visualization with real screenshots
- Replace ASCII diagram with actual subagent window screenshots
- Add capture:subagents npm script
- Document both screenshot scripts in CLAUDE.md

Commit from flight QR118 in an Airbus A350-1000, stable connection thanks to Starlink!

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 00:35:18 +01:00
arkon 45f7381534 chore: bump version to 0.1474 2026-01-31 23:55:40 +01:00
arkonandClaude Opus 4.5 404092bd32 docs: improve CLAUDE.md with quick reference and gotchas
- Add Quick Reference table at top for common commands
- Add Common Gotchas section documenting 5 key pitfalls
- Add Import Conventions section for utilities/types/config
- Add test setup exported helpers to Testing section
- Fix port range inconsistency (now all say 3183-3193)
- Add missing files to core files table

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 23:52:44 +01:00
arkonandClaude Opus 4.5 eb7c005363 fix: memory leaks and performance optimizations
- WebServer: Store session listener refs for explicit cleanup on delete
- RespawnController: Fix clearInterval bug (was using clearTimeout)
- RespawnController: Add try/catch to interval callbacks
- PlanOrchestrator: Guarantee progressInterval cleanup with try/finally
- SubagentWatcher: Guard idle timer against deleted agents
- Session: Add threshold validation for auto-clear/compact (1k-500k)
- Session: Add token sum overflow check in restoreTokens
- Session: Use LRUMap for _recentTaskDescriptions auto-eviction

Commit from flight QR118 in an Airbus A350-1000, stable connection thanks to Starlink!

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 23:48:59 +01:00
arkonandClaude Opus 4.5 cd4905287e feat: add mobile case picker to toolbar
- Add Case button to mobile toolbar (between Run Claude and Run Shell)
- Add bottom sheet modal for case selection on mobile
- Show current case name on button (truncated)
- Allow creating new cases from mobile picker
- Sync selection with desktop dropdown

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 22:17:47 +01:00
arkonandClaude Opus 4.5 d7608a4885 fix: allow all display settings to work on mobile
- Remove display:none from CSS for all settings-controlled elements
- System stats, token count, monitor, subagents, project insights,
  file browser now respect user settings on mobile
- Settings already saved independently (mobile/desktop) via getSettingsStorageKey()
- Add compact mobile styling for each element instead of hiding

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 17:34:31 +01:00
arkonandClaude Opus 4.5 b62ae9e42f fix: allow font controls to be shown on mobile when enabled
- Remove display:none from mobile CSS for font controls
- Let JS control visibility based on user setting
- Add compact styling for font controls on tablet/phone

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 17:31:33 +01:00
arkonandClaude Opus 4.5 29916f4202 fix: bring gear and X closer together on mobile tabs
- Changed margin-left from 2px to -2px for tighter grouping

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 17:28:04 +01:00
arkonandClaude Opus 4.5 ed42c6bea3 fix: larger X button, closer to gear on mobile tabs
- X: 1.1rem font, 20x18px (bigger)
- Gap reduced to 2px (closer together)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:08:25 +01:00
arkonandClaude Opus 4.5 acb1ec36c7 fix: make gear icon tiny, X larger on mobile tabs
- Gear: 0.5rem font, 12x12px, 60% opacity (subtle)
- X: 0.9rem font, 18x16px (prominent for tapping)
- 6px gap between icons

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:07:17 +01:00
arkonandClaude Opus 4.5 824a79413e fix: perfect vertical alignment of gear and X icons on mobile tabs
- Use consistent 20x20px boxes for both icons
- Remove position offsets, rely on flexbox centering
- Increase gear font-size to 0.7rem for better visibility

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 16:04:13 +01:00
arkonandClaude Opus 4.5 dfb8937ba4 fix: align gear and close icons together on mobile tabs
- Push gear icon to right with margin-left: auto
- Reduce gap between gear and close with negative margins
- Keep both icons tightly grouped at tab end

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 15:52:45 +01:00
arkonandClaude Opus 4.5 2fcd794daf fix: adjust mobile tab icon sizes - larger X, smaller gear
- Close button: 24px with 0.85rem font for easy tapping
- Gear icon: 16px with 0.55rem font, less prominent

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 15:50:33 +01:00
arkonandClaude Opus 4.5 236442a8dd fix: center gear icon in mobile session tabs
- Increase min-width and height for better touch target
- Add align-items/justify-content for proper centering
- Adjust padding for balanced appearance

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 15:46:26 +01:00
arkonandClaude Opus 4.5 a85603d8cf docs: add Mobile UI section to README
- Document fixed toolbar and keyboard handling
- Swipe navigation between sessions
- Keyboard accessory bar with /init, /clear, /compact
- Confirmation dialogs for commands
- Touch target sizes and mobile simplifications

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 15:41:15 +01:00
arkonandClaude Opus 4.5 d70e2d1d93 fix: mobile toolbar button sizing and accessory bar commands
- Fix Run Claude button being squeezed on mobile (use fit-content width)
- Remove Send button from accessory bar
- Add /init, /clear, /compact buttons with confirmation dialogs
- Center toolbar buttons instead of stretching

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 14:46:26 +01:00
arkon b655d2e29e fix: image watcher now uses relative path for subdirectory images
- Added relativePath field to ImageDetectedEvent
- Compute relative path from working directory in image-watcher
- Use relativePath in frontend URL (fixes 'Failed to load image' for subdirs)
- Minor CLAUDE.md improvements

chore: bump version to 0.1461
2026-01-31 14:32:20 +01:00
arkon c7488c4a56 fix: move mobile toolbar to bottom edge 2026-01-31 08:33:37 +01:00
arkon d3bc6fe655 fix: move mobile toolbar closer to bottom (30px -> 10px) 2026-01-31 08:30:51 +01:00
arkon 65f8cd7384 fix: scroll terminal to bottom when mobile keyboard appears 2026-01-31 08:29:14 +01:00