Skip to content

Windows and Linux journal CI, an in-app live journal check and a mid-reply kill, on top of #389 (CF-6) - #388

Merged
BunsDev merged 1 commit into
mainfrom
cf6-acceptance
Oct 23, 2026
Merged

BunsDev merged 1 commit into
mainfrom
cf6-acceptance

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Part of #279 (CF-6), tracker #273. Stacked on #389. At Val's choice (2026-10-23), #389 lands first as the CF-6 base. This PR is rebased onto it and keeps only what #389 lacks. Its earlier phone question tests and 8 MB test duplicated #389's question-replay.test.ts, so they were dropped. When #389 merges, GitHub retargets this PR to main.

What it adds on top of #389

  • Windows and Linux CI. The Native platform builds jobs run the journal, replay and request suites, question-replay included, and upload TAP evidence.
    • Before the rebase: Linux passed 50/50. Windows passed 49/50; the failure was the crash test assuming signals exist. With that fixed, both passed 50/50 (run 39890594811).
    • This PR's run is the record with question-replay added.
  • An in-app live journal check. With MODEX_EVENT_JOURNAL=1, e2e/live-smoke.spec.ts replays each thread's journal against its saved transcript, once and twice, after a clean quit. A Chat-mode scenario approves a command and checks the card replays as saved.
    • Claude Code 2.1.309 (Haiku): both passed. One approval card, sent; 13 rows replayed exactly; the command ran once.
  • The app killed mid-reply (e2e/event-journal.spec.ts). The relaunch takes a new journal id, the reply reads unknown at its saved length, and nothing runs again.
    • It found that the journal can be ahead of the thread files at a crash (326 vs 305 chars).
  • event-journal.md corrections:
    • an 8 MB drop reloads in practice, because what was missed is past the 4 MB replay limit;
    • the 15 s heartbeat also drops a stalled stream;
    • the crash finding above.
  • Gate review. Questions across replay and reconnect on the phone and paired desktops (CF-6) #389's gate plan now has these results and Val's deferrals: the Windows and Linux app sessions, and a real power cut.

Checks

Local, Apple M5 Max, macOS 26.7.1, Node 24.22.0. On #389's head fa4b7cb plus this PR's changes:

  • pnpm build: passed.
  • pnpm test: desktop 1,828 passed, 16 skipped, 0 failed, 1 cancelled.
  • pnpm test:e2e: 390 passed, 7 skipped (the live approval scenario is opt-in); site 7/7.

Merge after #389, with Val's go-ahead.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 23, 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 23, 2026 5:21am UTC

Request Review

@github-code-quality

github-code-quality Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main 584aa1a cf6-acceptance 8551a9c +/-
65% 65% 0%
View coverage of the 6 most impacted files.
File main 584aa1a cf6-acceptance 8551a9c +/-
apps/desktop/sr...ne/companion.ts 98% 98% 0%
apps/desktop/sr...esktop-items.ts 98% 98% 0%
apps/desktop/sr...gine/plugins.ts 97% 97% 0%
apps/desktop/sr...ngine/runner.ts 98% 98% 0%
apps/desktop/sr...man-requests.ts 100% 100% 0%
apps/desktop/sr...desktop-host.ts 98% 99% +1%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 23, 2026 05:49 UTC

@BunsDev

BunsDev commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

CI on dbd2e81 is green, including unit + e2e (macOS). The journal suites passed 50/50 on both Windows and Linux (run 39890594811), so the Windows signal fix holds. e6e8133 records that second pass in the gate plan. This waits for Val's go-ahead to merge.

@BunsDev
BunsDev enabled auto-merge October 23, 2026 03:33
@BunsDev
BunsDev disabled auto-merge October 23, 2026 03:58
@BunsDev BunsDev changed the title Prove question replay and reconnect for the phone, and run the CF-6 gates this Mac can run (#279) Windows and Linux journal CI, an in-app live journal check and a mid-reply kill, on top of #389 (CF-6) Oct 23, 2026
@BunsDev
BunsDev changed the base branch from main to cf6-replay October 23, 2026 04:53
Base automatically changed from cf6-replay to main October 23, 2026 05:16
… live journal check, a mid-reply kill (CF-6)

Rebased onto #389 (cf6-replay) at Val's choice, keeping only what it does not already cover:

- The Windows and Linux platform jobs run the journal, replay and request suites, now including
  question-replay. journal-resume's crash test accepts Windows, where a self-SIGKILL ends the child with
  an exit code rather than a signal.
- The live smoke checks the journal in the real app with MODEX_EVENT_JOURNAL=1, and a Chat-mode
  scenario replays an approved card exactly as saved.
- An e2e kills the app in the middle of a streaming reply: a new journal id, the reply unknown at its
  saved length, nothing run again. It found that the journal can be ahead of the thread files at a
  crash.
- event-journal.md: an 8 MB drop reloads in practice, the heartbeat also drops a stalled stream, and the
  crash finding. The gate review records these and Val's deferrals of the Windows and Linux app
  sessions and a real power cut.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — 8551a9c7 Deployed Oct 23, 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