Commit graph

4874 commits

Author SHA1 Message Date
DennisYu07
72c4c0384f add doc for hooks 2026-03-26 16:13:24 +08:00
DennisYu07
12eb0f8f8d correct hooks JSON schema 2026-03-26 14:07:36 +08:00
DennisYu07
db7ec117c2
Merge pull request #2645 from QwenLM/fix/git_bash_change_windows
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
fix(windows): support git bash/MSYS2 shell detection on Windows
2026-03-26 13:04:38 +08:00
Mingholy
52a573f10f
Merge pull request #2591 from QwenLM/fix/2515-vscode-context-indicator
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
fix(vscode-ide-companion): preserve model metadata on switch
2026-03-26 10:23:32 +08:00
Mingholy
9cd4434fe2
Merge pull request #2547 from QwenLM/fix/lsp-cpp-java-support-v2
fix(lsp): improve C++/Java/Python language server support
2026-03-26 10:22:41 +08:00
Mingholy
23a17b6c1e
Merge pull request #2545 from QwenLM/fix/secondary-sidebar-warning
fix(vscode-ide-companion): silence secondary sidebar warning on older VS Code versions
2026-03-26 10:22:31 +08:00
Mingholy
a79c966c44
Merge pull request #2546 from QwenLM/fix/acp-error-handling
fix(vscode-ide-companion): improve ACP error handling to prevent silent loading hangs
2026-03-26 10:11:12 +08:00
Mingholy
51123ca024
Merge pull request #2421 from QwenLM/feat/hooks-telemetry
feat(hooks): Add comprehensive hook execution telemetry
2026-03-26 10:10:11 +08:00
Mingholy
a1b700192b
Merge pull request #2080 from zy6p/fix/2049-preserve-selected-auth-type-on-auth-failure
fix(cli): preserve selected auth type on startup auth failure
2026-03-26 10:06:02 +08:00
顾盼
28e62882f0
Merge pull request #2642 from huww98/fix/mcp-trust-permission
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
fix(mcp): restore trust+isTrustedFolder permission check in getDefaultPermission
2026-03-25 16:55:57 +08:00
顾盼
b57b8ed5fe
Merge pull request #2368 from huww98/fix/memory-show-multi-file-support
fix(cli): `/memory show --project` and `--global` now display all configured context files
2026-03-25 16:51:08 +08:00
DennisYu07
3edcfc1cfd fix test 2026-03-25 10:04:26 +08:00
胡玮文
6ad990e1e7 fix(mcp): restore trust+isTrustedFolder permission check in getDefaultPermission
The trust/isTrustedFolder logic was accidentally dropped during the
permission system refactor in feat/support-permission (PR #2283).

Previously, shouldConfirmExecute() returned false (no confirmation) when
both conditions were met:
  - MCP server config has trust: true
  - The workspace folder is trusted (isTrustedFolder())

The refactor replaced shouldConfirmExecute() with getDefaultPermission() but
left out the trust check entirely, adding a comment claiming 'trust logic is
now handled by PM rules' — however no PM rules were ever generated from the
trust setting, making trust: true completely non-functional.

This fix restores the original behavior: MCP tools from a trusted server
(trust: true) auto-approve only when the workspace is also trusted, preserving
the security gate that prevents trust settings from bypassing confirmation in
untrusted folders.
2026-03-24 21:11:43 +08:00
cris
01133e1988 fix git bash 2026-03-24 16:40:15 +08:00
顾盼
3776825c2d
Merge pull request #2539 from d191/main
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
fix(extensions): support non-GitHub git URLs for extension installation
2026-03-24 14:43:02 +08:00
DennisYu07
aebe889b31
Merge pull request #2607 from QwenLM/fix/hook_runner-process_kill
Some checks are pending
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
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
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(hooks): terminate hook child processes when user exits CLI
2026-03-23 20:57:38 +08:00
DennisYu07
7573e1b0bd add systemMessage for jook 2026-03-23 19:48:08 +08:00
顾盼
0731ce81b8
Merge pull request #2610 from QwenLM/fix/web-fetch-system-instruction
fix(web-fetch): add simplified system instruction to prevent AI greeting responses
2026-03-23 19:34:08 +08:00
Qwen Code Bot
ca3086c62c fix(web-fetch): add simplified system instruction to prevent AI greeting responses
- Add concise system instruction for web content processing
- Prevents glm-5 and other models from using main session's complex prompt
- Fixes issue where web_fetch returns AI greetings instead of web content

Resolves #2609
2026-03-23 17:39:52 +08:00
DennisYu07
b87c731487 fix test 2026-03-23 16:42:46 +08:00
DennisYu07
8bd7cf2cda add singal abort for hooks 2026-03-23 16:02:54 +08:00
顾盼
a0041191a7
Merge pull request #2536 from LaZzyMan/fix/test-artifacts-and-shell-permissions
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
Fix shell permission parsing and test-created debug artifacts
2026-03-23 11:34:16 +08:00
LaZzyMan
6653edeb0c Merge branch 'main' into fix/test-artifacts-and-shell-permissions 2026-03-23 11:10:05 +08:00
LaZzyMan
8769ba9e82 recover changes 2026-03-23 11:09:55 +08:00
易良
d709869aae
Merge pull request #2371 from QwenLM/feat/btw-command
feat(cli): add /btw slash command for ephemeral side questions
2026-03-23 11:01:16 +08:00
yiliang114
da1cc50c0c fix(vscode-ide-companion): preserve model metadata on switch
Refs #2515
2026-03-22 14:08:40 +08:00
wenshao
13423f0676 fix(cli): harden /btw command error handling and type safety
- Add null/undefined guard in formatBtwError to avoid "null"/"undefined" strings
- Add type guard for btw property in HistoryItemDisplay to prevent crash
- Extract isBtwCommand regex to module-level constant and simplify with [/?]

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 01:21:07 +08:00
yiliang114
b15cb05703 fix(test): use correct Dirent<Buffer> generic type in sessionService tests
The CI was failing because fs.readdirSync returns Dirent<Buffer>[], not
Dirent<string>[]. Updated all 8 type assertions to use the correct generic.

Made-with: Cursor
2026-03-21 01:32:36 +08:00
yiliang114
c1004d0e99 fix(lsp): improve C++/Java/Python language server support
Key changes:

1. Remove LspLanguageDetector — LSP is now fully config-driven via
   .lsp.json or extensions. No more auto-detected built-in presets
   that fail when the server binary is missing.

2. Add ensureDocumentOpen — send textDocument/didOpen before every
   document-level LSP request (definitions, references, hover,
   documentSymbol, implementations, prepareCallHierarchy, diagnostics,
   codeActions). This fixes the root cause of most methods returning
   empty results (Issue #2106, #1873).

3. Add retry mechanism for slow servers — when a freshly opened
   document yields empty results on non-TypeScript servers (jdtls,
   clangd, pylsp), wait 2s and retry once. This mirrors the existing
   retry logic in workspaceSymbols.

4. Handle LSP 3.17 WorkspaceSymbol format — location.range is now
   optional in normalizeSymbolResult, fixing jdtls workspace symbol
   responses that omit the range field.

5. Improve workspace symbol warmup — for non-TypeScript servers, open
   a workspace file before the first workspace/symbol request and
   retry on empty results after a warmup delay.

6. Track warmup-opened URIs — warmupTypescriptServer now returns the
   opened URI, which is registered with ensureDocumentOpen to prevent
   duplicate didOpen notifications.

Closes #2106, closes #1873

Made-with: Cursor
2026-03-21 01:27:00 +08:00
yiliang114
905f2c3f36 Merge branch 'main' into fix/pr2371-btw-complete 2026-03-21 01:10:48 +08:00
yiliang114
dff9822f9b fix(cli): improve /btw overlay UX — layout, dismiss hints, and history cleanup
- Make /btw overlay mutually exclusive with Composer (replaces input area)
- Add dismiss hints: "Press Escape to cancel" (pending) / "Press Space,
  Enter, or Escape to dismiss" (completed)
- Skip adding /btw to conversation history to avoid duplicate display
- Prioritize dialog shortcuts over btw dismiss via dialogsVisibleRef
- Add `sleep` property to terminal-capture FlowStep for async wait scenarios

Made-with: Cursor
2026-03-21 01:07:02 +08:00
yiliang114
f2db301776 fix(vscode-ide-companion): improve ACP error handling to prevent silent loading hangs
When the CLI process crashes during initialization (e.g. due to a malformed
settings.json), the extension now surfaces the error instead of hanging
indefinitely on "Preparing Qwen Code...":

- Collect stderr output from the child process for inclusion in error messages
- Race SDK initialize() against a process-exit promise so a crash rejects
  immediately rather than leaving a dangling await
- Add a 30-second safety-net timeout in App.tsx to clear the loading spinner
  when initialization stalls for any reason

Closes #2382

Made-with: Cursor
2026-03-21 00:18:36 +08:00
yiliang114
e54bc88e46 fix(vscode-ide-companion): silence secondary sidebar warning on older VS Code versions
Flip the context key logic from negative (`doesNotSupportSecondarySidebar`) to
positive (`supportsSecondarySidebar`) so that the secondary sidebar container is
only declared when the VS Code version is known to support it. This prevents the
"container 'qwen-code-secondary' does not exist" warning on older versions and
avoids accidentally relocating other extensions' views to the Explorer container.

Closes #2432
Closes #2416

Made-with: Cursor
2026-03-21 00:16:35 +08:00
DennisYu07
fe8850fe55 change hook error telemetry to log if needed 2026-03-20 20:27:45 +08:00
DennisYu07
6bbb5fc2fe remove open telemetry 2026-03-20 20:13:08 +08:00
DennisYu07
f1204268ff remove fail telemetry 2026-03-20 19:56:48 +08:00
DennisYu07
58be2b7202 add QwenLogger Telemetry 2026-03-20 19:47:13 +08:00
Dmitry Glizhinskiy
6f71819f83 fix(extensions): support non-GitHub git URLs for extension installation
Fixes extension installation from local domain git servers (GitLab, Bitbucket, etc.)
by catching errors from parseGitHubRepoForReleases and falling back to use the source URL directly.

- Add unit test for non-GitHub git URLs
2026-03-20 13:26:38 +03:00
LaZzyMan
c0df754418 Merge branch 'main' into fix/test-artifacts-and-shell-permissions 2026-03-20 18:04:44 +08:00
DennisYu07
38caa0b218
Merge pull request #2478 from QwenLM/feat/hooks-plugin
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
feat(hooks): use extension dir files instead of tmp dir files
2026-03-20 18:01:50 +08:00
LaZzyMan
dae107d60b Merge branch 'main' into fix/test-artifacts-and-shell-permissions 2026-03-20 17:58:50 +08:00
LaZzyMan
fcd31e2adf fix: prevent bogus shell permission rules in tests 2026-03-20 17:55:33 +08:00
DennisYu07
857c7fb99b Merge branch 'main' into feat/hooks-plugin 2026-03-20 17:43:30 +08:00
Mingholy
b15850b68c
Merge pull request #2535 from QwenLM/docs-update-by-joeytoday
fix: update Discord invite link to permanent URL
2026-03-20 17:41:38 +08:00
tanzhenxin
c1527adadd
Merge pull request #2533 from QwenLM/feat/add-screenshot-section-to-pr-template
docs: add Screenshots/Video Demo section to PR template
2026-03-20 17:40:49 +08:00
joeytoday
0b50b99f7d fix: update Discord invite link to permanent URL
The previous Discord invite link was invalid. Updated to a permanent
invite link as reported in #2103.

Closes #2103

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-20 17:27:53 +08:00
tanzhenxin
f670590e7e Merge branch 'main' into feat/add-screenshot-section-to-pr-template 2026-03-20 17:20:53 +08:00
tanzhenxin
4376a9026c
Merge pull request #2489 from QwenLM/refactor/task-to-agent-tool
feat(core): add Explore agent and rename TaskTool to AgentTool
2026-03-20 17:12:38 +08:00
tanzhenxin
bf5aa685c2 docs(pr-template): reorder sections for better flow
Move "Dive Deeper" section after "Screenshots / Video Demo" to improve
readability. Screenshots section is more actionable and should appear
earlier in the template.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-20 17:04:58 +08:00
tanzhenxin
99613b85ce docs: add Screenshots/Video Demo section to PR template
Add a new section to the PR template encouraging contributors to attach
visual demos of their changes. This helps reviewers understand changes
quickly and prioritizes reviews. Also update CONTRIBUTING.md with
guidelines for different types of changes (bug fixes, features, refactors).

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-20 16:59:53 +08:00