Skip to content

feat: live activity push watcher, new session command, resume rename#359

Open
jongio wants to merge 2 commits into
mainfrom
go/live-activity
Open

feat: live activity push watcher, new session command, resume rename#359
jongio wants to merge 2 commits into
mainfrom
go/live-activity

Conversation

@jongio

@jongio jongio commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

Adds push-based live activity monitoring, session launch/focus capabilities, and renames the config field from custom_command to resume_session_command with automatic migration.

Changes

Live Activity (push-based)

  • EventWatcher: fsnotify-based file watcher that monitors session-state directories for changes and re-classifies sessions instantly (replaces 30s polling)
  • SessionTracker: Tracks PIDs of sessions launched from dispatch
  • Focus Window: Win32 SetForegroundWindow API to bring a session's terminal window to front (W keybinding)
  • New Session: Launch new Copilot CLI sessions from dispatch (+ keybinding)

Visual Enhancements

  • Blinking attention dot for sessions waiting on user input (ANSI blink)
  • Highlighted row background for waiting sessions (bold + selection background)
  • "Last Event" field in session detail pane showing event type + relative timestamp

Config Rename

  • custom_command renamed to resume_session_command (config v1 to v2 migration)
  • Added new_session_command config field
  • Both fields available in the Settings panel
  • All docs updated (README, SECURITY, config.astro, features.astro)

Testing

  • 14 new tests (EventWatcher: 7, SessionTracker: 7)
  • All existing tests pass (race detector enabled)
  • go vet clean

jongio and others added 2 commits July 20, 2026 13:12
- Add fsnotify-based EventWatcher for push session updates (replaces polling)
- Add SessionTracker for PID tracking of launched sessions
- Add focus window support (Win32 SetForegroundWindow)
- Add new session launcher with + keybinding
- Add W keybinding to focus selected session terminal window
- Rename custom_command to resume_session_command with v1->v2 migration
- Add new_session_command config field and settings panel entry
- Add blinking dot and highlighted row for waiting sessions
- Show last event type and timestamp in session detail pane
- Update all docs (README, SECURITY, config.astro, features.astro)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 37403417-09bc-4600-8056-fbb5a2fb18bb
… --resume'

- Change defaultNewSessionCommand from 'gh copilot' to 'copilot'
- Flip FindCLIBinary() to prefer 'copilot' over 'ghcs'
- Update README, spec doc, web config page with new defaults
- Add new_session_command to web config.astro options table

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 37403417-09bc-4600-8056-fbb5a2fb18bb
@jongio
jongio force-pushed the go/live-activity branch from 30bdcf2 to e117dbd Compare July 20, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant