Show program status from Rex: activity, alerts, and a pulsing desk when blocked #15

Merged
arne merged 4 commits from status into main 2026-11-06 07:07:25 +01:00
Owner

Programs can report what they are doing with OSC 7501, the Program Status Protocol: working (with progress), blocked on you (permission, question or password), done, or failed. Rex keeps those reports per terminal and announces every change. This brings them into fjordxy.

Bridge

  • fjordxy-status-rex (nix/fjordxy-status-rex.py, standard library only) turns rex events --all --json into JSON lines: reset, set and remove.
  • It starts with a snapshot from session.list, session.list_blocks and program_status.
  • Each record carries its desk, which is the Rex session's label. rexy-desk names niri workspaces after sessions.
  • It re-reads the session list on any session event, since session lifecycle events aren't documented yet. It reconnects with backoff and never gives up.
  • It is enabled with the new programs.fjordxy.status.rex.enable option (default off), which sets FJORDXY_STATUS_REX=1 for the shell.

Shell

  • Status.qml keeps the records and sorts them into needs you, now, fresh and earlier. Done and failed count as seen once you've been on their desk.
  • Alerts (Popover.qml) appear when a record turns blocked or failed on a desk you're not on.
    • At most one every 3 seconds, shown for 8 seconds.
    • Shaped like a notification: program · desk, then what it needs, then its message.
    • An amber edge for blocked and red for failed. A click goes to the desk.
  • Rail: a desk's dot pulses (a growing, fading halo) only when something there is blocked and its alert has gone. That's the only state the rail shows. The count adds things that need you plus finished work you haven't seen, and turns warning while something is blocked.
  • Activity:
    • Blocked and failed records go under needs you.
    • Running work goes under now, with its progress on the ten-cell meter.
    • Finished work goes under new, then earlier, and clear forgets what's been seen.
    • Rows read app · desk · title with the state on the right and a state mark in the gutter (!, ×, ✓, ◦). Enter goes to the desk.

Tested:

  • the bridge against a live Rex: set and remove, including the shell prompt clearing a working record
  • activity rendered offscreen with fake records
  • on black: Claude Code (hooks reporting OSC 7501) inside rexy, blocked on a permission on another desk. The alert, the pulse, activity and jumping to the desk all work.

Designed first in the drawer prototype. The Claude Code hooks live in the user's machine config, not here.

🤖 Generated with Claude Code

Programs can report what they are doing with OSC 7501, the Program Status Protocol: working (with progress), blocked on you (permission, question or password), done, or failed. Rex keeps those reports per terminal and announces every change. This brings them into fjordxy. **Bridge** - `fjordxy-status-rex` (nix/fjordxy-status-rex.py, standard library only) turns `rex events --all --json` into JSON lines: `reset`, `set` and `remove`. - It starts with a snapshot from `session.list`, `session.list_blocks` and `program_status`. - Each record carries its desk, which is the Rex session's label. rexy-desk names niri workspaces after sessions. - It re-reads the session list on any session event, since session lifecycle events aren't documented yet. It reconnects with backoff and never gives up. - It is enabled with the new `programs.fjordxy.status.rex.enable` option (default off), which sets `FJORDXY_STATUS_REX=1` for the shell. **Shell** - **`Status.qml`** keeps the records and sorts them into needs you, now, fresh and earlier. Done and failed count as seen once you've been on their desk. - **Alerts** (Popover.qml) appear when a record turns blocked or failed on a desk you're not on. - At most one every 3 seconds, shown for 8 seconds. - Shaped like a notification: `program · desk`, then what it needs, then its message. - An amber edge for blocked and red for failed. A click goes to the desk. - **Rail:** a desk's dot pulses (a growing, fading halo) only when something there is blocked **and** its alert has gone. That's the only state the rail shows. The count adds things that need you plus finished work you haven't seen, and turns `warning` while something is blocked. - **Activity:** - Blocked and failed records go under needs you. - Running work goes under now, with its progress on the ten-cell meter. - Finished work goes under new, then earlier, and `clear` forgets what's been seen. - Rows read `app · desk · title` with the state on the right and a state mark in the gutter (`!`, `×`, `✓`, `◦`). Enter goes to the desk. Tested: - the bridge against a live Rex: set and remove, including the shell prompt clearing a working record - activity rendered offscreen with fake records - on black: Claude Code (hooks reporting OSC 7501) inside rexy, blocked on a permission on another desk. The alert, the pulse, activity and jumping to the desk all work. Designed first in the drawer prototype. The Claude Code hooks live in the user's machine config, not here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Programs report what they are doing with OSC 7501; Rex keeps the records per
terminal. fjordxy-status-rex turns Rex's event stream into JSON lines for a
Status singleton, on with programs.fjordxy.status.rex.enable. Activity lists
blocked and failed work under needs you, running work under now with its
progress, finished work under new until you have been on its desk. A record
turning blocked or failed on another desk raises one alert naming the
program and the desk; once it has gone, the rail pulses that desk's dot —
blocked is the only state the rail shows. The rail's count includes status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A niri desk scrolls, so being on it is not looking at the terminal, and the
dot lit with no alert to say why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A status alert is a plain object, and a Repeater hands its delegate a copy,
so dropping it by identity never matched and the alert stayed for good.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
arne merged commit 225ff44ec2 into main 2026-11-06 07:07:25 +01:00
arne deleted branch status 2026-11-06 07:07:25 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bases/fjord!15
No description provided.