Skip to content

fix(kimi-code): resolve Windows EINVAL in dev.mjs and reduce thinking…#235

Open
Bronya0 wants to merge 1 commit into
MoonshotAI:mainfrom
Bronya0:fix/windows-dev-script-and-flush-rate
Open

fix(kimi-code): resolve Windows EINVAL in dev.mjs and reduce thinking…#235
Bronya0 wants to merge 1 commit into
MoonshotAI:mainfrom
Bronya0:fix/windows-dev-script-and-flush-rate

Conversation

@Bronya0
Copy link
Copy Markdown

@Bronya0 Bronya0 commented May 29, 2026

… flush rate

  • Add shell:true for Windows in dev.mjs to fix spawn EINVAL
  • Suppress DEP0190 deprecation warning for dev script
  • Increase STREAMING_UI_FLUSH_MS from 50ms to 200ms to prevent eye-straining flicker during thinking streaming

Related Issue

Resolve #(issue_number)

Problem

What changed

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.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

… flush rate

- Add shell:true for Windows in dev.mjs to fix spawn EINVAL
- Suppress DEP0190 deprecation warning for dev script
- Increase STREAMING_UI_FLUSH_MS from 50ms to 200ms to prevent
  eye-straining flicker during thinking streaming
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 29, 2026

⚠️ No Changeset found

Latest commit: 45c20c0

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

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 45c20c07c7

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

cwd: APP_ROOT,
env,
stdio: 'inherit',
shell: useShell,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid shell:true with forwarded CLI args

On Windows this switches the dev launcher to shell: true while still passing the hard-coded tsx flags and forwarded cliArgs as an args array. Node 24's DEP0190 warning for this exact mode says the arguments are not escaped and are only concatenated, so common invocations such as pnpm dev -- --prompt "hello world" or any option value containing spaces/metacharacters can be split or interpreted by cmd.exe before reaching the CLI. Use a Windows-safe executable path or quote/escape the command instead of forwarding user args through the shell.

Useful? React with 👍 / 👎.

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