Repository navigation
fix(lint): drop unused NativeChatMessage import and related nits - #20998
Open
buf0-bot[bot] wants to merge 1 commit into
Open
buf0-bot[bot] wants to merge 1 commit into
buf0-bot[bot] wants to merge 1 commit into
Conversation
- Use flatMap instead of map+flat pattern in mobile tests - Replace manual DOM cleanup with @testing-library/react cleanup() - Remove unused type imports and redundant type annotations - Reorganize imports in agent-status-store-snapshot-budget
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Mechanical lint/test hygiene to clear oxlint failures on main; no product behavior changes. Each edit verified locally.
NativeChatMessageList.windowing.test.tsx— drops the unusedNativeChatMessagetype import plus the two redundantNativeChatMessage[]return annotations on the localappendedTranscript/transcriptAthelpers; inference from the harness'smarker(): NativeChatMessagepreserves the type. Suite passes (26 tests).- Mobile onboarding tests —
.map(...).flat()→.flatMap(...); identical one-level flatten semantics. AiVaultSessionSubagents.test.tsx—document.body.replaceChildren()→ Testing Librarycleanup()inafterEach. The repo runs vitest withglobals: false, so RTL auto-cleanup is not registered; explicitcleanup()unmounts the rendered trees and matches sibling suites. Suite passes (18 tests).agent-status-store-snapshot-budget.ts— merges a duplicate same-moduleimport typeinto the existing value import via inlinetypespecifiers; no semantic change.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
This was referenced Sep 16, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

ELI5
Oxlint was failing on a handful of already-landed test/source files: an unused type import,
map().flat()instead offlatMap(), a duplicate import, and a test that cleaned up the DOM by hand. This PR only tidies those so the lint gate is green. No product behavior changes.What Changed
NativeChatMessageList.windowing.test.tsx: remove the unusedNativeChatMessagetype import and the redundant return annotations that named it (marker()already returns that type).map(...).flat()withflatMap(...).AiVaultSessionSubagents.test.tsx: use Testing Librarycleanup()inafterEachinstead ofdocument.body.replaceChildren().agent-status-store-snapshot-budget.ts: merge the duplicateimport typefromagent-status-store-contract.Why
eslint(no-unused-vars)failed on the unusedNativeChatMessageimport, andunicorn(prefer-array-flat-map)warned on the two onboarding tests. The other two edits are the same class of lint/test hygiene so the changed-code quality gate stays clean.Linked Issue
N/A — lint failures on current
main, no tracking issue.Visual Proof
N/A — test and import-only changes; nothing a user sees or interacts with.
Testing
Existing tests cover the edited files; no new cases (behavior is unchanged).
oxlint --deny-warningson the three originally failing files: 0 warnings / 0 errorspnpm run check:code-quality:changed: passedpnpm test src/renderer/src/components/native-chat/NativeChatMessageList.windowing.test.tsx: 26 passedDid not re-run the mobile onboarding tests here (
mobile/has nonode_modulesin this worktree). Linux only.AI Disclosure
Internal contributor — skip.
Review
Lint/test-only. No SSH, remote-wire, Windows, or agent-status behavior changes: the snapshot-budget edit is import grouping only; the windowing and sidebar tests still exercise the same paths. No UI. No security surface. Performance:
flatMapis equivalent tomap+flat.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)