codeburn/mac/Sources/CodeBurnMenubar
iamtoruk b9e70bedcb Raise a live session's terminal from the Capacity Dock card
Clicking a session row finds the row's process — Claude Code writes its
pid into ~/.claude/sessions/<pid>.json, Kimi Code is found by the one
`kimi` working in the directory its state.json records — walks the
process tree to the application that owns it, selects the tab by tty in
Terminal.app and iTerm2, and raises the app everywhere else. The
AppleScript runs off the main actor with a 3s cap.

A row whose process cannot be found keeps its layout and stays inert: no
pointer change, no tooltip.
2026-09-14 01:38:01 -07:00
..
Data Raise a live session's terminal from the Capacity Dock card 2026-09-14 01:38:01 -07:00
Resources Raise a live session's terminal from the Capacity Dock card 2026-09-14 01:38:01 -07:00
Security Raise a live session's terminal from the Capacity Dock card 2026-09-14 01:38:01 -07:00
Theme
Views Raise a live session's terminal from the Capacity Dock card 2026-09-14 01:38:01 -07:00
AppStore.swift
AppVersion.swift
CapacityDockController.swift
CapacityDockMotion.swift
CapacityDockPlacement.swift
CapacityDockPointerUpdateCoalescer.swift
CodeBurnApp.swift
CurrencyState.swift
Localization.swift
MenubarScope.swift
MenubarSecondRow.swift
ProviderIcon.swift
QuotaRefreshDecision.swift
RefreshCadence.swift
SessionCountLabel.swift
SingleInstanceGuard.swift
StatusItemContextMenuPolicy.swift
StatusItemPlacementPolicy.swift