Skip to content

Install verified macOS updates with durable draft recovery - #181

Merged
BunsDev merged 4 commits into
mainfrom
updater-integration
Oct 12, 2026
Merged

BunsDev merged 4 commits into
mainfrom
updater-integration

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Packaged macOS builds can download a release, verify its publisher signature, and prepare an in-place update. Restart waits for active work to stop, saves the exact composer state, flushes Pages editors, and holds new work through native handoff. Settings dialogs and failed saves refuse restart; partial shutdown or an uncertain installation keeps recovery data readable and provides a safe Quit path.

Unsent text, attachment ownership, and pending original messages survive reload and process restart. A failed send retains its original separately from newer typing and requires an explicit retry. Thread/project removal and retirement flush live drafts and refuse to discard affected unsent work. Windows keeps its existing composer path; Windows/Linux updates remain manual.

The integration includes current main (5085349). Hosted draft fixtures explicitly select seeded threads and prove a single newer edit was accepted and durably saved before testing failed-send recovery; the original preservation and relaunch assertions remain. Shutdown tests select the intended CLI explicitly, and Store menu tests observe renderer delivery while Settings remains visible before closing it.

Validation: monorepo build and workspace typechecks passed; the full unit suite passed 1,362 tests with 15 skips; all 270 desktop and seven site E2E cases passed. Focused tests cover raw draft restoration, attachment races and capacity, owner removal, download cancellation and verification failure, and recovery Quit. Electron updater tests substitute download/staging/publisher verification and trap native updater calls; they do not prove a signed installed upgrade. The release workflow requires separate hosted macOS upgrade, native-failure, and interruption jobs before attaching draft-release artifacts. Actual signed acceptance and release publication remain open.

Local acceptance and remaining release gates.

Coven-Harness: Codex / gpt-6-astra

Preserve raw drafts, pending originals, and attachment ownership through
sends, owner removal, restart preparation, and uncertain update recovery.
Gate release artifacts on disposable signed macOS acceptance.

Coven-Harness: Codex / gpt-6-astra
@vercel

vercel Bot commented Oct 12, 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 12, 2026 9:03am UTC

Request Review

Reconcile prompt-cache usage measurement with durable draft recovery and verified macOS updates. Make the hosted draft fixtures wait for an accepted, persisted edit and select seeded threads explicitly. Preserve failure recovery assertions and native acceptance limits.

Coven-Harness: Codex / gpt-6-astra
Select the intended CLI explicitly after restoring a saved draft and observe Store menu delivery while Settings remains open. Preserve shutdown, transcript, tab and guest-isolation assertions.

Verified six focused cases and the full 270 desktop plus seven site E2E suite; application source matches the prior build, typecheck and 1,352 passing unit tests.

Coven-Harness: Codex / gpt-6-astra
Retain the warm-cache routing changes and Settings visibility precondition alongside explicit shutdown backend selection and observed Store menu delivery.

Verified full build and workspace typechecks, 1,362 unit tests with 15 skips, all 270 desktop E2E cases and seven site cases on the combined source.

Coven-Harness: Codex / gpt-6-astra
@BunsDev
BunsDev merged commit 7c9229a into main Oct 12, 2026
7 checks passed
@BunsDev
BunsDev deleted the updater-integration branch October 13, 2026 12:48
BunsDev added a commit that referenced this pull request Oct 18, 2026
Since #181 (v0.0.12), a thread created from a Mac draft keeps the full UUID its draft reserved,
but the companion's thread routes accepted only 8 hex characters. So the phone got a 404 when it
answered an approval, sent a follow-up, set the approval policy or archived any thread started on
the Mac; threads started on the phone, with short ids, worked. CF-8's fidelity e2e found it.

The routes now take any id the store accepts, and the thread must still exist. The new companion
test failed first with 404 for a UUID thread.

Refs #279

Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 18, 2026
Since #181 (v0.0.12), a thread created from a Mac draft keeps the full UUID its draft reserved,
but the companion's thread routes accepted only 8 hex characters. So the phone got a 404 when it
answered an approval, sent a follow-up, set the approval policy or archived any thread started on
the Mac; threads started on the phone, with short ids, worked. CF-8's fidelity e2e found it.

