Commit graph

4838 commits

Author SHA1 Message Date
tanzhenxin
bbea114737
Merge pull request #1912 from QwenLM/feature/arena-agent-collaboration
feat(arena): Add agent collaboration arena with multi-model competitive execution
2026-03-18 19:36:47 +08:00
tanzhenxin
fe304a0c32 Merge branch 'main' into feature/arena-agent-collaboration 2026-03-18 19:20:22 +08:00
tanzhenxin
3f6cd4ef7a
Merge pull request #2458 from QwenLM/refactor/error-handling-quota-detection
refactor(core): improve error handling and quota detection
2026-03-18 19:15:53 +08:00
LaZzyMan
6f362a89ae Merge branch 'main' into feature/support-agents-directory-skills 2026-03-18 19:12:00 +08:00
tanzhenxin
63da2bb926
Merge pull request #2434 from QwenLM/feat/concurrent-task-execution
feat(core): execute task tools concurrently for improved performance
2026-03-18 19:08:53 +08:00
tanzhenxin
ebed4ddd36
Merge pull request #2446 from QwenLM/refactor/centralize-tool-output-truncation
fix(core): add truncation support for MCP tool output
2026-03-18 19:05:44 +08:00
tanzhenxin
ddee359003 fix(core): correct error property in test from code to status
This aligns the test with the updated error handling that uses `status` instead of `code` for HTTP status codes.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-18 19:00:44 +08:00
Mingholy
d47e0e9f3d
Merge pull request #2448 from QwenLM/fix-sdk-message-event
Fix: Ensure message_start and message_stop events are paired in SDK streaming
2026-03-18 18:56:23 +08:00
mingholy.lmh
79083ffd50 Fix SDK message event pairing and improve content block handling
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-18 18:10:23 +08:00
mingholy.lmh
eea92fc8db fix: ensure message_start and message_stop are always paired in SDK stream events
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-18 18:10:23 +08:00
LaZzyMan
4e08c2009d fix remove other dirs 2026-03-18 18:01:40 +08:00
pomelo-nwu
3bfe34a1dc telemetry: track cached content tokens for accurate context calculation
- Add cachedContentTokenCount tracking in uiTelemetry service
- Collect cached_content_token_count from streaming usage metadata
- Use cached tokens instead of estimated overhead when available
- Fix messages token calculation to avoid 'messages = 0' issue

This improves context window display accuracy when using providers
that support prefix caching (e.g., DashScope).

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-18 17:51:50 +08:00
qqqys
40485c59ac feat(ui): implement per-task token tracking in LoadingIndicator 2026-03-18 17:35:37 +08:00
DennisYu07
4c0e4a9611
Merge pull request #2352 from QwenLM/feat/hooks-plugin
feat(hooks): implement hooks extension mechanism
2026-03-18 17:29:10 +08:00
qqqys
8f5ecbc46c refactor(completion): improve trigger detection logic for completion suggestions by prioritizing '@' over '/' and refining context checks 2026-03-18 17:12:46 +08:00
qqqys
2bd3c293ff refactor(completion): enhance trigger detection logic for completion suggestions 2026-03-18 17:06:25 +08:00
pomelo
d4379d6ee6
Merge branch 'main' into feat/context-usage 2026-03-18 16:45:12 +08:00
tanzhenxin
f67e28b4be docs(arena): add Agent Arena documentation
Add comprehensive documentation for the Agent Arena feature, covering
usage, configuration, best practices, troubleshooting, and limitations.
Update navigation metadata to include the new page.

This enables users to discover and learn about the multi-model comparison
capability for competitive task execution.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-18 16:26:59 +08:00
DennisYu07
257934f1e9 resolve comment 2026-03-18 01:25:11 -07:00
tanzhenxin
d0923ef972 refactor(core): improve error handling and quota detection
- Move getErrorStatus from retry.ts to errors.ts for better organization
- Add getErrorType utility to extract error class/category names
- Enhance getErrorMessage to include cause chain for better debugging
- Refactor ApiErrorEvent to use options object pattern (more readable)
- Rename 'error' to 'error_message' in ApiErrorEvent for clarity
- Make isQwenQuotaExceededError more precise: requires status=429,
  code='insufficient_quota', and 'free allocated quota exceeded' message
