feat(toolpath-desktop): menu-bar Quick View for live agent activity#50
Merged
eliothedeman merged 1 commit intomainfrom Apr 23, 2026
Merged
feat(toolpath-desktop): menu-bar Quick View for live agent activity#50eliothedeman merged 1 commit intomainfrom
eliothedeman merged 1 commit intomainfrom
Conversation
Adds a macOS tray icon alongside the existing Dock-icon app. A background thread polls every 30s across toolpath-claude, -gemini, -codex, -opencode, and -pi, classifies sessions as active (<2min) or recent (<24h), and updates the tray title with a live activity count. Left-clicking the tray opens a small popover window (new Vite entry: popover.html) listing recent sessions across all five providers. Clicking a claude or pi session derives the trace via the existing derive_* IPC commands and surfaces it directly in the main window's preview route via a trace:opened event. Rows for gemini/codex/opencode show up for activity tracking but are disabled until their desktop-side derive commands land. The popover also has an "Open Toolpath" button that simply shows + focuses the main window.
|
🔍 Preview deployed: https://8786e645.toolpath.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
toolpath-desktopthat shows live activity across all five agent-conversation providers (toolpath-claude,-gemini,-codex,-opencode,-pi). A background thread polls every 30s, classifies sessions as active (last activity <2 min) or recent (<24h), and updates the tray title with a count.derive_*IPC commands and opens it in the main window's preview route, via atrace:openedevent. Rows forgemini/codex/opencodeshow for activity tracking but are disabled until their desktop-side derive commands land.Implementation notes
tray_stats_now,tray_open_main,tray_open_trace.vite.config.tsgrows a second rollup input.tauri-plugin-positioner(for anchoring the popover to the tray) andtoolpath-gemini/-codex/-opencodedeps (for the stats poller).ActivationPolicy::Accessorywas tried and reverted because macOS tiling window managers (yabai, Amethyst) stop managing accessory windows. The tray is a secondary surface, like Slack/Linear.Test plan
cargo test -p toolpath-desktop— 17/17 pass (two existing + four new for bucket logic, stats smoke, basename slug, session-id truncation)cargo clippy -p toolpath-desktop --tests -- -D warningsbun run checkinfrontend/— 0 errors (4 pre-existing warnings in unrelated files)bun run build— produces bothindex.htmlandpopover.htmlbundlescargo tauri dev, verify tray appears, popover opens on left-click, activity counts update, clicking a claude/pi session opens the preview