Repository navigation
Conversation
Honor `expire_timeout=0` as never-expire for low and normal notifications instead of treating it as the server default. This keeps persistence independent of urgency while preserving existing critical-notification behavior and timed history replays.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates notification timeout handling so explicit zero values create persistent low- and normal-urgency toasts while preserving existing defaults and history behavior.
Changes:
- Distinguishes server-default (
-1) from never-expire (0) timeouts. - Versions persisted popups for legacy compatibility.
- Adds documentation and focused lifecycle tests.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
shell/plugins/notifications/NotificationLogic.js |
Normalizes durations and versions persistence. |
shell/plugins/notifications/Service.qml |
Applies the new duration policy. |
test/shell.d/notifications-test.sh |
Tests timeout and legacy behavior. |
docs/notifications.md |
Documents persistent timeout semantics. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
1 of 2 tasks
Collaborator
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.
Honor
expire_timeout=0as never-expire for low- and normal-urgency notifications instead of treating it like the server default.The notification service currently collapses -1 (server default) and 0 (never expire) into the same timed path. Preserve that distinction through snapshotting and persistence so callers can request a persistent notification without inflating its urgency.
Legacy persisted popups retain their previous timed behavior. Critical notifications and history replay behavior remain unchanged.
This provides the dedicated “wants an answer” mechanism discussed in #7953. Related earlier discussion: #5059