Skip to content

fix(store): preserve saved access through recovery and restore parity - #172

Merged
BunsDev merged 4 commits into
companion-readinessfrom
store-recovery
Oct 11, 2026
Merged

BunsDev merged 4 commits into
companion-readinessfrom
store-recovery

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Preserve saved host access and mounted workspace drafts when certificate identity or host protocol validation fails. Store now enters explicit recovery, stops automatic retry churn, blocks dispatch, and offers Retry saved connection or Forget access and reconnect. Retry revalidates the saved pin and stream without replaying commands or accepting a replacement certificate; stale requests cannot change a newer connection.

The same patch refreshes installed-host discovery on each Check/Connect, retries failed group-directory resolution, handles all five Modex account commands locally with an accurate unavailable state, and adds native Workspace menu actions through the existing shortcut pipeline. Existing guest/renderer keys dispatch once. Inert dialogs and disconnected workspaces preserve drafts while leaving recovery controls keyboard-accessible. Attachments remain excluded from Store.

Stacked on #166 (companion-readiness). Merge hold: land #166 first, then reconcile against actual main and retarget this PR before merging.

Verification

  • npm run build and npm run typecheck passed.
  • npm test: 490 passed, one expected OpenKnowledge integration skip.
  • MODEX_TEST_OPEN_KNOWLEDGE=1 npm run test:e2e: 171 desktop and seven site tests passed.
  • Independent source and documentation review approved; only documentation changed after the integrated checks.
  • Recovery evidence and failure receipts include discovery recovery, changed-pin request blocking, protocol recovery paths, no command replay, retained drafts, unavailable account UI, and menu/shortcut behavior.

The separate signed native receipt records isolated current-account Codex/Claude turns, Stop, controlled-name encrypted-access relaunch, same-process draft retention across host restart, matching-code Allow, and revocation. It does not establish fresh-user setup, installed-app credential migration, native installed-host auto-launch, sleep/wake, full Store parity, or Apple distribution acceptance. Those gates remain explicit in the readiness matrix.

@vercel

vercel Bot commented Oct 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 11, 2026 8:50am UTC

Request Review

@BunsDev BunsDev self-assigned this Oct 11, 2026
@BunsDev
BunsDev merged commit f049c5d into companion-readiness Oct 11, 2026
5 checks passed
@BunsDev
BunsDev deleted the store-recovery branch October 13, 2026 12:48

This branch was successfully deployed

1 active deployment
Preview — 3d917547 Deployed Oct 11, 2026 by vercel[bot]
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