The routes now take any id the store accepts, and the thread must still exist. The new companion
test failed first with 404 for a UUID thread.

Refs #279

Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 18, 2026
Since #181 (v0.0.12), a thread created from a Mac draft keeps the full UUID its draft reserved,
but the companion's thread routes accepted only 8 hex characters. So the phone got a 404 when it
answered an approval, sent a follow-up, set the approval policy or archived any thread started on
the Mac; threads started on the phone, with short ids, worked. CF-8's fidelity e2e found it.

The routes now take any id the store accepts, and the thread must still exist. The new companion
test failed first with 404 for a UUID thread.

Refs #279

Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 19, 2026
Since #181 (v0.0.12), a thread created from a Mac draft keeps the full UUID its draft reserved,
but the companion's thread routes accepted only 8 hex characters. So the phone got a 404 when it
answered an approval, sent a follow-up, set the approval policy or archived any thread started on
the Mac; threads started on the phone, with short ids, worked. CF-8's fidelity e2e found it.

The routes now take any id the store accepts, and the thread must still exist. The new companion
test failed first with 404 for a UUID thread.

Refs #279

Coven-Harness: Claude Code / claude-opus-5-5
BunsDev added a commit that referenced this pull request Oct 19, 2026
… journal, replay and the phone (CF-6, request half) (#308)

* Record who answered each request and whether the answer reached the CLI

A card is the record of its request across the journal, snapshots, paired desktops and the phone
(CF-6, request half). An accepted answer now saves answeredBy ("desktop" or "phone") and
delivery "sending" before the CLI hears anything, then delivery "sent" after the hand-off. They
travel as whole field values in the existing item events, so the journal stores and replays them
with no new event type.

On a restart, a card still "sending" becomes "uncertain": Modex stopped between taking the answer
and recording its hand-off. The answer is never sent again, and a late answer is refused. The
phone gets answeredBy, delivery and withdrawn on approvals, and a question's notice says when
delivery is uncertain.

test/request-journal.test.ts failed first on each missing field: replay once and twice, a
restart, desktop and phone answering at once (one accepted, the phone's a 409), a paired desktop
resuming after the decision, an expired cursor, a crash mid-send, and a secret kept out of every
file with the journal on.

Refs #279

Coven-Harness: Claude Code / claude-opus-5-5

* Say on a card when the phone answered or delivery is uncertain

answerNote adds "Answered on your phone." under a card the phone answered, and "Modex stopped
before it could confirm the agent received this answer." when delivery is uncertain. An answer
given in the window and sent adds nothing. Its unit test failed first (no such export).

e2e/human-requests.spec.ts runs the Codex question fixture with the journal on, closes Modex,
marks the answered card as if Modex died mid-send, and restarts: the answered and stopped cards
are inert, the uncertain one says so, a second answer is refused, Codex hears nothing more, and no
file holds the secret.

Refs #279

Coven-Harness: Claude Code / claude-opus-5-5

* Document the request lifecycle across replay and reconnect

docs/human-requests.md maps each broker step to the card fields that carry it, and says what a
restart, replay, a late answer, two clients at once, the phone and the window do with them.
docs/event-journal.md points there instead of saying the lifecycle is still to come.

Refs #279

Coven-Harness: Claude Code / claude-opus-5-5

* Let the phone act on threads started on the Mac

Since #181 (v0.0.12), a thread created from a Mac draft keeps the full UUID its draft reserved,
but the companion's thread routes accepted only 8 hex characters. So the phone got a 404 when it
answered an approval, sent a follow-up, set the approval policy or archived any thread started on
the Mac; threads started on the phone, with short ids, worked. CF-8's fidelity e2e found it.

The routes now take any id the store accepts, and the thread must still exist. The new companion
test failed first with 404 for a UUID thread.

Refs #279

Coven-Harness: Claude Code / claude-opus-5-5

* Record CF-6's request half and the phone fix in status

Refs #279

Coven-Harness: Claude Code / claude-opus-5-5

This branch was successfully deployed

1 active deployment
Preview — 3d43103d Deployed Oct 12, 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