Repository navigation
events(feat[notify]): Add OSC notifications (#31) - #56
Merged
Merged
Conversation
tony
force-pushed
the
feat/stateful-xtsmgraphics
branch
from
November 28, 2026 20:17
d0e040f to
7b23a31
Compare
why: Terminal applications emit desktop notifications via iTerm2 OSC 9, chunked Kitty OSC 99, and rxvt OSC 777;notify that callers need as sanitized, bounded, typed Event records. what: - Add NotificationSource, NotificationUrgency, and Notification (in KnownEvent) plus Policy.allow_notifications, Policy.allow_notification_queries, Limits.max_pending_notifications, and Limits.max_notification_bytes - Parse OSC 9 (filtering ConEmu 9;1..9;12), chunked Kitty OSC 99 (raw byte buffering across e=0/e=1 Base64 chunks, d=0/d=1, p=?, u=0..2), and OSC 777;notify in Terminal with C0/C1/DEL sanitization and byte caps - Document and test notification parsing across events, terminal, and docs
tony
force-pushed
the
feat/osc-notifications
branch
from
November 28, 2026 20:20
9773411 to
d4d03b3
Compare
21 of 28 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #31 (depends on #55)
Summary
Adds typed
Notification(NotificationSource,NotificationUrgency, included inKnownEvent) parsing for iTerm2OSC 9, chunked KittyOSC 99, and rxvtOSC 777;notifysequences.What changed
libvt.events&docs/api/events.md: addNotificationSource(osc_9,osc_99,osc_777),NotificationUrgency(low,normal,high), andNotification, and includeNotificationinKnownEvent.libvt.config: addPolicy.allow_notifications(True),Policy.allow_notification_queries(False),Limits.max_pending_notifications(16, FIFO eviction), andLimits.max_notification_bytes(16_384).libvt.terminal.Terminal: parseOSC 9(routing9;4toProgramStatusStore,9;9toWorkingDirectoryChanged, ignoring other ConEmu9;1..9;12subcommands), chunked KittyOSC 99(d=0/d=1including anonymousi="", raw byte buffering prior to UTF-8 decode across multi-chunk payloads, unpaddede=1Base64 validation,p=title/p=body/p=?capability queries,u=0..2), andOSC 777;notify;<title>;<body>withC0/C1/DELsanitization, post-sanitization UTF-8 byte caps, andRISstate reset.tests/test_terminal.py,tests/test_status.py,docs/topics/protocols-and-input.md, andCHANGES: unit tests, doctests, and documentation.