Repository navigation
test(native-chat): cover mixed drops through question submission - #33632
Conversation
|
No actionable comments were generated in the recent review.
|
|
The reported mixed drop could leave a visible question or ordinary-file reference out of the submitted message. The production stale-draft replay repair already landed in #32022; this PR closes the regression-test gap only, tracked in STA-11778. Full-path correctness, architecture, final mechanism comparison and readiness source reviews found no open findings. Review kept one mixed-drop/edit/send regression and removed a redundant delayed-preparation variant. The retained case checks the ordinary-file reference, full question, exact B/A/B image order, rendered/editor/draft agreement and clearing after transport acceptance. No production behavior changed. All 9 tests in the named mounted-composer file passed on reviewed/tested head eb2abfd. The supplied old-replay negative control detects the known missing-image defect; it does not prove the whole historical question/file-loss cause. Filesystem preparation and transport acceptance are fakes. The earlier real Claude/Codex Mac qualification is supplementary evidence. This tests-only PR requires no new app QA or screenshot (qa=none). Evidence carries across main merges 7fe2038, 03d24d6 and fc62533. Their narrow checks found only two inherited import/mock path relocations in this test, with the regression inputs and assertions unchanged. Both required merge lint checks passed; no lockfile setup churn was committed. Main's lint/typecheck repairs #34076, #34202 and #34256 are included. CI on merged head fc62533bf8e passes, including static analysis/typecheck, all five Node test shards, unit selection evidence and the aggregate gate. For Brennan's review: no changed screen or screenshot requirement. The main judgment points are the mixed-drop input and the accepted payload assertions. |
Mixed image and ordinary-file drops could leave visible composer content out of the submitted message. The production stale-draft replay repair already landed in #32022. This PR closes the regression-test gap only; tracked in STA-11778 (https://linear.app/stably/issue/STA-11778).
The mounted regression drops an ordinary file, images B/A/B and two rejected paths, compares the rendered references with the editor document and saved draft, types the question character by character, then verifies the complete text and ordered images at the accepting structured-transport boundary. It also checks that acceptance clears the submitted draft. Filesystem preparation and transport acceptance are fakes; provider delivery and native keyboard behavior are outside this test's boundary. Existing inline image references and duplicate-image ordering remain unchanged.
Plan: keep one mixed-drop/edit/send contract alongside the focused image-only regression. Review removed a duplicate delayed-preparation variant because it released preparation before any pending-state interaction. No production behavior, stored data, UI or protocol changes.
Review classification:
Validation: the targeted composer test file passes all 9 cases on eb2abfd. This evidence carries across the later main merges, whose narrow checks leave the regression inputs and assertions unchanged. CI is the lint/typecheck gate. The supplied negative control restores the old replay and fails on a missing second image, proving sensitivity to that known defect; it does not establish the entire historical question/file-loss causality. Supplementary isolated M4Air qualification on the original test head passed with real Claude and Codex replies confirming the complete question, ordinary-file facts and B/A/B image order. This PR changes only tests, so the QA table requires no new app run or screenshot.
Final CI: merged head fc62533 passes static analysis/typecheck, all five Node test shards, unit selection evidence and the aggregate PR gate (https://github.com/stablyai/orca/actions/runs/40453783670). Main merges changed only two inherited import/mock paths in the test; all regression inputs and assertions remain unchanged.