Skip to content

fix(native-chat): merge duplicate native-chat-types import - #19698

Merged
Jinwoo-H merged 1 commit into
mainfrom
fix-native-chat-dup-import
Sep 9, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
fix-native-chat-dup-import

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 0

What

#19230 added a second import type { NativeChatToolCallBlock } from shared/native-chat-types in NativeChatToolRun.tsx. The static-analysis job's focused code-quality gate runs import/no-duplicates with --deny-warnings, so every PR opened on main since 06:50 UTC fails that job. This merges the import into the existing statement. No behavior change.

Verified

  • oxlint --config config/oxlint-code-quality-native-plugins.json on the file: clean
  • tsc -p config/tsconfig.web.json: clean

Unblocks #19696 and anything else opened tonight.

#19230 added a second import of the same module, and the focused
code-quality gate (import/no-duplicates, --deny-warnings) fails every PR
opened on main since it merged.

Claude-Session: 1fec75fd-224b-46ab-95fe-d88e0f3d9ff9
@pullfrog

pullfrog Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Pullfrog  | View workflow run | via Pullfrog | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview 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: 16a39cf4-c16f-48a3-99a0-5c43a7ddb873

📥 Commits

Reviewing files that changed from the base of the PR and between 7197593 and eed33f7.

📒 Files selected for processing (1)
  • src/renderer/src/components/native-chat/NativeChatToolRun.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The change consolidates NativeChatToolCallBlock into the existing type import from shared/native-chat-types. It removes the separate type import. Runtime behavior remains unchanged.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to eed33

This cleanup consolidates native chat type imports without changing runtime behavior. The duplicate-import issue is resolved, with no remaining merge-readiness risk identified.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the duplicate import, the static-analysis failure, the lack of behavior changes, and the verification commands. However, it omits required template sections, including ELI5,… Complete the required template sections. Add a valid Fixes #... issue reference, state N/A with a reason under Visual Proof, complete the testing and checklist items, address AI Disclosure and Agent skill upstream boundary, and includ…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: merging duplicate native-chat-types imports.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
Full details: Description check

Explanation

The description explains the duplicate import, the static-analysis failure, the lack of behavior changes, and the verification commands. However, it omits required template sections, including ELI5, Linked Issue with a valid issue reference, Visual Proof with N/A and a reason, testing checkboxes, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist.

Resolution

Complete the required template sections. Add a valid Fixes #... issue reference, state N/A with a reason under Visual Proof, complete the testing and checklist items, address AI Disclosure and Agent skill upstream boundary, and include the required review and compatibility notes.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

@Jinwoo-H
Jinwoo-H merged commit 2ee4053 into main Sep 9, 2026
27 of 28 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