Repository navigation
feat: choose per category whether a notice interrupts, and report unreachable upstreams - #42
Merged
Merged
Conversation
…eachable upstreams Each category of notice can now raise a system notification, stay in the app's list, or be turned off, from a new section in Settings. A notice that interrupted also offers "不再弹出此类" in the list, which keeps that category in the app from then on. The setting is per category, not per notice: the same kind of thing will happen again tomorrow, and what the user means is "this kind of thing should not interrupt me". Turning a category off also withdraws what is open in it, because keeping an old notice around would ignore what the user just said. Upstreams that cannot be reached are now reported as well. Core's circuit-breaker "closed" after its cooldown means "may try again", not "recovered", so treating it as recovery would let an upstream that is still down open and close every minute and never outlast the hold. Recovery is taken only from a request the upstream actually served. The category stays in the app by default: most setups have a fallback, and a failure the fallback caught is not worth an interruption. 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
Follow-up to #41. That PR deliberately left out per-category switches.
Per-category switches
Unreachable upstreams
The user's list named this, and #41 did not cover it.
closedwhen its cooldown ends. That means "may try again", not "recovered".RequestRouted→ aservedattempt).Test plan
cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo test(94). New tests cover:closed, and clears only on a served attemptpnpm typecheck,pnpm build,pnpm test(88)🤖 Generated with Claude Code