Skip to content

fix(native): roll delegated notifications up to linked parents - #203

Merged
rynfar merged 1 commit into
nativefrom
nw/12-delegated-notifications
Nov 4, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/12-delegated-notifications

Conversation

@rynfar

@rynfar rynfar commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Delegated tasks notified independently of their linked parent, and approvals on remote tasks did not update an unchanged parent's notification state. This ports the threadShell.ts suppression and request precedence into a pure, bounded core projection, then reobserves connected saved environments on meaningful shell/config/lifecycle batches on Tokio.

Canonical delegated links resolve to saved environment IDs. Missing, archived, or disconnected parents leave the child eligible; local ancestry and linked chains settle through cycles, approvals win over questions, coordinator-owned questions stay local, and tag-hidden attention is consumed without replay. Newly suppressed child deliveries retire through the existing stale-callback guards. Supervisor reuse, environment-qualified gates and background click routing remain intact. The shell now preserves omitted versus null activity status so ended child requests stop rolling up.

AP-NOTIFY remains partial, tracking #12 without closing it. Native paths are updated in apps/native/parity/LEDGER.md.

Validation:

  • Failing-first client regression: before [b/same: Approval needed], after [a/same: Approval needed], with different canonical and saved IDs.
  • Core cases cover nested ancestry, linked/local cycles, precedence, provider-native children, ended runs, absent/archived/disconnected parents, retirement and late confirmation.
  • Client fixture covers disconnect/reconnect, tag hide/reveal, route replacement and removal; existing socket reuse and click/gate tests pass.
  • 1,345 workspace tests, native build, theme, parity (42 tests), conformance and scoped formatting passed before the disjoint feat(native): polish ACP registry search and identity #200 rebase onto 9ea0e07849. Final-head workspace Clippy passed. The read-only 14658 probe passed: Connecting → Connected; server-config snapshot received; final: 1 projects, 15 threads, synchronized=true.
  • vp run check:changed cannot load the desktop task graph with the installed Vite+. The direct check script reached the native-file full-repository fallback and was stopped there as required; commit-hook scoped formatting/lint passed.

Evidence: /private/tmp/native12-delegated-evidence/ (failing-first, core/client fixtures, checks and smoke transcript). No view/layout changes or new captures.

Remaining gaps: non-macOS delivery confirmation remains unconfirmed because GPUI has no posting result. Web favicon badges and non-macOS sound/badges remain outside this slice. A live two-server run, real SSH lifecycle, bundled macOS permission/banner/click/sound/dock behavior and non-macOS compilation were not verified. Verification used fixture sockets and the copied 14658 smoke home; no real OS alerts, audio, windows or provider turns.

Built with GPT-6.1 Sol in Codex

@rynfar
rynfar merged commit b6915d4 into native Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant