OSC 7501: catch up with Program Status Protocol rev 0.4 #13

Closed
opened 2026-10-13 20:08:16 -05:00 by jeff · 0 comments
Owner

Two places harrier's OSC 7501 handling differs from the Program Status Protocol, rev 0.4 (https://www.superlogical.com/rex/docs/build/program-status). Neither affects Claude Code, which sends at most 33 records and no OSC 9;4 to harrier.

  • Record cap. At max_records (256, src/status.zig) a report for a new record is dropped. The spec says to evict the least recently updated record instead.
  • OSC 9;4 after OSC 7501. harrier keeps a 9;4 progress beside the 7501 records and shows whichever is newer (Pane.barOf). The spec says a terminal mapping 9;4 onto the root record SHOULD stop once a real 7501 report arrives, until the next RIS.

Each with a test.

Two places harrier's OSC 7501 handling differs from the Program Status Protocol, rev 0.4 (https://www.superlogical.com/rex/docs/build/program-status). Neither affects Claude Code, which sends at most 33 records and no OSC 9;4 to harrier. - [ ] **Record cap.** At `max_records` (256, `src/status.zig`) a report for a new record is dropped. The spec says to evict the least recently updated record instead. - [ ] **OSC 9;4 after OSC 7501.** harrier keeps a 9;4 progress beside the 7501 records and shows whichever is newer (`Pane.barOf`). The spec says a terminal mapping 9;4 onto the root record SHOULD stop once a real 7501 report arrives, until the next RIS. Each with a test.
jeff closed this issue 2026-10-13 23:08:22 -05:00
Sign in to join this conversation.
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
jeff/harrier#13
No description provided.