Skip to content

osc: parse the Kitty desktop notification protocol (OSC 99)#10467

Open
jcollie wants to merge 8 commits intoghostty-org:mainfrom
jcollie:osc-kitty-notifications
Open

osc: parse the Kitty desktop notification protocol (OSC 99)#10467
jcollie wants to merge 8 commits intoghostty-org:mainfrom
jcollie:osc-kitty-notifications

Conversation

@jcollie
Copy link
Member

@jcollie jcollie commented Jan 27, 2026

This includes only parsing of the OSC. You cannot (yet) use OSC 99 to send notifications. Uses lazy parsing of the metadata modelled on the new OSC 133 behavior.

Related to #5634

@jcollie jcollie requested a review from a team as a code owner January 27, 2026 16:33
Copy link
Member

@pluiedev pluiedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First round of reviews, definitely not exhaustive since there's a ton to go through

@jcollie jcollie force-pushed the osc-kitty-notifications branch 2 times, most recently from c726052 to ffaf0c2 Compare January 29, 2026 20:50
@jcollie jcollie force-pushed the osc-kitty-notifications branch from ffaf0c2 to 8ae4dd9 Compare February 1, 2026 19:39
Copy link
Member

@pluiedev pluiedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This includes only parsing of the OSC. You cannot use OSC 99 to send
notifications. Uses lazy parsing of the metadata modelled on the new OSC
133 behavior.
* Add comments to Option keys to clarify their usage without having
  to refer to the spec online.
* Use `indexOfNone` to simplify code.
* Fix typos.
* Eliminate metadata parsing code duplication.
* Improve documentation.
* Ensure assert is comptime only.
* Derive valid metadata characters from valid identifier characters.
@jcollie jcollie force-pushed the osc-kitty-notifications branch from 8ae4dd9 to d412b3c Compare February 16, 2026 23:14
Reduce redundant code by sharing the metadata parsing code
between the OSC 99 & OSC 5522 parsers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments