Commit graph

3939 commits

Author SHA1 Message Date
DennisYu07
396d53367b
Fix: use where.exe instead of PowerShell Get-Command for Windows command detection
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 16:15:16 +01:00
DennisYu07
8755042509
add null judge for cmd 2026-02-08 16:15:16 +01:00
DennisYu07
efbec0451c
fix error for powershell comand 2026-02-08 16:15:16 +01:00
Alexander Farber
fca9f0c106
Use PowerShell Get-Command for Windows sandbox detection 2026-02-08 16:15:16 +01:00
Mingholy
07cd73ce01 fix: failed to initialize/send message in Electron using SDK 2026-02-08 21:45:24 +08:00
tanzhenxin
842ff42928 refactor(cli): improve findEnvFile logic and remove flaky test
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 21:15:42 +08:00
tanzhenxin
5ebbceea65 feat: add MCP tool progress update support in TUI and SDK mode
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 15:48:13 +08:00
tanzhenxin
0d026a508e fix(core): properly handle MCP multi-part tool results in OpenAI converter
When MCP tools return multiple content blocks (e.g., text + images),
the content was incorrectly split outside the FunctionResponse,
causing it to leak into separate user messages.

This fix ensures all content stays inside the FunctionResponse:
- Text parts are joined into response.output
- Media parts (inlineData/fileData) are placed in response.parts

Fixes #1520

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 12:40:27 +08:00
tanzhenxin
7c53995e53 test: update tool-registry test for new MCP tool naming convention
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 12:17:00 +08:00
tanzhenxin
e17b800d1d fix(mcp): prefix MCP tool names with server name to avoid collisions
- Change tool name format from 'toolName' to 'mcp__serverName__toolName'
- Prevents naming conflicts when multiple MCP servers have tools with same name
- Update tests to reflect new naming convention

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 12:02:44 +08:00
tanzhenxin
a3b95414de feat(mcp): auto-detect transport type from URL in mcp add command
- Automatically detect 'http' transport when commandOrUrl starts with http:// or https://
- Default to 'stdio' transport for non-URL commands
- Explicit --transport flag still takes precedence over auto-detection
- Update help text to indicate auto-detection capability

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 11:11:02 +08:00
tanzhenxin
21e711469d fix(mcp): update OAuth client names and improve MCP commands
- Rename MCP OAuth client names from 'Gemini CLI' to 'Qwen Code'
- Update MCP add/remove/list commands with improved error handling
- Add comprehensive tests for OAuth provider
- Fix token storage test assertions
- Clean up unused i18n translation keys
- Update gemini-converter and window title references

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 10:46:48 +08:00
tanzhenxin
49b1a39c0b refactor(core): simplify generation config and support extra_body/customHeaders
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 09:58:24 +08:00
tanzhenxin
6a867ed4a4 refactor(cli): change auth hint to model hint in header
Update the header info panel hint from '/auth to change' to '/model to change'
to better reflect that this command switches models rather than authentication.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 09:40:57 +08:00
tanzhenxin
5f8884b60c feat(settings): add settings.env field for environment variable configuration
Add support for defining environment variables in settings.json files.
These variables are loaded with the lowest priority:
1. System/process environment variables (highest)
2. .env files
3. settings.env (lowest/fallback)

