Skip to content

test(native-chat): cover mixed drops through question submission - #33632

Merged
brennanb2025 merged 7 commits into
mainfrom
brennanb2025/sta-11778-mixed-drop-fidelity
Oct 27, 2026
Merged

brennanb2025 merged 7 commits into
mainfrom
brennanb2025/sta-11778-mixed-drop-fidelity

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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.

@brennanb2025
brennanb2025 marked this pull request as ready for review October 26, 2026 20:10
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7f8aef59-2e6a-4769-9bda-795675831d16
Commits

Reviewing files that changed from the base of the PR and between eb2abfd and 03d24d6.

Files selected for processing: 1
  • src/renderer/src/components/native-chat/native-chat-composer-ime-file-drop.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

Walkthrough

The composer test probe now invokes the structured send hook with the current draft when Enter is pressed or the send callback runs. A new test covers a mixed file and image drop, preparation failures, prompt edits, and an accepted send. It checks that the draft and editor document stay synchronized, that the sent message includes the accepted file and image references in order, and that sending clears the prompt, saved draft, and saved images.

Priority: Low

Merge Risk: Minimal · up to 03d24

No merge-blocking risk is established for this tests-only change.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: adding native-chat regression coverage for mixed file drops followed by question submission.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description explains the change, its purpose, linked issue, test scope, and validation. It also clarifies why no app run or screenshot was needed. Some template items are incomplete, including the…
Full details: Description check

Explanation

The description explains the change, its purpose, linked issue, test scope, and validation. It also clarifies why no app run or screenshot was needed. Some template items are incomplete, including the exact N/A entry under Visual Proof and the checklist, but the description is mostly complete.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@brennanb2025

brennanb2025 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

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.

@brennanb2025
brennanb2025 merged commit 64c7d95 into main Oct 27, 2026
34 checks passed
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