Repository navigation
feat: a notification bus, so what matters is said once and only once - #41
Merged
Merged
Conversation
Pins core v0.6.0 for the state changes it now reports. Until now the only event that reached a user who was not looking at the window was a flagged tool call. Everything else — a rejected config, a credential that could not be written back, a new scan finding — lived in React state, and closing the window destroys the webview, so it was as if it had never happened. Quota running out and a login expiring are exactly the things that happen while nobody is watching. The decision now lives in Rust (src-tauri/src/notices): - rules.rs turns core events and supervisor states into signals: a level, a dedupe key of kind:object, and whether the user is already waiting for this answer. Copy carries no key, prompt or tool argument — a system notification is visible on a lock screen. - mod.rs is the bus: hold a fault for a minute before speaking (one that fixes itself is never announced), say the same thing once and update a count after that, let a down gateway silence everything under it, spend from a token bucket and fold what it holds back into the next one that gets through, mute something that flaps, and withdraw silently on recovery — only a long critical says out loud that it is over. - sink.rs is where it goes. The system sink is one implementation; Windows adds a sink, not a second set of rules. - Open notices persist, so they survive a closed window, an app restart and a core restart rather than being announced twice. The toolbar has a bell with what is currently open: level, what happened, how many times, and a click that lands on the page that can fix it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Sep 18, 2026
Merged
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.
Summary
Pins core v0.6.0, whose state-change events this builds on (Core#40).
Until now the only thing that reached a user who was not looking at the window was a flagged tool call. A rejected config, a credential that could not be written back, a new scan finding — all lived in React state, and closing the window destroys the webview, so it was as if they had never happened. Quota running out and a login expiring are exactly the events that happen while nobody is watching.
The decision lives in Rust
src-tauri/src/notices/:rules.rskind:object), and whether the user is already waiting for this answermod.rssink.rsstore.rsWhat the bus does, and why:
Levels:
criticalis only "nothing is being forwarded right now";warningis something that needs the user to act;infonever interrupts.Interface
The toolbar has a bell with what is currently open: level, what happened, how many times, and a click that lands on the page that can fix it. Each row can be dismissed.
Deliberately not in this PR
Test plan
cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo test(89, of which 12 are new: hold, dedupe, suppression, the bucket and its fold-in, flapping, recovery, dismissal, and the copy rules)pnpm typecheck,pnpm test(88)🤖 Generated with Claude Code