Commit graph

2483 commits

Author SHA1 Message Date
pomelo-nwu
672067eba4 feat: add bailian coding plan models 2026-02-24 23:36:56 +08:00
pomelo
934dc1b365
Merge pull request #1907 from QwenLM/feature/bailian-coding-plan-models
feat: add third-party models (glm-4.7, kimi-k2.5, qwen3-coder-next) to Coding Plan
2026-02-24 10:36:35 +08:00
tanzhenxin
e053beb022
Merge pull request #1857 from hobostay/fix/logging-improve-acp-connection
fix(fs): Improve BOM detection with length check and codePointAt
2026-02-24 10:28:43 +08:00
tanzhenxin
e12e0533a3 refactor(core)!: Generalize GitWorktreeService from Arena-specific to reusable service
Rename ArenaWorktreeConfig → WorktreeSetupConfig, setupArenaWorktrees →
setupWorktrees, cleanupArenaSession → cleanupSession, etc. Change default
storage path from ~/.qwen/arena/ to ~/.qwen/worktrees/ and branch prefix
from arena/ to worktrees/. Add branchPrefix and metadata options for
flexibility. Remove auto-repo-init behavior; fail fast instead.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-23 22:44:45 +08:00
tanzhenxin
5d07c495f1 feat(cli): Add agent tab navigation and live tool output for in-process arena mode
Add AgentViewContext, AgentTabBar, and AgentChatView components for tab-based
agent switching. Add useArenaInProcess hook bridging ArenaManager events to
React state. Add agentHistoryAdapter converting AgentMessage[] to HistoryItem[].

Core support changes:
- Replace stream buffers with ROUND_TEXT events (complete round text)
- Add TOOL_OUTPUT_UPDATE events for live tool output streaming
- Add pendingApprovals/liveOutputs/shellPids state to AgentInteractive
- Fix missing ROUND_END emission for final text rounds

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-23 13:21:16 +08:00
pomelo-nwu
24ea2b6964 feat: add qwen3-coder-next to Coding Plan (Global/Intl region)
- Added qwen3-coder-next model to the Global/Intl Coding Plan template
- Removed thinking mode from qwen3-coder-next (both China and Global regions)
- Updated test expectations to reflect the new model count

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-23 10:51:00 +08:00
pomelo-nwu
7ebae58a8c feat: add glm-4.7 and kimi-k2.5 to Coding Plan (Global/Intl region)
- Added glm-4.7 and kimi-k2.5 to the Global/Intl region template
- Excluded qwen3-coder-next as it's not yet supported internationally
- Both models configured with thinking enabled

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-23 10:18:57 +08:00
pomelo-nwu
b0e8c66523 feat: add qwen3-coder-next, glm-4.7, and kimi-k2.5 to Coding Plan (China region)
- Added three new third-party models to the Bailian Coding Plan China region template
- All models configured with thinking enabled (enable_thinking: true)
- Updated README.md with example configurations for new models
- Updated documentation to list all available Coding Plan models

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-23 10:17:44 +08:00
DennisYu07
fdc47c4597 rename event 2026-02-22 05:30:03 -08:00
DennisYu07
43d64e26ca refactor stop hook 2026-02-22 02:20:45 -08:00
tanzhenxin
d4cfb18f79 feat(core,cli)!: Implement in-process agent backend for arenas
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

Add InProcessBackend to run subagents in-process rather than via subprocess,

enabling faster initialization and better resource management for agent

collaboration arenas.

Key changes:

- Add InProcessBackend with sandboxed in-process agent execution

- Refactor agent runtime into headless vs interactive modes

- Add AsyncMessageQueue utility for agent message passing

- Update ArenaManager with backend selection (in-process vs subprocess)

- Refactor subagent types/exports; consolidate in subagents/types

- Remove deprecated agent-hooks.ts (functionality merged into runtime)

- Update task tool to support new agent lifecycle

