Commit graph

3801 commits

Author SHA1 Message Date
LaZzyMan
217d59c892 feat enable other dirs with core tools 2026-03-10 17:51:29 +08:00
Yusheng
66c625a555 fix: improve qwen mcp add option handling for arrays 2026-03-10 17:37:51 +08:00
tanzhenxin
89f8751233 feat(cli): add agent composer UI and refactor text input handling
- Extract shared BaseTextInput component with readline keyboard handling
- Add AgentComposer and AgentFooter components for agent interaction
- Add useAgentStreamingState hook for managing agent streaming state
- Refactor InputPrompt to use BaseTextInput with agent tab bar focus support
- Move calculatePromptWidths to shared layoutUtils
- Disable auto-accept indicator on agent tabs (agents handle their own)

This enables a dedicated input experience for agent tabs with proper
focus management and keyboard navigation between main input and agent tabs.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-10 16:53:10 +08:00
tanzhenxin
bf99f95602
Merge pull request #2045 from xieyonn/feat/tmp-editor-filename
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 / Post Coverage Comment (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
feat(cli): change temporary filename prefix to qwen-edit-
2026-03-10 16:51:42 +08:00
LaZzyMan
db0e373ad7 feat test tool permissions 2026-03-10 16:30:22 +08:00
yiliang114
64b2dfaddc Merge remote-tracking branch 'origin/main' into feat/vscode-ide-companion-layout 2026-03-10 15:52:47 +08:00
DennisYu07
98fb607ad1 merge main 2026-03-10 00:29:08 -07:00
yiliang114
8c4b3d4fb9 Merge branch 'main' into fix/ide-connection-dns-lookup 2026-03-10 14:56:22 +08:00
yiliang114
c3391fe0db refactor(ide): optimize connection config lookup and remove time-based lock cleanup
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-10 14:54:37 +08:00
LaZzyMan
06bef3b91f fix dirs in getUserSkillsDirs 2026-03-10 14:33:40 +08:00
tanzhenxin
b6dda8c08d
Merge pull request #2224 from Deng-Xian-Sheng/patch-1
improve readability of context compression description
2026-03-10 14:10:49 +08:00
tanzhenxin
9154048be2
Merge pull request #2219 from LaZzyMan/fix-mcp-extension-ui
fix: clean up MCP server display and add CONCAT merge strategy for mcp allowed/excluded lists
2026-03-10 13:55:59 +08:00
tanzhenxin
29e82822e2 fix(test): simplify AskUserQuestionDialog tests to remove flaky timing-dependent tests
Keep only essential stable tests:
- Rendering tests (6)
- Basic single-select interaction (4)
- Basic multi-select interaction (2)
- Multiple questions navigation (4)
- Focus behavior (1)

Remove timing-sensitive tests involving:
- Auto-advance after selection (setTimeout 150ms)
- Custom input state preservation across navigation
- Complex multi-select toggle state assertions

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-10 11:11:23 +08:00
yiliang114
3f77f416ec Merge branch 'main' of https://github.com/QwenLM/qwen-code into feat/vscode-ide-companion-layout 2026-03-10 11:05:31 +08:00
tanzhenxin
3b5e9f21c2
Merge branch 'main' into release/v0.12.1 2026-03-10 10:51:50 +08:00
tanzhenxin
2643116804 fix(test): remove flaky custom input state tests from AskUserQuestionDialog
Remove 5 tests in 'custom input preserves state' describe block that were
flaky on Windows CI due to timing issues with TextInput state updates and
keyboard navigation.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-10 10:50:21 +08:00
tanzhenxin
a4136f484d
Merge pull request #2110 from QwenLM/fix/clear-message-after-change-modle
fix(cli): clear static error message when starting new query
2026-03-10 10:36:32 +08:00
tanzhenxin
e5aa9ce8e7 fix(test): increase wait times in AskUserQuestionDialog tests for Windows CI
- Increase wait times from 200ms to 250-300ms for auto-advance tests
- Windows CI can have timing issues with setTimeout precision

This fixes flaky test failures on Windows CI where the 150ms auto-advance
timeout wasn't completing before the next test action.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-10 10:29:54 +08:00
pomelo
d80199d893
Merge pull request #2212 from xuewenjie123/fix/mcp-oauth-scope-from-protected-resource
fix(mcp): use scopes from protected resource metadata (RFC 9728)
2026-03-10 10:23:12 +08:00
tanzhenxin
1376a621b8 chore(release): bump version to 0.12.1
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-10 09:22:03 +08:00
靳灿奇
85855bbc8b
Fix translation for context compression message 2026-03-10 03:17:27 +08:00
yiliang114
1ee0222727 refactor: simplify mock implementations for testing environments 2026-03-10 01:15:23 +08:00
yiliang114
842e2e0eee refactor: extract connection config logic into separate module 2026-03-10 00:43:43 +08:00
yiliang114
6bf5a06bbd fix(ide): add lock file cleanup logic and tests 2026-03-09 21:50:00 +08:00
yiliang114
532c416fb7 fix(ide): use callback-based dns.lookup for better compatibility
Replace Promise-based dns.promises.lookup with callback-based dns.lookup
for better compatibility across different Node.js environments (e.g.,
VSCode, Cursor).

The callback-based approach avoids potential issues with Promise-based
DNS lookup in certain IDE embedded terminal environments.
2026-03-09 21:40:41 +08:00
LaZzyMan
d32dcab5db fix: remove redundant scope field from MCP server display and add CONCAT merge strategy for mcp allowed/excluded lists 2026-03-09 21:38:42 +08:00
yiliang114
2b4c0324b6 Merge branch 'main' into fix/ide-connection-dns-lookup 2026-03-09 21:37:22 +08:00
tanzhenxin
eaef9efe90 feat(arena): add IDLE status for agent follow-up task support
- Introduce AgentStatus.IDLE for agents that finished work but can accept follow-up messages
- Add isSettledStatus() helper to check if agent is settled (IDLE or terminal)
- Update ArenaManager to transition to IDLE after agents finish initial task
- Keep agent tabs visible when session is IDLE so users can continue interacting
- Fix listener cleanup to not detach on IDLE (agents remain alive)
- Update tests to expect 'idle' status after successful completion

This enables the arena collaboration feature where agents can receive
additional tasks after completing their initial work.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-09 21:33:48 +08:00
tanzhenxin
4a681f435d Merge branch 'main' into feature/arena-agent-collaboration 2026-03-09 20:43:25 +08:00
yiliang114
76e3c36253 Merge branch 'main' into fix/ide-connection-dns-lookup 2026-03-09 19:40:25 +08:00
yiliang114
aa20ebb70b fix(ide): use callback-based dns.lookup for better compatibility 2026-03-09 19:40:07 +08:00
LaZzyMan
817f24e0ea fix bugs 2026-03-09 19:11:40 +08:00
LaZzyMan
a02ed08d26 fix ui 2026-03-09 18:26:01 +08:00
xwj02155382
c074960dd7 fix: increase wait times in AskUserQuestionDialog tests for CI stability
The tests used fixed wait times (200ms) that were too close to the
auto-advance timeout (150ms). In CI environments (especially Windows
with Node 20), timing can be less predictable due to event loop
scheduling differences, causing race conditions.

Changes:
- Increased wait(200) to wait(300) for auto-advance tests
- Increased wait() to wait(100) for navigation tests in custom input state test

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-09 18:25:02 +08:00
yiliang114
3bb21c3adb refactor(vscode-ide-companion): unify view ID naming and add multi-view tests
- Use consistent kebab-case prefix 'qwen-code.' for all view IDs
- Update package.json views and viewsContainers to match new naming
- Add fine-grained activationEvents for views and commands
- Add test verifying all three view positions are registered correctly

This ensures consistent naming across commands, views, and containers.
2026-03-09 17:54:59 +08:00
DennisYu07
ab368e15b0 add matcher for SessionStart and SessionEnd and rafactor integration test 2026-03-09 02:34:33 -07:00
xwj02155382
64201e8848 fix(mcp): use scopes from protected resource metadata (RFC 9728)
When discovering OAuth configuration for MCP servers, the scopes_supported
field from Protected Resource Metadata was being ignored. According to
RFC 9728, Protected Resource Metadata defines scopes specific to that
resource, which should take precedence over Authorization Server Metadata
scopes.

This fix ensures that scopes from Protected Resource Metadata are used
when available, while maintaining backward compatibility by falling back
to Authorization Server Metadata scopes.

Fixes OAuth authorization links missing scope parameter for ModelScope
MCP server.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-09 17:30:06 +08:00
LaZzyMan
c3c8b39a29 fix: deduplicate same-name skills across provider dirs and fix cross-platform test 2026-03-09 17:08:28 +08:00
LaZzyMan
7e9c5843e8 fix test 2026-03-09 16:46:28 +08:00
LaZzyMan
1673b04fad fix test ci 2026-03-09 16:28:53 +08:00
tanzhenxin
fa2f2fd5ce feat(arena): Short worktree names and UX improvements
- Use 8-char short names derived from session UUID for worktrees
- Fix cleanup to use short worktreeDirName
- Simplify model display names (remove authType prefix)
- Improve messaging when <2 models available
- Show agent worktree paths in startup output

Prevents long path issues and provides clearer model setup guidance.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-09 16:21:28 +08:00
yiliang114
b26e21f71d feat(vscode-ide-companion): cherry-pick ACP compatibility improvements from PR #2195
- Add extractSessionListItems() utility for robust ACP response parsing
- Refactor getSessionList() and getSessionListPaged() to use the new utility
- Add openNewChatTabCommand to create new session when opening chat tab
- Add comprehensive test coverage for session list extraction

Co-authored-by: ZZAoYe <zzbuaoye@gmail.com>
2026-03-09 16:11:26 +08:00
LaZzyMan
0c21071bf6 fix ci test 2026-03-09 16:08:11 +08:00
DennisYu07
411cf08396 fix unit test 2026-03-09 01:01:35 -07:00
LaZzyMan
a19f1b1ab3 add i18n 2026-03-09 16:01:16 +08:00
LaZzyMan
597ce85335 fix extension ui 2026-03-09 15:49:02 +08:00
yiliang114
2334386b69 Merge branch 'main' into feat/vscode-ide-companion-layout
Resolved merge conflicts for WebViewProvider.ts and MessageHandler.ts,
adjusting import paths to match the providers/ directory structure.
2026-03-09 15:40:51 +08:00
LaZzyMan
15b5bc3bfc fix mcp ui 2026-03-09 15:20:30 +08:00
LaZzyMan
9e34b5db4a fix: 重写 AuthenticateStep 使用正确的 OAuth 流程
- 按照 mcpCommand.ts 中的 auth 实现重写 AuthenticateStep
- 使用 MCPOAuthProvider + MCPOAuthTokenStorage 进行实际 OAuth 认证
- 通过 appEvents/AppEvent.OauthDisplayMessage 展示认证过程消息
- 认证成功后自动触发 tool re-discovery 和 client tools 更新
- 只在 server.config.oauth?.enabled 为 true 时显示 Authenticate 选项
- 认证成功后 reload servers 刷新列表
2026-03-09 12:05:27 +08:00
tanzhenxin
c905b94d78 feat(agents): add settings schema for multi-agent collaboration
Add agents.displayMode, arena/team/swarm settings, and refactor
acpAgent to use local ApprovalModeValue type.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-09 11:23:08 +08:00