Skip to content

[CI] test(native-chat): update the resume fixture for mention menus - #26102

Closed
nwparker wants to merge 1 commit into
mainfrom
nwparker/native-chat-resume-fixture-contract
Closed

nwparker wants to merge 1 commit into
mainfrom
nwparker/native-chat-resume-fixture-contract

Conversation

@nwparker

@nwparker nwparker commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by merged #26097. Its fixture uses the same current mock export, callback and empty mention result; only JSX prop placement differs. Closing this duplicate without merging. Original measured qualification follows.

ELI5

The resume test still used the mention-menu API removed by #26017, so web typechecking stopped PR CI before unit tests could run. Update that test fixture to the current API; product behavior and all seven test cases stay unchanged.

What Changed

Mock the current NativeChatMentionMenu export, supply an empty nonloading/nonfailed mentionFiles result, and use onChooseMentionFile instead of the removed onAcceptMention. The existing test defaults, callbacks, seven cases and 12 assertion sites are unchanged.

Why

Nearby composer fixtures were updated during the mention-menu change; this one was missed. Aligning the fixture restores the compile contract without restoring removed product props or weakening assertions.

Linked Issue

Follow-up to #26017; unblocks #26095. Maintainer repair, no separate issue.

Visual Proof

N/A — test fixture only; no product UI or interaction change.

Testing

Measurement Before After Improvement
Web typecheck 1 TS2322 error for the removed prop 0 errors; pnpm tc:web passes CI can proceed past this failure
Original runtime cases 7 passed under Bun 7 passed under Bun and 7 under stock Node Exact names/statuses retained; no omissions
Assertion sites 12 12 All assertions preserved

The before failure is recorded in PR #26095 CI; its failing fixture blob is identical to this branch's base on a3ecee0dce1e. This is a correctness repair, with no test-speed claim.

  • Background Bun and stock Node test runs passed on macOS with cache explicitly disabled.
  • pnpm tc:web, changed-code quality checks and formatting passed locally.
  • No new test needed: the original seven cases qualify this fixture-only repair, with unchanged test bodies and hooks.
  • Final PR CI and review.

Review

One test file; no production code, platform behavior, SSH execution or wire contract changes.

Agent skill upstream boundary

  • Not applicable; no upstream skill content copied.

Checklist

  • Small and focused; explained the failure, resulting behavior, mechanism and alternative choice.
  • N/A visual proof explained above.
  • Self-reviewed for correctness and test preservation.
  • Cross-platform and SSH impact considered; test fixture only.
  • Required CI checks pass; relevant local checks above passed.

@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 289f1dea-3ca5-44bf-bd37-76bde8e22593
📥 Commits

Reviewing files that changed from the base of the PR and between 98e5f5c and 6319f18.

📒 Files selected for processing (1)
  • src/renderer/src/components/native-chat/native-chat-composer-field-resume.test.tsx

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


📝 Walkthrough

Walkthrough

The resume composer test now mocks NativeChatMentionMenu instead of NativeChatMentionHint. It passes an empty, non-loading, non-failed mentionFiles value and uses onChooseMentionFile instead of onAcceptMention.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 6319f

This updates the resume test fixture to match the mention-menu API without changing production behavior; no merge-blocking issue is identified.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ 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. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly and concisely describes the main change: updating the native-chat resume test fixture for the mention-menu API.
Description check ✅ Passed The description covers the required sections and explains the change, reason, issue context, lack of UI changes, and reported testing. The maintainer exception explains why no separate issue is linked…
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · 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.

@nwparker nwparker closed this Oct 7, 2026
@nwparker nwparker changed the title test(native-chat): update the resume fixture for mention menus [CI] test(native-chat): update the resume fixture for mention menus Oct 9, 2026
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