- Update all tests to match new error detection behavior

This improves error telemetry and makes quota detection more reliable.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-18 16:07:35 +08:00
DennisYu07
9a05f96929 remove deplicate function and add test 2026-03-18 01:00:12 -07:00
qqqys
848f7dbd4c fix(vscode-ide-companion): update URI handling for Windows paths 2026-03-18 15:28:22 +08:00
DennisYu07
99a65aebc0 resolve lint for posttooluse and test 2026-03-17 23:01:33 -07:00
tanzhenxin
d1b761adf2
Merge pull request #2425 from kkhomej33-netizen/fix/ctrl-r-command-search-order
Some checks failed
Qwen Code CI / Test-3 (push) Has been skipped
Qwen Code CI / Test-4 (push) Has been skipped
Qwen Code CI / Lint (push) Failing after 24s
Qwen Code CI / CodeQL (push) Failing after 24s
Qwen Code CI / Test (push) Has been skipped
Qwen Code CI / Test-1 (push) Has been skipped
Qwen Code CI / Test-2 (push) Has been skipped
Qwen Code CI / Test-5 (push) Has been skipped
Qwen Code CI / Test-6 (push) Has been skipped
Qwen Code CI / Test-7 (push) Has been skipped
Qwen Code CI / Test-8 (push) Has been skipped
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Failing after 5s
E2E Tests / E2E Test (Linux) - sandbox:none (push) Failing after 6s
Qwen Code CI / Post Coverage Comment (push) Has been skipped
E2E Tests / E2E Test - macOS (push) Has been cancelled
fix(cli): show newest-first history for Ctrl+R command search
2026-03-18 13:51:28 +08:00
DennisYu07
1ce8502ebf Merge branch 'main' into feat/hook_sessionstart_sessionend 2026-03-17 20:41:08 -07:00
DennisYu07
b236e4152f Merge branch 'main' into feat/hook_sessionstart_sessionend 2026-03-17 20:34:13 -07:00
tanzhenxin
080271031d
Merge pull request #2400 from QwenLM/feat/system-prompt-sdk
feat: add system prompt customization options in SDK and CLI
2026-03-18 11:29:21 +08:00
tanzhenxin
a60fadd822
Merge pull request #2403 from simon100500/fix/duplicate-finish-chunk-tool-calls
fix(pipeline): handle duplicate finish_reason chunks from OpenRouter
2026-03-18 11:20:12 +08:00
tanzhenxin
56bc794553
Merge pull request #2451 from QwenLM/chore/bump-version-0.13.0
chore: bump version to 0.13.0
2026-03-18 11:19:48 +08:00
tanzhenxin
22f0437369 chore: bump version to 0.13.0
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-18 10:41:32 +08:00
LaZzyMan
a36264936f docs: adjust auth docs priority - keep /auth as primary, qwen auth as supplement 2026-03-18 10:14:35 +08:00
LaZzyMan
40fceebbd6 docs: add qwen auth CLI command documentation 2026-03-18 10:05:16 +08:00
qqqys
3a92be09e0 test(cli): remove promptTokens prop from LoadingIndicator tests 2026-03-18 00:22:35 +08:00
qqqys
476d6bc4fc test(file-handler): enhance tests for FileMessageHandler with fuzzy search and path filtering 2026-03-18 00:20:11 +08:00
qqqys
617874f152 fix(ui): handle optional metrics in Composer component 2026-03-17 21:37:02 +08:00
qqqys
7a554b1226 refactor(file-handler): improve file watcher management and cache clearing 2026-03-17 21:21:53 +08:00
qqqys
ebeb7ed690 refactor(completion): enhance trigger detection logic for completion suggestions 2026-03-17 20:55:12 +08:00
tanzhenxin
61347577ce refactor(core): centralize tool output truncation logic
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

