Repository navigation
[2192 by GPT-5.6 Sol] Add configurable native desktop task notifications with quiet defaults - #2197
Conversation
…otifications Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
|
/ultrafix goal=9 max=2 |
|
🔄 Ultrafix loop started (goal: 9/10, max cycles: 2) First action:
|
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
|
Integration correction from root: merge the latest desktop epic before final validation. #2194 is already merged; its Browser push panel currently says Native desktop notifications are not implemented yet. This PR introduces them, so update that notice to direct users to the new Desktop notifications section while preserving the custom-origin service-worker gates and browser regressions. Earlier coordination note: #2192 (comment). Keep this focused; do not restore unsupported browser push behavior. |
|
Root code inspection found a concrete preference race to include in the focused corrections: NativeNotificationService.update clears pending deliveries only for update.enabled === false. If taskFailed (or another event toggle) is switched off during the 750 ms batch window, #flush filters only current scope and still displays the now-disabled kind. The user requested choosing which events to show, and the issue requires disable to apply immediately. Re-check current master/event preferences when flushing (and/or remove affected pending notices on update), including grouped counts. Add regression: queue failed notice -> set taskFailed false before flush -> no notice; mixed batch retains only enabled kinds. Preserve rate limiting and scope fencing. Do not add a broad notification refactor. |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR adds a well-structured native desktop notification pipeline, including scoped preferences, IPC mediation, event filtering, batching, rate limiting, and settings UI. It needs several targeted correctness fixes before merge. ✅ Privacy-conscious projection — The renderer forwards only task-transition fields and deliberately excludes arbitrary event metadata. ✅ Quiet, independent defaults — Desktop notifications are opt-in, with started/completed disabled by default and settings kept separate from browser push. ✅ Broad focused coverage — Tests exercise capabilities, preferences, deduplication, stale clicks, rate limits, IPC routing, and explicit user enrollment. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Malformed socket events can throw
F2: 🔴 Failed writes poison future saves
F3: 🔴 Old account responses overwrite new settings
F4: 🔴 Writer can create an unreadable state
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe overall design and targeted tests are strong, and current-head status reports no failures, although all eight checks are neutral/skipped. Four localized but real boundary, persistence, and account-isolation defects prevent merge readiness. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit c4622dd Processed 2 comments: Summary of ChangesImplemented the focused PR #2197 follow-ups without committing:
Validation passed:
Visual previewDesktop Browser push guidanceThe Browser push panel now directs desktop-app users to the native Desktop notifications section while keeping Browser Web Push unavailable on the custom desktop origin. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/fix F1 F2 F3 F4 Address the four localized blockers from review 5574854007, with regression tests. There is already an active follow-up task handling epic integration, Browser push guidance, and the per-event-toggle batch race (comments 5574794108 and 5574810944); serialize this request behind that work and preserve its changes. Keep the PR targeting 1950-epic-cross-platform-dsk, not main. No optional refactoring or Windows work. Retain opt-in native delivery, started/completed off by default, failures/needs-attention on after enablement, independent event settings and burst suppression. Report exact tested head and link Closes #2192. |
…ing: Implemented the focused PR #2197 follow-ups without committing: - Integrated the desktop epic containing merged PR #2194, resolving preload and startup-policy overlaps. - Revalidated native notification preferences at batch flush time, excluding newly disabled event kinds from delivery and grouped counts. - Added regressions for disabled queued failures and mixed grouped batches. - Updated Browser push guidance to direct desktop users to the Desktop notifications section while preserving custom-origin gates. - Generated focused visual preview evidence. Validation passed: - Desktop typecheck - UI typecheck - Full desktop suite: 659 passed, 27 platform-specific skips - Browser push/service-worker regressions: 25 passed - Focused integration tests: 30 passed - Production desktop renderer build - Focused UI lint and `git diff --check` PR: #2197 Comment by: @integry (ID: 5574794108) Comment by: @integry (ID: 5574810944) Model: gpt-5.6-sol
|
✅ Applied the requested follow-up changes in commit 9834920
Summary of ChangesImplemented F1–F4 with regression coverage, preserving the preceding follow-up commit and notification behavior.
Validation:
PR base confirmed: Exact tested HEAD: Closes #2192. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/merge After the active review-fix task 17209 completes, merge the current desktop epic 1950-epic-cross-platform-dsk (now includes native icon PR #2195 at 30dd65e). c4622dd integrated an earlier epic and is still CONFLICTING. Preserve its batch-toggle/Browser push corrections plus F1-F4 fixes and branded main-window configuration. Serialize behind active work and leave open for validation; never merge main. |
integry
left a comment
There was a problem hiding this comment.
Root independent check on c4622dd: 11 native-notification service tests passed under Node 22, including newly disabled queued event and mixed-batch filtering regressions. This validates the focused batching correction only; F1-F4 are still being handled by ProPR task 17209, and current-epic sync is queued. Not yet merge-ready or native-banner visual acceptance.
…preceding follow-up commit and notification behavior. Implemented F1–F4 with regression coverage, preserving the preceding follow-up commit and notification behavior. - Hardened malformed socket payload validation. - Made preference writes transactional and recoverable after failures. - Fenced update/test results by account scope generation. - Enforced the 1,000-account persistence limit. - Retained opt-in defaults, independent event toggles, and burst suppression. Validation: - Desktop: 688 tests, 0 failures, 27 platform skips - Focused UI: 8 tests passed - UI Docker-context regressions: 2 passed - Desktop/UI typechecks passed - Focused UI lint and `git diff --check` passed PR base confirmed: `1950-epic-cross-platform-dsk`. Exact tested HEAD: `c4622dd77a5305af6caefc74a8902e39a98e8245` Uncommitted diff hash: `23256afd26a44564472e82427cabb367670ea727` Closes [#2192](#2192). PR: #2197 Comment by: @integry (ID: 5574889834) Model: gpt-5.6-sol
|
🔀 Resolved merge conflicts from Conflicting Files
Resolution SummaryResolved all merge conflicts in the four specified files. No conflict markers remain anywhere in the repository. Conflict resolutions:
Validation passed:
No commit was created. Git staging could not be completed because the linked worktree’s Git metadata is owned by 🤖 Resolution Details
System-triggered merge conflict resolution |
…gpt-5.6-sol-add-configurable-native-d-20260907-1840-cig Automatically resolved merge conflicts after merging target branch into PR branch. Resolved conflicts in: - apps/desktop/src/main.ts - apps/desktop/src/preload-bridge.ts - propr-ui/src/pages/SettingsPage/NotificationSettingsSection.test.tsx - propr-ui/src/pages/SettingsPage/NotificationSettingsSection.tsx PR: #2197 Model: gpt-5.6-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
integry
left a comment
There was a problem hiding this comment.
Root independent integrated-candidate checks at f9965c2: inspected the F1-F4 correction diff; native notification service tests pass 13/13; scoped-task normalization and Desktop/Browser notification settings tests pass 14/14 across 3 UI files, plus 2 Docker-context post-tests. UI typecheck passed; full UI lint is being checked separately. Building exact-commit runtime images for a native packaged notification test next. This is not yet proof that an OS banner was displayed or a final combined tray+notification build.
integry
left a comment
There was a problem hiding this comment.
Root actual Linux native evidence at f9965c2: clean Node22 npm ci, exact-commit app/UI runtime images + manifest, DEB SHA256 49630e0d2912bef87be21bc505dabe88943901b47fefd1827bf1e4982ab01589, and 4/4 isolated packaged smoke launches passed. Relaunched only the approved propr-desktop-test account with retained user-data/keyring; real @propr-ultrafix login persists and Settings renders separate Desktop notifications with expected quiet defaults. Explicitly enabled, sent test alert, and visually captured the ACTUAL xfce4-notifyd banner (service PID 2692707, activated on test UID1001 D-Bus by app PID2692421), not merely a delivery invocation. Banner says Desktop notifications are ready / ProPR can send task status updates on this device. Its View action focuses the app and navigates to Tasks in the current authenticated instance. Restored master enabled=false afterward; test button becomes disabled. Evidence retained /tmp/propr-linux-notifications-f996.85mGKZ/{native-test-banner.png,live-settings.png,live-enabled.png,after-banner-view.png,live-restored-off.png}. This proves native test delivery/click routing, not yet real started/completed task events; no paid agent jobs were created. Current test app runs this candidate; tray is not included.
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR adds opt-in native task notifications for Linux and macOS, with per-account/device preferences, event filtering, batching, rate limiting, scoped navigation, and separate desktop settings. The implementation is thoughtful and well tested, but two localized delivery races make it need minor changes before merge. Current checks report no failures, although 17 remain pending. ✅ Strong trust boundaries — Task events are projected without metadata, validated again at IPC, and checked against the active connection scope before delivery and navigation. ✅ Careful preference handling — Quiet defaults, atomic persistence, write rollback, account limits, and stale-account UI result protection are all implemented and tested. ✅ Focused platform UX — Desktop notifications remain independent from Browser push, while Windows and unavailable native APIs receive explicit capability messaging. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F5: 🔴 Event disable is not immediate
F6: 🔴 Test delivery can report false success
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Scope live notification handles
S2: 🟢 Test the renderer adapter lifecycleA focused ScoreThe core design and coverage are strong, but the two localized user-visible delivery errors should be corrected before merge. No current check has failed, though the pending checks still need to complete. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
/fix F5 F6 Apply only the two localized delivery corrections in review 5575296178. F5 must immediately suppress already queued disabled event kinds even while the preference write is unresolved; preserve transactional persistence/rollback, and use a deferred-write regression. F6 must report whether native show was actually invoked after the rate limit is saturated. Do not take optional S1/S2 or refactor the pipeline. Root has already visually verified actual native test banner delivery and View-to-Tasks routing on f9965c2 in the isolated real-account Linux app. Preserve that behavior and quiet defaults. Latest epic also contains the test-only #2199 cleanup correction at 59c7823; retain it if syncing, never main. Leave open for focused validation. |
|
✅ Applied the requested follow-up changes in commit 5e6faa1
Summary of ChangesImplemented only F5 and F6 on base HEAD
Validation passed:
No visual preview was generated because these are delivery semantics without UI changes. No commit or PR operation was performed. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Implemented only F5 and F6 on base HEAD `f9965c2`: - F5: disabled event kinds are removed from pending batches immediately, while persisted preferences remain transactional until the deferred write succeeds. - F6: test delivery now returns whether native `show()` was actually invoked, including rate-limit saturation. - Added deferred-write and saturated-rate-limit regressions in [native-notifications.test.ts](</tmp/git-processor/worktrees/integry/propr/pr-2197-followup-2026-09-07T20-21-27/apps/desktop/src/native-notifications.test.ts>). - Updated service behavior in [native-notifications.ts](</tmp/git-processor/worktrees/integry/propr/pr-2197-followup-2026-09-07T20-21-27/apps/desktop/src/native-notifications.ts>). Validation passed: - Focused notification tests: 13/13 - Desktop typecheck - Full desktop suite: 671 passed, 27 skipped, 0 failed - `git diff --check` No visual preview was generated because these are delivery semantics without UI changes. No commit or PR operation was performed. PR: #2197 Comment by: @integry (ID: 5575303342) Model: gpt-5.6-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
integry
left a comment
There was a problem hiding this comment.
Root independently checked 5e6faa1 against f9965c2: localized queued-kind suppression and actual native show invocation result changes, with deferred-write and rate-limit regressions. Focused native-notification suite passes 13/13 on Node 22. Real Linux OS banner and View-to-Tasks routing were verified on the preceding f996 packaged build; that is not yet real task lifecycle delivery or final integrated-head acceptance. Fresh ProPR review is already active; no duplicate implementation request.
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR adds opt-in, per-event native task notifications for Linux and macOS through a narrow Electron IPC bridge, with persisted preferences, batching, rate limiting, and safe task navigation. It needs minor changes before merge because two lifecycle cases can suppress valid notifications. ✅ Immediate preference enforcement — Disabling an event kind removes matching queued notices before persistence completes, while failed writes still leave stored preferences unchanged. ✅ Strong renderer boundary — Task events are projected into a metadata-free payload and validated again at the native IPC boundary. ✅ Focused regression coverage — Tests cover quiet defaults, persistence failure, stale scopes, batching, rate saturation, navigation, and the two previously requested delivery corrections. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F7: 🔴 Stale clear closes active notifications
F8: 🔴 Retry notifications are permanently deduplicated
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Contain native API exceptionsConsider catching synchronous exceptions from the injected ScoreThe implementation is well-scoped and thoroughly tested, but the two notification lifecycle defects can hide valid active-account and retry alerts. Current checks have no reported failures, though most remain pending. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
/fix F7 F8 Apply only the two demonstrated lifecycle defects from review 5575442995. Root confirmed clear(oldScope) currently closes all live handles, and terminal dedup never resets for a retry (with preference filtering occurring before cycle tracking). Keep scope cleanup isolated and recognize genuine newer execution cycles even when started alerts are disabled; preserve exact-event duplicate and stale-event rejection. Add focused old-scope clear and failed/completed retry regressions. No optional S1, refactors, Windows work, or changes to quiet defaults. Root latest 5e6faa1 full desktop suite passes 672 tests, 26 platform skips, zero failures. Leave open against desktop epic only. |
|
✅ Applied the requested follow-up changes in commit 4e48c47
Summary of ChangesImplemented F7 and F8 only.
Validation on base
Only the two notification source/test files changed. No commit, preview, PR target, or optional work was performed. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Implemented F7 and F8 only. - Scoped cleanup now closes live notifications only for the active scope or a global clear: [native-notifications.ts](/tmp/git-processor/worktrees/integry/propr/pr-2197-followup-2026-09-07T20-40-34/apps/desktop/src/native-notifications.ts:321) - Newer processing cycles reset terminal dedup before event-preference filtering, while exact duplicates and stale revisions remain rejected: [native-notifications.ts](/tmp/git-processor/worktrees/integry/propr/pr-2197-followup-2026-09-07T20-40-34/apps/desktop/src/native-notifications.ts:283) - Added old-scope clear and failed/completed retry regressions: [native-notifications.test.ts](/tmp/git-processor/worktrees/integry/propr/pr-2197-followup-2026-09-07T20-40-34/apps/desktop/src/native-notifications.test.ts:240) Validation on base `5e6faa1d8a6fbb5c922501811bbe391c1f37910e`: - Focused tests: 15 passed - Desktop typecheck: passed - Full desktop suite: 673 passed, 27 platform/environment skips, 0 failures Only the two notification source/test files changed. No commit, preview, PR target, or optional work was performed. PR: #2197 Comment by: @integry (ID: 5575447500) Model: gpt-5.6-sol
integry
left a comment
There was a problem hiding this comment.
Root inspected 4e48c47 against 5e6faa1 and independently ran native-notification tests: 15/15 pass. F7 now restricts live-handle cleanup to the active scope or global clear. F8 tracks bounded per-task transition cursors before per-event preference filtering, resets terminal dedup on a newer started cycle, and rejects stale/duplicate revisions. The focused tests cover old-account cleanup and failed/completed retries with started alerts disabled. No additional demonstrated blocker found in this bounded fix review. Prior build/full-suite evidence is not a claim of final integrated acceptance; Linux/macOS CI and epic composition remain pending.
|
/merge Sync current desktop epic base 1950-epic-cross-platform-dsk (70d26dd) only, never main. Preserve F5-F8 notification delivery corrections and quiet defaults. Retain epic test corrections #2199 and #2201. Root focused tests on 4e48c47 pass 15/15 and bounded independent inspection found F7/F8 addressed. Leave open for final integrated validation; no optional polish. |
|
🔀 Auto-merged No conflicts were found — the merge was verified by an AI agent. 🤖 Verification Details
System-triggered merge conflict resolution |
…to 2192/gpt-5.6-sol-add-configurable-native-d-20260907-1840-cig
integry
left a comment
There was a problem hiding this comment.
Integration decision on 490c4ef: Ultrafix-first reviews identified F1-F8; ProPR applied the bounded fixes and root independently inspected their diffs/regressions. Latest epic sync changes only the two existing test fixtures. Root exact-head full desktop suite passes 674 tests, 26 platform skips, zero failures; desktop typecheck passes. No current non-Windows CI failure is reported, though fresh CI remains pending. Actual Linux native test banner and View navigation were verified on prior f996 build, not final-head real task events. Integrating into desktop epic only, with combined-head Linux/macOS CI and real-account acceptance still required under #1962; no claim of release readiness.

AI Implementation Summary
Closes #2192
Branch:
2192/gpt-5.6-sol-add-configurable-native-d-20260907-1840-cigCommits: ✅ Changes committed (37123c7)
AI Processing Completed
Execution Details:
Summary:
Implemented GitHub issue #2192.
Validation passed:
Detailed Logs:
01a07d2c-f4ce-7262-aed9-46402ac04831Log files stored at:
/tmp/claude-logs/issue-2192-2026-09-07T19-13-38-361Z-conversation.json/tmp/claude-logs/issue-2192-2026-09-07T19-13-38-361Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2192.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Linux desktop notification settings
The new native desktop notification controls with quiet event defaults and explicit device enrollment.