Skip to content

[Bug]: Some CLI commands in the code cli module fail to start #12985

@minghua-123

Description

@minghua-123

Issue Checklist

  • I understand that issues are for feedback and problem solving, not for complaining in the comment section, and will provide as much information as possible to help solve the problem.
  • My issue is not listed in the FAQ.
  • I've looked at pinned issues and searched for existing Open Issues, Closed Issues, and Discussions, no similar issue or discussion was found.
  • I've filled in short, clear headings so that developers can quickly identify a rough idea of what to expect when flipping through the list of issues. And not "a suggestion", "stuck", etc.
  • I've confirmed that I am using the latest version of Cherry Studio.

Platform

Windows

Version

v1.7.19

Bug Description

opencode, Claude Code, GitHub Copilot CLI, and iFlow CLI all have similar error messages:
Image

"Installing @github/copilot..."
bun add v1.2.9 (9a329c04)
🔍 Resolving [1/4] ============================================================
Bun v1.2.9 (9a329c04) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "C:\Users\wmh21.cherrystudio\bin\bun.exe" "install" "-g" "@github/copilot"
Features: text_lockfile
Elapsed: 88ms | User: 0ms | Sys: 31ms
RSS: 99.93MB | Peak: 99.93MB | Commit: 0.17GB | Faults: 24647

panic(thread 30364): Internal assertion failure at install/npm.zig:2412:66
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:


qwen-code has this error:
"Checking qwen-code version..."
"Updating qwen-code from null to 0.10.5..."
"Update failed: Failed to update qwen-code: Command failed: set "BUN_INSTALL=C:\Users\wmh21.cherrystudio" && set "NPM_CONFIG_REGISTRY=https://registry.npmmirror.com" && "C:\Users\wmh21.cherrystudio\bin\bun.exe" install -g @qwen-code/qwen-code
'Resolving' is not recognized as an internal or external command,
operable program or batch file.
'Bun' is not recognized as an internal or external command,
operable program or batch file.
'Windows' is not recognized as an internal or external command,
operable program or batch file.
'CPU:' is not recognized as an internal or external command,
operable program or batch file.
'Args:' is not recognized as an internal or external command,
operable program or batch file.
'Features:' is not recognized as an internal or external command,
operable program or batch file.
'Elapsed:' is not recognized as an internal or external command,
operable program or batch file.


Gemini CLI and Kimi CLI work normally.


OpenAI CodeX has no corresponding model available to start.

Steps To Reproduce

PixPin_2026-02-21_15-19-17.mp4

Expected Behavior

Normal startup for the CLI tool

Relevant Log Output

Additional Context

No response

Metadata

Metadata

Assignees

Labels

BUGCategorizes issue or PR as related to a bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions