Repository navigation
fix(native): retire hidden notifications and confirm delivery - #189
Merged
Merged
Conversation
Open
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.
Native notifications could remain on screen after a tag filter hid their thread, and the dock badge counted fire-and-forget OS delivery attempts. This ports hidden-thread suppression/retirement and records macOS delivery only after authorization and request acceptance.
Refs #12. AP-NOTIFY stays partial, with Issue #12 retained.
Verification: native workspace Clippy, workspace tests, native build, snapshot build, generated theme check, parity sync tests, client-runtime conformance check, and scoped formatting. The hidden-thread regression failed before suppression was applied; core tests cover presentation settings/focus, gate/dedupe behavior, failed/unavailable/denied/unconfirmed delivery, late callbacks, and environment-qualified badge counts. No real OS notification, audible sound, agent turn, or real window was used.
Offscreen UI evidence (local files):
/private/tmp/native12-evidence/before.png/private/tmp/native12-evidence/after.png/private/tmp/native12-evidence/check:changedis not run: its CI owner mapping treatsapps/nativeas unknown and expands to all packages, which this worker is forbidden to check. Native gates and scoped formatting are used instead.Remaining gaps:
AppState::clear_connection_statedestroys the sole client/shell when switching, andstart_environmentowns active-only SSH/auth route handling. Follow-up: extract an environment-keyed owner around existingsupervisor::start_preparedhandles and route preparation; reduce each shell/config and run its notification watcher on the network runtime; let the active view attach to those existing handles; route notification targets by switching environment then opening the thread/family; stop removed/disabled environments while preserving gates across reconnects. This needs no server feature.Unverified: actual bundled macOS authorization, banner presentation/clicks, sound/dock appearance, and non-macOS compilation. The new macOS bridge is compiled; tests use only core delivery outcomes. OS request acceptance does not guarantee a visible banner under system notification settings.
Built with GPT-6.1 Sol in Codex