This allows users to configure default environment variables in their
user or workspace settings without conflicting with existing env vars
or .env file values.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-08 09:33:31 +08:00
DennisYu07
281995e310 fix test 2026-02-06 03:01:53 -08:00
DennisYu07
f4cc0242b3 refactor test for AppContainer 2026-02-06 02:56:42 -08:00
pomelo
36931e1eab
Merge pull request #1739 from QwenLM/feat/add-source-in-download-url
Some checks failed
Qwen Code CI / Lint (push) Has been cancelled
Qwen Code CI / CodeQL (push) Has been cancelled
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Has been cancelled
E2E Tests / E2E Test (Linux) - sandbox:none (push) Has been cancelled
E2E Tests / E2E Test - macOS (push) Has been cancelled
Qwen Code CI / Test (push) Has been cancelled
Qwen Code CI / Test-1 (push) Has been cancelled
Qwen Code CI / Test-2 (push) Has been cancelled
Qwen Code CI / Test-3 (push) Has been cancelled
Qwen Code CI / Test-4 (push) Has been cancelled
Qwen Code CI / Test-5 (push) Has been cancelled
Qwen Code CI / Test-6 (push) Has been cancelled
Qwen Code CI / Test-7 (push) Has been cancelled
Qwen Code CI / Test-8 (push) Has been cancelled
Qwen Code CI / Post Coverage Comment (push) Has been cancelled
docs: Update Linux/Mac installation commands in README
2026-02-06 18:04:54 +08:00
DennisYu07
a86e8205ff resolve readme 2026-02-06 02:02:38 -08:00
pomelo
662ba7dde9
Merge pull request #1653 from QwenLM/feat/add-source-in-download-url
feat: add source information tracking in telemetry logs
2026-02-06 17:56:32 +08:00
DennisYu07
e0df8270c9 change language 2026-02-06 01:54:17 -08:00
tanzhenxin
4d29d1fbb5
Merge pull request #1738 from QwenLM/feat/promote-skills-to-stable
feat: promote Agent Skills from experimental to stable
2026-02-06 17:52:39 +08:00
DennisYu07
ed197b60cb update readme 2026-02-06 01:49:35 -08:00
tanzhenxin
7f49ddede1
Merge pull request #1736 from QwenLM/fix/windows-tab-autocomplete-conflict-1728
fix(cli): prevent Tab key from cycling approval mode when autocomplete is active on Windows
2026-02-06 17:47:47 +08:00
pomelo
a6885ccb4d
Merge pull request #1713 from QwenLM/fix/enter-submit
feat(paste): add large paste placeholder and fix enter-submit on macOS
2026-02-06 17:44:14 +08:00
LaZzyMan
2fe9cbcd17 fix: remove conflicting suggestions visibility notifications
Remove duplicate useEffect that was causing suggestions visibility state
to diverge from the actual active completion. The original useEffect at
line 760 already correctly tracks activeCompletion.showSuggestions, which
dynamically selects the current active completion source (regular, reverse
search, or command search).

The removed useEffect used OR logic across all three completion sources,
which caused hasSuggestionsVisible in AppContainer to flip incorrectly
during command-search mode when background completion state changed.

