runner: report progress via OSC 9;4 sequences - #315
Conversation
tingerrr
left a comment
There was a problem hiding this comment.
Have you tested this with a terminal that does not support OSC 9;4? What happens in this case? I imagine we might need to add a user-wide configuration in which we can configure this or query the terminal database to see which terminals support it. I'd say that this is where an extra dependency would be warranted.
I've tested it with Warp and the default macOS Terminal. Both show the normal output.
I did some further research into how Cargo handles this. They use I would switch the implementation to use |
ae9acfe to
e028882
Compare
Seems like the right choice then, we'll have to see how well this interacts with the terminal library Typst uses since we use it in a few places too through
Not yet, hence why I'm a little on the fence about this. If you want, you could add that in a PR and stack this one on top. I don't think I can enable GitHub's Stacked PRs, but I can manage reviewing either way. |
|
I copied the system config structure from Cargo for now. I also thought about just adding a top-level key for it but I think this depends on which option get added here in the future. I am open for suggestions here. |
Emit an OSC 9;4 progress bar so the current test count is observable at a glance, starting at 0% on run start, advancing after each test, and clearing when the run finishes.
Summary
See commit messages.
Preview in Ghostty:
Screen.Recording.2026-08-21.at.20.33.16.mov
Related Issues
Closes #314
Checklist