- Add truncateToolOutput helper in truncation.ts to centralize threshold reading, file saving, and telemetry logging

- Refactor shell.ts to use the new helper, removing duplicate code

- Add truncation support for MCP tool output while preserving non-text content (images, audio, resources)

- Refactor getDisplayFromParts to work on transformed Part[] instead of raw MCP response

This reduces code duplication and ensures consistent truncation behavior across shell and MCP tools.
2026-03-17 20:24:20 +08:00
qqqys
03e59256c4 feat(ui): enhance LoadingIndicator to display token counts and improve formatting
- Added candidatesTokens prop to LoadingIndicator for displaying token counts.
- Updated formatting to show elapsed time and token counts inline.
- Refactored tests to validate new token display functionality and formatting changes.
- Introduced formatTokenCount utility for consistent token count representation.

This improves user feedback during loading states by providing clearer information on token usage.
2026-03-17 20:10:54 +08:00
LaZzyMan
28149e0cc4 fix test ci 2026-03-17 19:15:58 +08:00
qwen-code-ci-bot
ac30c98a26
chore: bump version to 0.12.6 (#2442)
Some checks failed
Qwen Code CI / Lint (push) Failing after 5s
Qwen Code CI / CodeQL (push) Failing after 5s
Qwen Code CI / Test (push) Has been skipped
Qwen Code CI / Test-1 (push) Has been skipped
Qwen Code CI / Test-2 (push) Has been skipped
Qwen Code CI / Test-3 (push) Has been skipped
Qwen Code CI / Test-4 (push) Has been skipped
Qwen Code CI / Test-5 (push) Has been skipped
Qwen Code CI / Test-6 (push) Has been skipped
Qwen Code CI / Test-7 (push) Has been skipped
Qwen Code CI / Test-8 (push) Has been skipped
E2E Tests / E2E Test (Linux) - sandbox:none (push) Failing after 3s
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Failing after 4s
Qwen Code CI / Post Coverage Comment (push) Has been skipped
E2E Tests / E2E Test - macOS (push) Has been cancelled
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-17 19:00:26 +08:00
LaZzyMan
8722dc9dd6 fix remove useless output 2026-03-17 18:53:42 +08:00
Mingholy
de29a8d987
Merge pull request #2438 from QwenLM/fix-max-token-limit
fix: improve max_tokens handling with conservative defaults
2026-03-17 18:45:48 +08:00
LaZzyMan
0897ddd75c i18n: add auth command translations for all 6 languages 2026-03-17 18:28:32 +08:00
mingholy.lmh
f300e3ab32 fix: respect user-configured max_tokens for unknown Anthropic models
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-17 18:16:21 +08:00
LaZzyMan
9ca4e1debd recover template 2026-03-17 18:15:02 +08:00
LaZzyMan
b470a965ab docs: update PR template for auth command feature
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-17 18:12:54 +08:00
LaZzyMan
9a3041335f feat: add auth command 2026-03-17 18:11:22 +08:00
mingholy.lmh
3a22ba9659 test: fix test expectations for new DEFAULT_OUTPUT_TOKEN_LIMIT (32000)
- Update anthropic tests: 32768 → 32000
- Update dashscope tests: 32768 → 32000
- Update unknown model test to respect user config (40000 preserved)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-17 18:10:59 +08:00
mingholy.lmh
ec292ec581 feat: distinguish known/unknown models for output token limit handling
- Add hasExplicitOutputLimit() to detect models with defined output limits
- For known models: cap user max_tokens to model limit (avoid API errors)
- For unknown models (deployment aliases, self-hosted): respect user config
- Update tests to cover new behavior

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-17 18:04:33 +08:00