@signalridge/pi-tab-status1.3.1
Terminal tab status indicators for Pi sessions.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-tab-status
Compact status in Pi terminal-tab titles:
- The optional
ridgelinestyle usespi · project · working|done|review|blocked. - The default
legacystyle keeps the original emoji indicators: ✅ committed, 🚧 review needed, 🛑 blocked/error, andrunning...while active. blockedmeans no messages or tool calls for 180s while running, or an agent error. A tool that is still executing keeps the tab inrunning...even when it emits no intermediate events, so a long command is never reported as blocked.- A run you abort, for example with Escape, returns the tab to its bare
pi - projecttitle instead of showing it as done or review. Pi 1.1 and later report the abort onagent_settled; with older hosts it is inferred from the run's last stop reason.
Tracks one active session per tab.

Install
Pi package manager
pi install npm:@signalridge/pi-tab-status
Local clone
ln -s "$(pwd)/packages/pi-tab-status/tab-status.ts" ~/.pi/agent/extensions/
Or add to ~/.pi/agent/settings.json:
{
"extensions": ["./packages/pi-tab-status/tab-status.ts"]
}
Settings
Set the original Signalridge style with:
PI_TAB_STATUS_STYLE=ridgeline
The environment variable is user-overridable; the package still defaults to the legacy style when it is unset.
Desktop notifications
Off by default. Enable them with:
PI_TAB_STATUS_NOTIFY=1
An interactive (TUI) session then raises one desktop notification:
- when a run settles:
Finished with a commit,Finished, ready for revieworRun ended with an error. A run you abort, for example with Escape, settles silently. - when the tab enters
blockedbecause a run has been quiet for 180s:No activity for 3 minutes. It fires once per entry; new activity leaves the state, and a later stall notifies again.
The notification title is the tab's project label and the body is one of the fixed texts above; prompts and model output are never included. Print, JSON and RPC sessions never notify, and neither do subagent child sessions, which run without the TUI.
The escape sequence is chosen from the terminal's environment:
| Environment | Sequence |
|---|---|
KITTY_WINDOW_ID is set |
OSC 99 (kitty) |
TERM_PROGRAM=iTerm.app, ITERM_SESSION_ID or LC_TERMINAL=iTerm2 |
OSC 9 (iTerm2) |
| anything else | OSC 777 (Ghostty, WezTerm, rxvt-unicode) |
Detection is heuristic. Inside tmux, for example, TERM_PROGRAM names tmux rather than the outer terminal. To force a protocol, set PI_TAB_STATUS_NOTIFY to osc777, osc9 or osc99 instead of 1. Any other value leaves notifications off. When TMUX is set, the sequence is wrapped in tmux's passthrough, which tmux 3.3 and later forward only with set -g allow-passthrough on. Terminals that implement none of these sequences ignore them. The package only writes escape sequences: it never starts a process, so there is no PowerShell toast for Windows Terminal and no sound hook.
Pi's native program status
Pi reports its own state with the Program Status Protocol (OSC 7501) to terminals that answer its support query. That report feeds the terminal's or an agent dashboard's status display. It does not raise a desktop notification, and tmux and screen do not forward it. Its blocked state also means something different: an extension dialog or login is waiting, whereas this package's blocked means the run went quiet or ended with an error. The notifications here are a separate, opt-in channel that asks the terminal for a desktop notification and passes through tmux.
To avoid double alerts:
- Keep one notifier per session. Do not enable this setting together with another notification extension, such as
pi-notifyor Pi'snotify.tsexample. - If your terminal or dashboard already alerts on Pi's OSC 7501
doneandblockedstates, leavePI_TAB_STATUS_NOTIFYunset. Alternatively, keep these notifications and setPI_PROGRAM_STATUS=0to stop Pi's native reports, which also removes the native status display.
The tab title behaves the same whether or not notifications are enabled.
Provenance
The desktop notifications adapt two MIT-licensed sources: the per-terminal
OSC 777/9/99 selection and tmux passthrough from
ferologics/pi-notify (index.ts,
commit a17c63e), and settling on agent_settled rather than agent_end from
Pi's packages/coding-agent/examples/extensions/notify.ts in
earendil-works/pi (commit 25426f7).
Local divergence is the opt-in, TUI-only notification policy described above, plus control/bidi/; stripping and bounded title/body lengths, LC_TERMINAL iTerm2 detection, and omission of process-based Windows toast/sound hooks.
Changelog
See CHANGELOG.md.