Repository navigation
fix(desktop): recover credentials before engine readiness - #4718
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Passed · 3/3 tests · 4/4 assertions · 2 images Commit |
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (138540 ms), confidentiality-review (216466 ms), spec-provenance-review (249589 ms), desktop-den-sync-review (318040 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (c8cfcdd7def1b8a1d9c054387483a1d1a9b4a2ec). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
…e-delivered Since #4718 the desktop pushes its Den session twice per launch or reload (identity, then sync). Each PUT bumped the managed-policy generation, so any enforcement check in flight failed with 409 policy_identity_changed even though the account never changed; the restricted member's opencode-config write came back 409 instead of the policy's 403. Bump the generation only when the baseUrl, token, or orgId actually differ.
…implified Library add flow (#4741) * fix(app): hide the Dialog popup synchronously on dismiss Base UI keeps a closing Dialog mounted until its exit animation ends, so the Library add picker and the Add workspace MCP modal stayed visible for the 100 ms fade-out after Escape. Hide the overlay and popup with data-closed:hidden (entrance motion unchanged), matching the AlertDialog and command palette fix. * fix(server): keep policy checks alive when the same Den identity is re-delivered Since #4718 the desktop pushes its Den session twice per launch or reload (identity, then sync). Each PUT bumped the managed-policy generation, so any enforcement check in flight failed with 409 policy_identity_changed even though the account never changed; the restricted member's opencode-config write came back 409 instead of the policy's 403. Bump the generation only when the baseUrl, token, or orgId actually differ. * test(evals): observe the account menu closing before asserting its absence The dropdown menu has no exit motion, yet its unmount is still a React commit away from the Escape key event; on Daytona the first notSee inspection landed 33 ms later while the menu was still mounted. Follow command-palette-search: wait for the menu popup to leave the DOM, then hold the strict absence window.
Summary
Recover trusted desktop credentials before engine readiness without starting provider materialization, and keep startup failures actionable instead of leaving an empty window. Follow-up to #4711.
Compatibility and containment
Verification — Incomplete
Candidate:
c8cfcdd7def1b8a1d9c054387483a1d1a9b4a2ecBase and merge base:
00b0a1613bba00c785ae74934c0b6ed6cb5b2d8d(dev)Passed on the committed, rebased candidate (all exit 0; no failures or skips):
pnpm --filter @openwork/app exec bun test --isolate ./tests/session-provider-auth-server-sync.test.ts ./tests/cloud-provider-sync-gateway.test.ts ./tests/app-error-boundary.test.tsx ./tests/boot-state.test.tspnpm --filter openwork-server exec bun --conditions=development test src/cloud-provider-sync.e2e.test.ts src/cloud-provider-sync-reload-guard.test.tspnpm evals:pr specs/managed-provider-env-delivery-reload.test.tspnpm evals:e2e app-render-crash-recovery --localpnpm evals:e2e reliable-app-recovery --localpnpm --filter @openwork/app typecheckpnpm --filter openwork-server typecheckgit diff --check origin/dev...HEADBoth desktop runs reported:
selection: engine=legacy surface=legacy case=all; placement: local (--local).Remaining clearance
OPENWORK_REVIEW_URLis not configured. Test results above passed locally; their full evidence reports are not published. Configure the review endpoint and publish the existing runs without rerunning them.pnpm warden:checkfailed with exit 1 because the configured review authentication was unavailable. The scope was 17 changed files/60 chunks. Expected: diff-security-review, confidentiality-review, spec-provenance-review, desktop-den-sync-review. No applicable skill established completed coverage; skipped output is not clearance. No validated finding IDs were produced. Head/base were unchanged before and after the attempt.a2cec4f1-2026-09-10T00-13-35-547Z.