Skip to content

test(local-models): preserve drafts and selection across metadata races - #503

Merged
BunsDev merged 2 commits into
mainfrom
model-refresh-preservation
Nov 12, 2026
Merged

BunsDev merged 2 commits into
mainfrom
model-refresh-preservation

Conversation

@BunsDev

@BunsDev BunsDev commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Adds canonical Electron coverage for delayed local-model metadata while preserving raw thread drafts, staged image bytes, model targets, keyboard focus and selected text. A second case preserves unsaved connection edits and proves that replacing an endpoint revision leaves an existing thread pinned to its old target, with truthful unavailable-server provenance. Production application source is unchanged.

Both focused cases pass. Full local validation passed: build/typechecks, 2,478 unit passes with 36 skips, 519 desktop E2E passes with 11 skips, and seven site passes; no failures, cancellations or observed retries. All 178 local artifact files and both passed last-run records were independently verified.

Implementation source 16d4fa8 also passed all 12 hosted checks and Vercel status. Its actual checkout 156e6cd has the exact reviewed tree: macOS logged 2,478 unit passes with 36 skips, 522 desktop passes with eight skips and seven site passes. iPhone logged 43 ordinary UI passes plus one deliberate expected-failure selftest, with zero unexpected failures or skips. Linux and Windows jobs passed while explicitly retaining full installer acceptance as pending. Original logs, ZIP digests, checkout identities and artifact integrity were independently audited. Simulator and hosted installer results do not establish physical-device or human acceptance.

The final documentation-only commit 44fb41e records the source receipts and has now passed all 12 exact-head checks and Vercel. Its actual checkout 6cba81c matches the exact reviewed final tree 3ba66a4: 2,478 unit passes with 36 skips, 522 desktop E2E passes with eight skips and seven site passes, with zero failures/cancellations or observed retries. Final-head iPhone and native-platform jobs also passed with the same acceptance limits above. Original logs and artifact digests/integrity were independently audited. The single approved ready-for-review transition completed and was independently read back. The single protected merge-queue request (49a4d0e9-7292-4154-9b99-f674eee02117) completed with rule bypass disabled. Queue run 43189470394 passed on its first attempt: 2,478 unit passes with 36 skips, 522 desktop passes with eight skips and seven site passes, with zero failures/cancellations or observed retries. GitHub reports this PR merged on 2026-11-12 at 09:58:08 UTC as signed commit 558b54f8fa0cb3679852c6ece2b07e23a3b10ffb; independent API/Git reads verify its tree 3ba66a41d3e6eb3801de50649f9bfa718d362a5f exactly matches the reviewed candidate and is on main. Both canonical queue receipts passed at that actual checkout with zero sampled coding dispatches. Fresh E2E and runner-memory ZIP digests and CRCs verify. Queue iPhone and coverage upload were intentionally skipped for merge_group; final-head source qualification above remains separate. No release, physical-device, human or product-admission acceptance is inferred.

The preserved profile-selection failure also failed before metadata delivery, establishing incorrect range setup rather than a product refresh defect. The corrected setup retains both pre-response and post-response assertions. Endpoint supersession cancels the old HTTP response before its exact main request completes as stale; this does not prove rejection of a delivered late body. The scripted disposable-home fixture observes original discovery/coding methods, requires zero sampled coding dispatches and empty transcripts, and requests no real model turns.

Also reconciles #502's actual protected delivery and LM-8's accepted optional scope. No issue checkbox advances: full #381 S2/AC3, native compatibility/qualification controls, paired provenance, human acceptance and product admission retain their separate requirements. Details and limits are in docs/reviews/2026-11-12-local-model-refresh-preservation.md.

Refs #381 and #376.

@vercel

vercel Bot commented Nov 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 Nov 12, 2026 8:31am UTC

Request Review

@github-code-quality

github-code-quality Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main 0e4e212 model-refresh-preser... 44fb41e +/-
66% 66% 0%

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


Updated November 12, 2026 09:01 UTC

This branch was successfully deployed

1 active deployment
Preview — 44fb41ee Deployed Nov 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