Skip to content

fix(minidb): silence the transform-types warning from the dev worker - #2632

Merged
liruifengv merged 1 commit into
mainfrom
fix/minidb-worker-transform-warning
Aug 5, 2026
Merged

fix(minidb): silence the transform-types warning from the dev worker#2632
liruifengv merged 1 commit into
mainfrom
fix/minidb-worker-transform-warning

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

N/A — dev-experience fix

Problem

After the v2 engine became the default, running make dev prints ExperimentalWarning: Transform Types is an experimental feature directly into the TUI at startup (once per worker thread), looking like an error.

Root cause: the minidb text-build worker added in #2604 runs its TypeScript source directly in dev via new Worker('./text-build-worker.ts', { execArgv: ['--experimental-transform-types'] }). Every worker thread emits the experimental warning to stderr, and the v2 session index build at startup spawns it.

What changed

  • Add --disable-warning=ExperimentalWarning to the source-mode worker's execArgv in packages/minidb/src/worker/text-build.ts. The packaged CLI is unaffected: it uses the prebuilt JS worker with execArgv: [].

Verified:

  • Reproduced the warning with a minimal transform-requiring TS worker (enum); the old execArgv warns, the new one does not, and the worker still runs.
  • pnpm -C packages/minidb test passes (531 passed, 1 skipped).

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works. (N/A — Node flag on a dev-only worker path; covered by the existing minidb suite)
  • Ran gen-changesets skill, or this PR needs no changeset. (No changeset — dev-only warning suppression, not perceivable in the shipped CLI)
  • Ran gen-docs skill, or this PR needs no doc update. (N/A — internal dev tooling)

@changeset-bot

changeset-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 92b35dd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Aug 5, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@92b35dd
npx https://pkg.pr.new/@moonshot-ai/kimi-code@92b35dd

commit: 92b35dd

@liruifengv
liruifengv merged commit 421e8f8 into main Aug 5, 2026
15 checks passed
@liruifengv
liruifengv deleted the fix/minidb-worker-transform-warning branch August 5, 2026 07:53
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