This fix ensures Tab key blocking/unblocking happens at the correct times
on Windows.
2026-02-06 17:10:27 +08:00
DennisYu07
7487ba93ab refactor shell for mac/linux 2026-02-06 00:56:09 -08:00
tanzhenxin
3b4b5d874d fix(paste): move thresholds to module level and improve placeholder expansion
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-06 16:32:22 +08:00
DennisYu07
678adecfec add source for shell 2026-02-05 23:41:52 -08:00
tanzhenxin
b7b24c3de9 chore(zed-extension): update package version to 0.10.0
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-06 14:26:01 +08:00
DennisYu07
b09a745bc9 fix memory leak in test 2026-02-05 22:04:28 -08:00
tanzhenxin
27a9d3ec44 refactor(skill): add null check for SkillManager and update tests
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-06 13:37:35 +08:00
DennisYu07
b487768fa6 remove useless command for bash script 2026-02-05 21:30:26 -08:00
DennisYu07
afdb1bb064 resolve comment for shell and basj 2026-02-05 21:14:57 -08:00
tanzhenxin
fcc98a30d5 chore: update tests for parseArguments signature change
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-06 13:05:49 +08:00
tanzhenxin
a4ffc6eb24 feat: promote Agent Skills from experimental to stable
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-06 13:04:08 +08:00
Mingholy
5c582e98c6
Merge pull request #1732 from QwenLM/mingholy/fix/sdk-release-workflow
Some checks are pending
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / CodeQL (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
Add CLI source selection for SDK releases and fix subagent output handler
2026-02-06 13:01:05 +08:00
DennisYu07
b71159e859 add cache for source 2026-02-05 20:55:13 -08:00
mingholy.lmh
77a8698bc5 ci(sdk-release): fix nightly and preview version calculation based on npm latest+1 patch
- Add getNextPatchVersion() to calculate next patch version from npm latest
- Fix getNightlyVersion() to use npm latest + 1 patch instead of package.json
- Fix getPreviewVersion() to use npm latest + 1 patch instead of nightly version
- Add version info logging in workflow for dry-run verification

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-06 12:34:31 +08:00
mingholy.lmh
b3cc60e293 ci(sdk-release): set npm_latest as default cli_source for safer SDK releases
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-06 11:23:56 +08:00
LaZzyMan
9a6aafa721 fix(cli): prevent Tab key from cycling approval mode when autocomplete is active on Windows
Fixes #1728

When using @ to reference files/folders on Windows and pressing Tab for path completion, the Tab key was incorrectly triggering approval mode cycling instead of accepting the autocomplete suggestion.

This happened because Windows maps Tab to Shift+Tab functionality (due to Shift+Tab not working in some terminals), but this mapping didn't account for active autocomplete lists where Tab should be used for selection.

Changes:

- Add shouldBlockTab callback to useAutoAcceptIndicator hook to check if autocomplete is active

- Track autocomplete visibility state in AppContainer via hasSuggestionsVisible

- Add onSuggestionsVisibilityChange to UIActions interface

- Update InputPrompt to notify parent when suggestions visibility changes

- Update Composer to propagate suggestions visibility to AppContainer

- Add tests to verify Tab key behavior with and without autocomplete
2026-02-06 11:04:15 +08:00
tanzhenxin
139e621410
Merge pull request #1735 from QwenLM/fix/sandbox-diagnostic-output
fix(cli): route sandbox diagnostic messages to stderr
2026-02-06 10:31:52 +08:00
tanzhenxin
c97604ba46 fix(cli): route sandbox diagnostic messages to stderr
Change all diagnostic/progress messages in sandbox.ts from
writeStdoutLine to writeStderrLine. This prevents integration
test failures in Docker where stdout buffering behavior differs
from the Console API.

Diagnostic messages like 'Checking for sandbox image' are
informational logs that should not interfere with program output
that tests or other tools may parse from stdout.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-06 10:07:55 +08:00
mingholy.lmh
f9a8efb72b fix(build): ensure correct build order in build_sandbox.js
Fix the build order in build_sandbox.js to match build.js.
Previously used 'npm run build --workspaces' which doesn't respect
dependency order, causing vscode-ide-companion to fail when looking
for @qwen-code/webui types that weren't built yet.

Now builds packages in correct order:
1. test-utils
2. core
3. cli
4. webui (dependency for vscode-ide-companion)
5. sdk-typescript
6. vscode-ide-companion

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-05 22:28:22 +08:00
mingholy.lmh
39884cc6a1 ci(sdk-release): fix CLI package path handling
- Remove dist/ directory requirement from workflow (CLI files are in package root)
- Update bundle-cli-from-npm.js to use package root directly instead of package/dist

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-05 22:06:08 +08:00
Mingholy
d90b642564
Merge pull request #1733 from QwenLM/mingholy/test/fix-acp-tests
Some checks are pending
Qwen Code CI / CodeQL (push) Waiting to run
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
fix: use openai model instead of index=0 in acp integration test
2026-02-05 22:04:51 +08:00
mingholy.lmh
20b54c78de ci(sdk-release): fix actionlint and yamllint errors
- Fix SC2086: double quote variables to prevent globbing and word splitting
- Fix yamllint quoted-strings: wrap if conditions with double quotes

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-05 21:47:21 +08:00
mingholy.lmh
972103e795 fix: use openai model instead of index=0 in acp integration test
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-05 21:17:07 +08:00
mingholy.lmh
1e05359881 ci(sdk-release): add CLI source selection for SDK releases
- Replace cli_ref input with cli_source choice (build_from_source or npm_latest)
- Add support for bundling latest stable CLI from npm
- Add bundle-cli-from-npm.js script for npm-based CLI bundling
- Fix property naming in nonInteractiveCli.ts (outputUpdateHandler)
- Improve integration tests for subagents
- Skip creating issue on failure during dry-run mode

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-05 20:57:01 +08:00
tanzhenxin
83fd2bc7f9
Merge pull request #1610 from QwenLM/feat/debug-logging-refactor
Some checks are pending
Qwen Code CI / CodeQL (push) Waiting to run
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
feat: debug mode output refactor — route console calls to logfile-first debugLogger
2026-02-05 20:42:50 +08:00