Repository navigation
[2184 by GPT-5.6 Sol] Diagnose Linux browser pairing reporting failure after Chromium opens GitHub - #2185
Conversation
…ng failure a Implemented by ProPR AI using gpt-5.6-sol model. Implementation completed successfully.
|
/ultrafix goal=9 max=3 Validate the scoped browser-pairing status/error-classification correction. Pay particular attention to IPC structured outcomes, cancellation/shutdown guarantees, bounded polling after browser-launch uncertainty, stale operation fencing, secret-free diagnostics, and no authentication/security bypass. Root will independently inspect the diff, run regressions and build the real Linux package. Windows remains deferred. Fix confirmed blockers only; no optional polish or weakened tests/deadlines. Target remains desktop epic, never main; do not merge or publish. |
|
🔄 Ultrafix loop started (goal: 9/10, max cycles: 3) First action:
|
integry
left a comment
There was a problem hiding this comment.
Independent root checks at 434707a: clean npm ci (zero advisories), prepare:renderer, and focused browser pairing/preload/IPC/native shutdown lifecycle suite passed 31/31, zero skips/failures. Shutdown cancellation still rethrows while IPC is closing; strict approval URL validation precedes OS launch. Review observation: in ipc.ts acceptanceStatus, the newly added paired===false check is AFTER the early return for objects lacking status. The actual new result {paired:false,code:...} lacks status, so this path still reports COMPLETED instead of intended REJECTED. Please consider in the active Ultrafix review with a focused reporter regression. Also verify current-operation fencing after awaiting openPairingBrowser: progress events identify only profileId, so late browser completion from a cancelled attempt must not update a newer same-profile attempt. No new deployment or merge; aligned build underway.
|
Confirmed current-head Linux CI correction: run 34148363208, job 101825325424 fails run-native-durability.mjs because expected=120 but executed=123 passed=123 failed=0 cancelled=0 skipped=0, child code=0. This PR adds tests selected by that verifier. Update the relevant category/total expectations to match the actual added cases, retaining exact counts, zero skips/failures/cancellation and existing budgets. Run the verifier itself, not only underlying tests. Coordinate with active Ultrafix findings; no unrelated runner redesign, Windows changes, merge or publication. Root is building and reviewing 434707a independently. |
|
✅ Applied the requested follow-up changes in commit 6f4a6fd Summary of ChangesUpdated run-native-durability.mjs:
Validation:
No preview generated because this correction is not user-visible. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/review Ultrafix was requested at comment 5574028729 and acknowledged at 5574029284, but authoritative ProPR task listing currently shows only the native-count follow-up and no review task for this PR. Start the first review explicitly; keep the existing Ultrafix label/loop. Review root evidence and concerns already in PR reviews: 31/31 desktop regressions, 53/53 focused UI tests, clean Linux package and 4/4 packaged smoke pass; acceptanceStatus guard order and same-profile stale browser-progress fencing need checking. Account for the separately active exact native-count correction. No optional polish, merge, publication, or Windows scope changes. |
integry
left a comment
There was a problem hiding this comment.
Independent root artifact validation at 434707a completed: exact-commit app/UI images and explicit local manifest built, Linux x64 Electron package built cleanly, all 4/4 packaged smoke launches passed (OS credentials, REST/Socket.IO, scope rotation/rollback, renderer layout and shutdown). Focused UI suite passed 53/53 plus two Node context tests; earlier focused desktop/browser/preload/native shutdown suite passed 31/31. Live test app has not yet been replaced; real GitHub approval remains unverified. CI failure is separately diagnosed as expected native count120 versus actual123 all passing and assigned to ProPR.
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
…trees/integry/propr/pr-2185-followup-2026-09-07T17-41-44/apps/desktop/scripts/run-native-durability.mjs:8): Updated [run-native-durability.mjs](/tmp/git-processor/worktrees/integry/propr/pr-2185-followup-2026-09-07T17-41-44/apps/desktop/scripts/run-native-durability.mjs:8): - `pairing-browser`: 1 → 4 - Derived total: 120 → 123 - Existing budgets and zero failure/cancellation/skip assertions unchanged Validation: - `npm run test:native-durability` - 123 executed, 123 passed - 0 failed, 0 cancelled, 0 skipped - `git diff --check` passed - Only the requested verifier file changed No preview generated because this correction is not user-visible. PR: #2185 Comment by: @integry (ID: 5574054723) Model: gpt-5.6-sol
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
|
/review |
|
Confirmed additional CI failure from build-check-output-34148363090-1 artifact (not the truncated bot comment): full UI lint runs eslint . --max-warnings 0 and fails on two new max-lines warnings in DesktopExperience.tsx and electronAdapters.test.ts. Local changed-file lint without --max-warnings 0 did not cover this gate. Please make a minimal focused extraction/split that preserves behavior and tests, without disabling rules or widening limits; run the actual full UI lint command. Before final validation, merge the latest desktop epic base into this PR so already-merged #2176 readiness/shutdown fixes are included (current epic f692d48). Keep this coordinated with active review task16923 and fix confirmed findings only. No main merge or publication. |
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR adds structured, secret-free pairing outcomes, Linux browser-launch recovery, bounded approval polling, and a dedicated authentication-progress UI. It needs changes before merge: four localized correctness issues remain, and all nine current-head checks are still pending. ✅ Secret-free boundaries — Browser errors discard host details, IPC progress accepts only exact fixed fields and stages, and renderer-facing failures expose fixed codes. ✅ Bounded ambiguous-launch recovery — A validated approval URL may continue through the existing server deadline after an ambiguous launch rejection, preserving polling and cancellation limits. ✅ Durability count corrected — The verifier now expects four pairing-browser tests and 123 total tests, matching the separately reported native run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Limit fallback to Linux
F2: 🔴 Pairing failures report completion
F3: 🔴 Correlate progress per attempt
F4: 🔴 Cancel before choosing another instance
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe security boundaries and Linux recovery design are strong, but cross-platform scope leakage, incorrect acceptance reporting, and two pending-operation fencing gaps prevent merge. The fixes are localized, after which the pending current-head checks must complete successfully. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
Posted 0 review, 1 failed: |
integry
left a comment
There was a problem hiding this comment.
Root independently reran the corrected 6f4a6fd native durability verifier: exact123 executed/pass, zero failure/cancellation/skip. Mac ARM64 merged-ref failure is in the already-integrated Electron readiness fixture: ERR_FAILED loading custom URL while its readiness callback schedules destroy after fixed50ms, before loadURL necessarily resolves. Isolated diagnosis/fix as #2186 on epic, not production pairing scope. Preserve latest epic ancestry and keep pairing/lint corrections focused. Existing root local package smoke remains 4/4.
|
/fix F1 F2 F3 Coordinate with the queued strict-lint cleanup and latest epic sync from comment5574107516. F4 is contradicted by current source: DesktopExperience.tsx choose() already calls settleAuthenticationCancellation(adapters,state.profile.id) for any state containing profile, increments connectionAttempt, and transitions to choose. The new authenticating state contains profile, so onChoose={choose} already cancels and fences late settlement. Please reconcile F4 with this actual code rather than adding duplicate cancellation. Add targeted coverage if needed to demonstrate the existing path; do not treat F4 wording as proof of a missing call. Preserve all deadlines, credential publication fences and strict URL/secret boundaries. Keep fixes scoped to this epic; no main merge or publication. |
🔍 AI Code Review — codex:gpt-5.6-sol❌ Review failed: Execution aborted by user request |
|
✅ Applied the requested follow-up changes in commit ef1f89f
Summary of ChangesImplemented F1–F3 without changing F4 behavior:
Validation:
Outstanding coordination blockers:
🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
integry
left a comment
There was a problem hiding this comment.
Additional CI triage: 6f4a6fd Linux x64 and arm64 package validation and the full backend suite passed. Darwin arm64 hit the isolated Electron fixture race covered by #2187. Darwin x64 failed a different stage: job 101827178858, FIRST_SECURE_STORAGE_PROBE / SECURE_STORAGE_STARTED / FAILED_EXIT / DEEP_LINK_DELIVERY_FAILED. Do not assume #2187 fixes that result; confirm staged native lifecycle on the corrected pairing head before merge. Existing F1-F3/lint correction task is still active; no duplicate implementation requested.
|
Integration update for the existing correction work: #2187 is now merged into the epic at b9aabdd. Please include that latest epic commit before final CI, so macOS tests include the deterministic readiness-probe fix. Continue the current F1-F3/lint task; do not start a separate refactor. The earlier Darwin x64 staged native-lifecycle failure (job 101827178858, FIRST_SECURE_STORAGE_PROBE / DEEP_LINK_DELIVERY_FAILED) still needs a passing corrected-head result; it was distinct from the ARM fixture race. |
Implemented F1–F3 without changing F4 behavior:
- Linux-only ambiguous browser-launch recovery, with macOS/Windows coverage.
- Pairing `{ paired: false }` now reports `PAIR / REJECTED`.
- Main-issued operation IDs correlate progress to the exact pairing attempt; added cancel-and-immediate-retry regression coverage.
- Existing F4 cancellation/fencing path remains unchanged.
Validation:
- Desktop: 641 passed, 26 skipped.
- UI: 675 passed.
- Native durability: exact 123/123.
- Desktop/UI typechecks passed.
- `git diff --check` passed.
- No visual preview needed.
Outstanding coordination blockers:
- Full UI lint still reports the two queued `max-lines` warnings in `DesktopExperience.tsx` and `electronAdapters.test.ts`.
- Epic sync to `f692d48b` could not run because the root-owned worktree metadata prevents creating `ORIG_HEAD.lock`. No merge, commit, or publication was performed.
PR: #2185
Comment by: @integry (ID: 5574143679)
Model: gpt-5.6-sol
|
✅ Applied the requested follow-up changes in commit cac2974 Summary of ChangesIntegrated epic Also completed the scoped lint cleanup by extracting authentication handlers and the Electron test fixture. F4’s existing Validation passed:
The actual Darwin x64 staged native-lifecycle rerun still requires corrected-head macOS CI. This Linux host lacks Xvfb, so the real Electron frame-semantics test skipped locally. No visual preview was created because these changes are not user-visible. No commit or publication was performed. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/review |
|
Root validation of ef1f89f: F1-F3 diff inspected and fresh review requested. The required strict UI lint correction is still missing: npm exec -w propr-ui -- eslint . --max-warnings 0 exits 1; DesktopExperience.tsx has 461 counted lines (limit 400), electronAdapters.test.ts has 443 (limit 400). This is the same failure documented in 5574107516, not optional polish. Please include minimal extraction/test-file split alongside the active epic-sync follow-up; no max-lines suppression or limit widening. Re-run full UI lint with --max-warnings 0, then UI tests/typecheck. Do not duplicate F1-F3 work. |
integry
left a comment
There was a problem hiding this comment.
Root independent checks at ef1f89f: 49/49 focused desktop tests pass (IPC lifecycle, browser final sink, preload, credential-service browser recovery, pairing-response lifecycle), no skipped/cancelled tests. Inspected F1 Linux-only recovery guard, F2 paired:false acceptance classification before missing-status fallback, and F3 main-generated single-use operation admission with profile+operation matched progress and cancel/dispose invalidation. Strict UI lint remains red and was returned to ProPR in 5574336363. Renderer preparation and focused UI tests are running. Note that #2187 now passes both macOS package architectures, providing a clean epic control for the earlier x64 lifecycle failure.
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
integry
left a comment
There was a problem hiding this comment.
Real Linux acceptance progress: built GitHub merged-ref e72ab67 (epic b9aabdd + pairing ef1f89f), exact-commit local app/UI images and manifest; packaged smoke passes 4/4 with isolated real OS credential storage and transport/shutdown checks. Replaced only the approved test-account executable, preserving userdata and stack. Local setup restores Setup complete; Connect securely reaches Sign in required; Sign in in browser now displays Waiting for browser approval, and the test-account Chromium reaches GitHub Sign in to continue to ProPR.dev. This confirms the old immediate misleading browser-open error no longer occurs in this run. Actual account authentication/dashboard still requires the user and is not yet verified. Final lint/review/CI still pending; no merge requested by this evidence comment.
readiness-probe fix. The probe files byte-match the epic commit. Integrated epic `b9aabdd55`, including the deterministic #2187 readiness-probe fix. The probe files byte-match the epic commit. Also completed the scoped lint cleanup by extracting authentication handlers and the Electron test fixture. F4’s existing `choose()` cancellation/fencing path remains unchanged and covered. Validation passed: - Full UI lint with `--max-warnings 0` - UI: 675/675 - Desktop: 647 passed, 27 platform/environment skips - Native durability: exact 123/123, zero skips/failures/cancellations - Focused UI regressions: 48/48 - Desktop and UI typechecks - `git diff --check` The actual Darwin x64 staged native-lifecycle rerun still requires corrected-head macOS CI. This Linux host lacks Xvfb, so the real Electron frame-semantics test skipped locally. No visual preview was created because these changes are not user-visible. No commit or publication was performed. PR: #2185 Comment by: @integry (ID: 5574295125) Model: gpt-5.6-sol
|
✅ AI Code Review Complete requested by @integry, @github-actions[bot] Posted 1 review: |
integry
left a comment
There was a problem hiding this comment.
Root final-cleanup validation at cac2974: strict full UI eslint . --max-warnings 0 now passes. Diff against the live tested merged-ref e72ab67 is limited to five UI/helper files (authentication actions/access-invalid hook/test fixture extraction); backend and Electron code trees are unchanged. Inspected authentication extraction: operation fence, cancel settlement, progress filtering, post-credential reconnect and failure messages are preserved. Fresh focused UI regression tests are running. The queued review is confirmed active; no duplicate review requested.
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThe PR implements the Linux browser-launch recovery path coherently across the main process, IPC boundary, renderer state, and recovery UI. The changed code is ready within review scope, conditional on the 16 pending head checks completing successfully. ✅ Secret-free failure reporting — Pairing progress and failures cross IPC using validated operation IDs, fixed stages, and bounded failure codes rather than approval URLs or host error details. ✅ Ambiguous Linux recovery — A rejected ✅ Focused lifecycle coverage — Tests cover launch rejection, expiry and storage failures, stale progress isolation, cancellation, preload filtering, and renderer-readiness fencing. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe implementation is well-factored and extensively tested, with no verified PR-introduced blocker in the supplied diff. Merge readiness remains conditional on the currently pending checks. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |
integry
left a comment
There was a problem hiding this comment.
Real authenticated acceptance now verified: screenshot of the live e72ab67 merged-ref app shows the connected application Settings page, identity propr-ultrafix / @propr-ultrafix and active instance This computer. User completed GitHub sign-in themselves; root did not enter credentials. This proves the actual local setup -> browser pairing -> authenticated renderer path, not just a fixture. The reported Web Push custom-origin error is confirmed and independently tracked as #2189, with icons #2190, tray #2191 and native notifications #2192. Final local cac2974 DEB built; full desktop assertions 648 passed / 26 skips / 0 failed, but process required manual cleanup of the verified early-HUP fixture shell (#2188), so that run is not claimed as an unassisted full-suite pass. Strict UI lint and 48 focused UI tests pass unassisted.
integry
left a comment
There was a problem hiding this comment.
Integration decision at cac2974: Ultrafix review 5574535357 scores 9/10 with no code blockers. Current-head CI build/lint, full suite and both macOS package validations pass. Root exact-head Linux DEB build and packaged 4/4 smoke pass; strict UI lint and 48 focused UI tests pass. Real browser pairing to authenticated Settings was verified on e72ab67, whose backend/Electron code is byte-identical and UI differs only by reviewed helper extraction. Linux CI package jobs are still pending (not claimed passed); Windows is explicitly deferred. The separately reproduced test fixture process-exit bug is tracked in active #2188 and is not hidden as a clean local full-suite pass. Integrating this validated product fix into the epic now; no merge to main.
AI Implementation Summary
Closes #2184
Branch:
2184/gpt-5.6-sol-diagnose-linux-browser-pa-20260907-1653-dywCommits: ✅ Changes committed (434707a)
AI Processing Completed
Execution Details:
Summary:
Implemented the Linux browser-pairing fix.
Key changes:
shell.openExternal/portal failures as approval-pending when the browser may already have opened.Validation:
Detailed Logs:
nullLog files stored at:
/tmp/claude-logs/issue-2184-2026-09-07T17-37-14-412Z-conversation.json/tmp/claude-logs/issue-2184-2026-09-07T17-37-14-412Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2184.
💡 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 browser approval recovery
The new pending browser-approval panel after an ambiguous desktop portal launch rejection.