Repository navigation
feat: notification levels, per-thread mute, and kg notify test - #115
Merged
Merged
Conversation
…ch becomes a level A thread gets its own level (default, all, asks, muted). The notify preference becomes all, asks or off; a migration maps the old true and false.
A thread that needs the person reports why it needs them: a turn ended, a question waits, or a program failed or exited. kg notify test asks the window to post one test notification. kg thread notify sets one thread's level.
… mark Settings → General has All, Only when it asks me, and Off. The thread menu has a Notifications submenu. A muted thread shows a mark in its sidebar row. Opening a thread clears its system notification.
…LI reference Decisions 211 to 214 record the level change, the per-thread level, the notice reasons and clearing on open. The product-line ceiling rises by 321, approved per PR.
… tests have a control Both 'posts nothing' tests now also check a neighbour thread that does post, so they cannot pass because the script never ended a turn.
Pinned gets its name as its tooltip, like muted already had.
Same mark and tooltip as the sidebar row, with its own id so both can show.
…e, to 71826 Cost: the product-line ceiling rises by 21, from 71805 to 71826 (approved per PR).
Keeps the agent rules (decision 211 on main) and the notification levels (decisions 212 to 215). The size ceiling is the merged count, and the CLI reference is regenerated.
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.
What changed
notifypreference takesall,asksoroff. A migration maps the oldtruetoallandfalsetooff.kg thread notify <id> default|all|asks|muted. A thread's own level replaces the global one, so All posts even when the global level is Off.dismiss_system_notificationwith the same tag the post uses).kg notify test. Posts one test notification, even when notifications are off.Decisions 212 to 215 record the choices (211 is the agent rules on main).
Checked
cargo fmt --check,cargo clippy --workspace --all-targets --locked -- -D warnings(exit 0),cargo t --workspace --locked(1917 passed, 0 failed).kg uisnapshot and the CLI reference are regenerated (book/src/cli.md).Not proven
cargo runbinary cannot post a system notification on macOS, so posting is proven only with the test platform. A bundled build is needed to see a real notice appear and clear.kg ui snapshot. Its items do (thread-notify-*). gpui-kit draws the submenu row and itsPopupMenuItem::Submenuhas no id field, so this needs a gpui-kit change. Not done here.Askedand thenTurnEndedfor the same thread, with the same tag. The OS may replace the first. Not proven in a bundled build.