Skip to content

Archive threads from the Mac and the iPhone - #208

Merged
BunsDev merged 7 commits into
mainfrom
thread-archive
Oct 15, 2026
Merged

BunsDev merged 7 commits into
mainfrom
thread-archive

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What

Threads can be archived from the Mac and from the iPhone, and archived threads are hidden on the phone by default.

  • Mac: Archive / Unarchive in the sidebar row menu and the title bar ⋯ menu. Archived threads leave the working list and wait under a collapsed Archived (n) group per project; search still finds them. Opening one shows a notice with an Unarchive button, and sending a message brings the thread back.
  • iPhone: archived threads are hidden until Show archived (n) in the dashboard header is chosen; that choice resets with the workspace. Hold a thread row, or use the new ⋯ menu above a transcript, to archive or unarchive. The offline demo mirrors the rules.
  • Guard rail: a thread that is running or waiting for an approval cannot be archived, so nothing hidden ever waits for an answer.
  • Paired API: snapshot threads carry archived: true; POST /v1/threads/:id/archive sets it. Only the fact leaves the Mac, not the timestamp. An older Mac answers 501, which the phone reports as "Update Modex on your Mac".
  • Store edition: its demo command map gained the channel and follows the same rules.

Verification

Check Result
Typecheck, desktop and Store editions pass
Root unit suite pass
Full desktop e2e suite (pre-rebase tree) 287 pass, 3 pre-existing skips
New thread-archive and companion unit tests pass
New archive.spec.ts e2e pass
iPhone unit tests, iPhone 16 Pro simulator 43 pass
New demo UI test testDemoArchiveHidesThreadUntilShown pass

The title bar e2e test enumerates the ⋯ menu items, so it now expects "Archive thread" too.

Notes

  • Companion build 6 predates the phone side; a new TestFlight build is needed to ship it.
  • Docs: docs/ios-companion.md describes archiving; docs/status.md lists it under "On main, unreleased".

Review follow-up #211 releases admission if automatic unarchive fails and waits for stable iPhone row geometry before long-pressing Archive. The regression tests passed, independent review found no actionable issues, and every check on #211 passed before its signed squash merge. The resulting #208 tree is identical to that tested head; fresh required checks on the merge commit remain pending.

Coven-Harness: Codex / GPT-6

A thread can be put away from the Mac (sidebar row menu, title bar menu) or
the phone (hold a thread on the dashboard, or the transcript's menu). Archived
threads leave the working list on both devices. The Mac keeps them under
"Archived (n)" in their project, where search still finds them; the phone
hides them until "Show archived" is chosen and forgets that choice with the
workspace. The transcript stays, sending a message brings the thread back,
and a thread that is working or waiting for an approval cannot be archived,
so nothing hidden ever waits for an answer.

The paired API gains POST /v1/threads/:id/archive and an `archived` flag on
snapshot threads; the Mac sends only the fact, not when it happened, and an
older Mac answers 501. The Store demo and the iPhone demo mirror the rules.

Verified locally: desktop typecheck (desktop and Store editions), the new
runner and companion unit tests, the new archive e2e spec, all 43 iPhone unit
tests and the new demo UI test on an iPhone 16 Pro simulator.

Coven-Harness: Claude Code / claude-fable-5-1
@vercel

vercel Bot commented Oct 14, 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 15, 2026 5:20am UTC

Request Review

# Conflicts:
#	docs/status.md
@BunsDev BunsDev self-assigned this Oct 15, 2026
…e validation'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
#197 replaced capture(_:name:) with attachScreenshot(of:named:) and
fixed waits with UITestBudget.seconds; the archive test was written
before it landed and no longer compiled after the merge.

Coven-Harness: Claude Code / claude-opus-5-5
The CodeQL autofix kept rejectUnauthorized true, but the companion's
certificate is self-signed and names no address, so every request
failed with DEPTH_ZERO_SELF_SIGNED_CERT. Trust only the companion's own
cert.pem as the CA and check the pairing link's fingerprint in place of
the host name, as the phone does.

Coven-Harness: Claude Code / claude-opus-5-5
…#211)

Release a turn reservation if automatic unarchive fails, and wait for stable row geometry before the iPhone context-menu gesture.

Coven-Harness: Codex / GPT-6
@BunsDev
BunsDev merged commit d646a46 into main Oct 15, 2026
12 checks passed
@BunsDev
BunsDev deleted the thread-archive branch October 15, 2026 15:41

This branch was successfully deployed

1 active deployment
Preview — e08c5e6e Deployed Oct 15, 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.

2 participants