Breaking: Subagent type exports restructured; import from subagents/types
2026-02-21 21:08:20 +08:00
qwen-code-ci-bot
fc04ba1ece
chore: bump version to 0.10.5 (#1886)
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
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-20 22:04:14 +08:00
tanzhenxin
e968483a8a refactor(core,cli)!: rename SubAgentScope to AgentHeadless
- Rename SubAgentScope → AgentHeadless and runNonInteractive → execute
- Move agents-collab/ into agents/ with new runtime/ subdirectory
- Split subagent.ts into agent-core.ts and agent-headless.ts
- Update all event types, emitters, and statistics classes

BREAKING CHANGE: SubAgentScope renamed to AgentHeadless;
runNonInteractive() renamed to execute()

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-19 21:37:30 +08:00
pomelo-nwu
89c78c7bf3 feat: add qwen3.5-plus model support for Coding Plan
- Add qwen3.5-plus configuration for both China and Global regions
- Update README with qwen3.5-plus setup instructions
- Fix Coding Plan console URL for international users
- Update tests for new model count

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-18 20:31:56 +08:00
tanzhenxin
193bc438bd feat(arena): Persist arena events to chat history and add progress updates
- Replace SESSION_WARNING with SESSION_UPDATE supporting info/warning types
- Emit setup progress messages from ArenaManager during agent initialization
- Record all arena UI events to session JSONL for chat history replay
- Clean up unused agent event types (stream, tool calls, stats)
- Update arena select/stop dialogs to record their output

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-18 14:33:37 +08:00
qwen-code-ci-bot
4cd42187b8
chore: bump version to 0.10.4 (#1864)
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-18 12:46:25 +08:00
qwen-code-ci-bot
fca4d739c7
chore: bump version to 0.10.3 (#1863)
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-18 12:28:48 +08:00
tanzhenxin
6b55c8161f feat(arena): Add agent collaboration arena feature
Introduces a new Arena system for running multiple AI agents in parallel
terminal sessions with support for iTerm and Tmux backends.

Core:
- Add ArenaManager and ArenaAgentClient for orchestrating multi-agent sessions
- Add terminal backends (ITermBackend, TmuxBackend) with feature detection
- Add git worktree service for isolated agent workspaces
- Add arena event system for real-time status updates

CLI:
- Add /arena command with start, stop, status, and select subcommands
- Add Arena dialogs (Select, Start, Status, Stop)
- Add ArenaCards component for displaying parallel agent outputs
- Consolidate message components into StatusMessages and ConversationMessages
- Add MultiSelect component for agent selection

Config:
- Add arena-related settings to schema and config

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-18 10:51:35 +08:00
Mingholy
6bc37c6c23
Merge pull request #1860 from QwenLM/fix-intl-coding-plan
Add Coding Plan Global/Intl region support
2026-02-18 09:44:13 +08:00
Mingholy
8fe60daa46
Merge pull request #1843 from QwenLM/mingholy/fix/sandbox-sdk-e2e
Fix sandbox user permission in integration tests
2026-02-18 09:24:04 +08:00
mingholy.lmh
78a4ab1b48 fix(cli): update regionName format from 'Bailian Coding Plan (Global/Intl)' to 'Coding Plan (Bailian, Global/Intl)'
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-18 09:21:16 +08:00
mingholy.lmh
c1789a0458 fix(cli): update Coding Plan Global/Intl labels and fix description logic
- Fix AuthDialog to show correct description for coding-plan-intl mode
- Update i18n keys from 'Coding Plan (Bailian, Global/Intl)' to 'Bailian Coding Plan (Global/Intl)'
- Sync translations across all locales (en, zh, de, ja, pt, ru)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-18 08:29:34 +08:00
mingholy.lmh
39360dc058 feat(cli): add Coding Plan Global/Intl region support
Add support for Coding Plan international region with separate base URL:
- Add CodingPlanRegion enum (CHINA, GLOBAL) for region management
- Add CODING_PLAN_INTL_MODELS template with intl base URL
- Add version storage for both regions (codingPlan.version/versionIntl)
- Update AuthDialog to show both region options
- Update useCodingPlanUpdates to handle region-specific updates
- Add i18n translations for all supported languages
- Fix and update unit tests

Users can now choose between:
- Coding Plan (Bailian, China) - https://coding.dashscope.aliyuncs.com/v1
- Coding Plan (Bailian, Global/Intl) - https://coding-intl.dashscope.aliyuncs.com/v1

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-17 20:28:46 +08:00
hobostay
caa9983e23 fix(fs): Improve BOM detection with length check and codePointAt
Improve the detectFileBOM method to handle edge cases better:

1. Add length check before accessing first character
   - Prevents potential issues with empty strings
   - Makes the intent explicit and defensive

2. Use codePointAt() instead of charCodeAt()
   - Better Unicode support for characters beyond BMP
   - More modern API for Unicode code point handling

This change maintains the same functionality while being more
robust and explicit about edge case handling.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-17 19:56:12 +08:00
pomelo-nwu
0f842f4733 feat(models): add Qwen 3.5 Plus model support with updated descriptions and token limits
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-16 16:52:42 +08:00
mingholy.lmh
07b97282aa chore: bump version to 0.10.2
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-15 11:51:04 +08:00
mingholy.lmh
020c78b43b fix: update mail 2026-02-15 11:45:35 +08:00
mingholy.lmh
ee5e47bb5f fix: sandbox user permission in integration tests
- Allow SANDBOX_SET_UID_GID to control user identity in integration tests
- Fix project naming from gemini-cli to qwen-code
- Use random UUID in tests to avoid conflicts

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-15 11:02:32 +08:00
DragonnZhang
554a202840 feat: add AskUserQuestion functionality with dialog component
- Introduced AskUserQuestionDialog component for displaying questions and collecting user responses in the WebView.
- Updated ACP integration to handle ask user question requests and responses.
- Enhanced session management to include raw input and answers for user questions.
- Modified existing tools and services to support new ask user question feature.
- Updated types and message handling to accommodate new question structure and responses.
2026-02-14 17:31:29 +08:00
mingholy.lmh
32af4c7157 fix: ts error 2026-02-13 22:12:00 +08:00
mingholy.lmh
9daf20f3c7 refactor: rename session-id to sessionId for consistency in CLI argument handling 2026-02-13 22:05:38 +08:00
mingholy.lmh
82dc79629c feat: enhance session ID handling and error propagation 2026-02-13 21:41:38 +08:00
mingholy.lmh
51760fe3a6 fix: ci errors 2026-02-13 21:40:58 +08:00
mingholy.lmh
5d939fdb83 feat: add --session-id support for CLI and SDK
- Add --session-id flag to CLI for specifying custom session ID
- Add sessionId option to SDK QueryOptions
- Implement UUID validation for session IDs
- Pass session ID from SDK to CLI via --session-id argument
- Add integration tests for session-id functionality
- Update unit tests for ProcessTransport

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-13 21:40:57 +08:00
Mingholy
e8259092c6
Merge pull request #1823 from QwenLM/mingholy/fix/text-color
Fix auth UI to use semantic theme colors and correct selection sync
2026-02-13 21:39:54 +08:00
Mingholy
ffa2d89ecd
Merge pull request #1824 from QwenLM/mingholy/fix/esc-interrupt
refactor(cli): unify Escape key handling in AppContainer
2026-02-13 21:39:11 +08:00
pomelo
b44e978c7d
Merge pull request #1813 from QwenLM/fix/issue-1764-showlinenumbers-default
fix: correct showLineNumbers default value to true
2026-02-13 17:58:43 +08:00
LaZzyMan
fe0ec8049c feat: add MCP management TUI with dynamic enable/disable and runtime updates 2026-02-13 17:54:04 +08:00
pomelo
001d0103f3
Merge pull request #1791 from wenshao/feat/tpm-throttling-retry
feat: add TPM throttling error handling with 1-minute retry delay
2026-02-13 17:34:05 +08:00
DragonnZhang
fbbe21da67 feat: Add permission options for 'ask_user_question' confirmation 2026-02-13 17:24:35 +08:00
pomelo-nwu
77fd945474 feat: add /context command to display context window token usage breakdown
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-13 16:36:50 +08:00
DragonnZhang
197d26c07a feat: Add internationalization support for Ask User Question Tool in multiple languages 2026-02-13 16:14:14 +08:00
DragonnZhang
35b5bc8a1e feat: Implement AskUserQuestionTool for interactive user queries
- Added AskUserQuestionDialog component for handling user questions in CLI.
- Integrated AskUserQuestionTool into the core toolset, allowing for dynamic user input during execution.
- Enhanced ToolConfirmationMessage to utilize the new AskUserQuestionDialog for 'ask_user_question' type confirmations.
- Updated core configuration to register the AskUserQuestionTool.
- Implemented validation and execution logic for user questions, including multi-select options.
- Added comprehensive tests for AskUserQuestionTool to ensure functionality and validation rules.
- Updated tool names and display names to include AskUserQuestion.
2026-02-13 15:47:58 +08:00
yiliang114
6eb6812f5e feat(core): add rate limit error detection utility
- Extract rate-limit detection into dedicated rateLimit.ts module
- Support detection from ApiError, StructuredError, HttpError, and JSON strings
- Handle common rate-limit codes: 429, 503, 1302 (GLM)
- Simplify retry.ts by removing duplicated detection logic
2026-02-13 15:32:35 +08:00
DragonnZhang
cdcdf85dcd feat: add support for printable CSI-u keys in KeypressContext
Add handling for printable CSI-u keys (including space) to ensure they
behave like regular character input. This allows downstream text inputs
to receive the literal character when using Kitty protocol.

- Parse CSI-u space as space key with literal sequence
- Parse CSI-u printable letters as literal input
- Handle keyCode range 32-0x10ffff (excluding 127 DEL)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-13 15:29:09 +08:00
LaZzyMan
f64f08d8a1 feat: add mcp dialog 2026-02-13 14:38:54 +08:00
顾盼
aefea076b0
Merge pull request #1811 from QwenLM/fix/abort-signal-listener-leak
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: prevent AbortSignal listener memory leak
2026-02-13 10:35:20 +08:00
mingholy.lmh
86a358d26d fix: use semantic theme colors instead of hardcoded values in auth UI
- Replace hardcoded Colors.* with theme.* in AuthDialog and ApiKeyInput
- Fix selectedIndex reset when going back from API-KEY sub-view to main view

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-12 20:22:00 +08:00
mingholy.lmh
e7290c5d9a refactor(cli): unify Escape key handling in AppContainer
Consolidate Escape key behavior to improve UX and prevent conflicts:

- Move Escape handling from useGeminiStream to AppContainer
- Input with content: double-press to clear, then single-press to cancel
- Empty input: single-press immediately cancels ongoing request
- Preserve embeddedShellFocused check to allow shell's own escape handling
- Update tests to use cancelOngoingRequest directly instead of simulating keypress

Fixes inconsistent escape behavior between input clearing and request cancellation.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-12 20:20:51 +08:00
yiliang114
3153ff5caa Merge branch 'main' into feat/tpm-throttling-retry-wenshao 2026-02-12 17:01:18 +08:00