show Claude status warnings in tmux status bar #15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tmux-claude-status-warnings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a
claude-status.shscript that pollsstatus.claude.comevery 60s and renders a colored warning in the tmux right-status when Anthropic reports degraded service. Silent when all systems are operational, so the status bar stays clean in the common case.Details
dot-tmux/claude-status.sh(new) — fetches/api/v2/summary.json, caches for 60s. Emits⚠ Claude: <active incident name>when the page indicator is non-none, falling back to the generic page description. Colors scale with severity (yellow → orange → red → blue for maintenance) and mirror the existingNIGHTFLY_*palette. Truncates long incident names to 48 chars.dot-tmux.conf— prepends the warning tostatus-rightso it leads when present; bindsprefix + ato openhttps://status.claude.comin the default browser.Follows the same shape as
claude-usage.sh: read-only network call, stale-cache fallback on failure, owns its own trailing" | "separator so the status bar stays clean when the script is silent.Why this form of click-through
tmux status bars don't reliably pass OSC 8 hyperlinks. A
MouseDown1StatusRightbinding was considered but rejected — it can't be scoped to just the warning glyph, so it would hijack clicks on the hostname/time region.prefix + ais the cleanest actionable binding (prefix + cis tmux's defaultnew-windowand off-limits).Test plan
⚠ Claude: ...with yellow color and trailing separator.prefix + areload-tested viatmux source-file.