xuewenjie
f33f43e2f7
feat: improve getProcessInfo robustness with try-catch and empty output fallback
2025-12-22 11:38:38 +08:00
tanzhenxin
c5c556a326
remove pid from lockfile name of ide connection file
2025-12-19 18:12:04 +08:00
tanzhenxin
a8a863581b
Merge branch 'main' into feat/ide-companion-discovery
2025-12-19 16:49:24 +08:00
tanzhenxin
e4468cfcbc
Merge pull request #1231 from QwenLM/fix/windows-startup-and-exit-hangs
...
fix: optimize windows process tree retrieval to prevent hang
2025-12-19 16:48:40 +08:00
tanzhenxin
dfe667c364
Merge pull request #1269 from QwenLM/mingholy/fix/sampling-params
...
fix: default values of sampling params
2025-12-19 15:14:26 +08:00
xuewenjie
1386fba278
Revert other files to main, keep only process-utils changes
2025-12-19 15:01:26 +08:00
xuewenjie
d942250905
test: sync test files with code changes for IDE detection
...
- Update detect-ide.test.ts to remove ideProcessInfo parameter (now optional)
- Update process-utils.test.ts to match simplified Windows process detection logic
- Remove tests for removed IDE detection strategies (Strategy 1-4)
- All tests now passing (13 tests in detect-ide.test.ts, 6 tests in process-utils.test.ts)
2025-12-19 13:24:19 +08:00
xuewenjie
ec32a24508
fix: update ide-client tests to match new config file naming scheme
...
- Update config file naming from qwen-code-ide-server-{pid}-{timestamp}.json to qwen-code-ide-server-{port}.json
- Add readdir mock to return config file list
- Add validateWorkspacePath mock for workspace validation
- Add workspacePath field to all config objects in tests
- Remove getIdeProcessInfo dependency from tests
- All 23 tests now passing
2025-12-19 11:36:05 +08:00
xuewenjie
c2b59038ae
fix: escape backslashes in PowerShell command strings (CodeQL security fix)
...
Fixes CodeQL security alert: Incomplete string escaping or encoding
- Add escapeForPowerShellDoubleQuotes() helper function
- Properly escape both backslashes and double quotes in correct order
- Prevents command injection vulnerabilities in Windows process detection
- All existing tests pass
2025-12-18 17:32:11 +08:00
xuewenjie
27bf42b4f5
test: sync process-utils.test.ts with implementation logic
...
- Update Windows test cases to match multi-strategy IDE detection
- Add test for Strategy 1: known IDE process detection (code.exe)
- Add test for Strategy 3: shell parent detection (cmd.exe)
- Add test for Strategy 2: Git Bash with missing parent handling
- Fix test expectations to align with actual implementation behavior
- All 7 test cases now pass successfully
2025-12-18 17:28:56 +08:00
xuewenjie
cb59b5a9dc
refactor(core): optimize Windows process detection and remove debug logging
...
- Replace execFileAsync with execAsync for complex PowerShell commands in getProcessInfo
- Remove unnecessary getProcessInfo retry logic when parent not in processMap
- Remove all debug logging code (writeDebugLog function and fs import)
- Improve performance by ~1.6-2.6 seconds per detection
- Keep execFileAsync for simple commands in getProcessTableWindows
2025-12-18 16:24:40 +08:00
xuewenjie
01e62a2120
refactor: remove unused fs import from process-utils.ts
2025-12-18 15:06:01 +08:00
xuewenjie
7eabf543b4
Merge branch 'main' of github.com:QwenLM/qwen-code into fix/windows-startup-and-exit-hangs
2025-12-18 13:24:21 +08:00
Mingholy
e274b4469a
Merge pull request #1214 from kfxmvp/fix/issue-1186-schema-converter
...
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 (Linux) - sandbox:docker-1 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none-1 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker-2 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none-2 (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
fix: add configurable OpenAPI 3.0 schema compliance for Gemini compatibility (#1186 )
2025-12-17 11:12:57 +08:00
tanzhenxin
2837aa6b7c
rework /resume slash command
2025-12-16 19:54:55 +08:00
mingholy.lmh
25d9c4f1a7
fix: default values of sampling params
2025-12-16 17:09:42 +08:00
tanzhenxin
61e378644e
feat: update configuration and shell tool implementations
...
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2025-12-16 15:02:59 +08:00
tanzhenxin
fc58291c5c
Merge branch 'main' into add-git-co-author
2025-12-16 14:43:27 +08:00
tanzhenxin
f9da1b819e
Merge branch 'main' into feat/ide-companion-discovery
2025-12-16 14:11:25 +08:00
xuewenjie
f47c762620
Merge branch 'main' of github.com:QwenLM/qwen-code into fix/windows-startup-and-exit-hangs
2025-12-16 11:35:13 +08:00
kefuxin
573c33f68a
Merge remote-tracking branch 'upstream/main' into fix/issue-1186-schema-converter
2025-12-16 11:08:51 +08:00
Alexander Farber
07fb6faf5f
Add comments explaining regexes
2025-12-15 16:26:52 +01:00
Alexander Farber
1956507d90
Avoid ReDoS by using better regexes
2025-12-15 16:23:17 +01:00
tanzhenxin
59c3d3d0f9
IDE companion discovery: switch to ~/.qwen/ide lock files
2025-12-15 20:15:26 +08:00
pomelo-nwu
53486b7fd3
Merge branch 'main' into docs-byYijing
2025-12-15 19:42:20 +08:00
tanzhenxin
5c6ed070de
Merge pull request #1254 from QwenLM/chore/no-chat-recording-flag
...
Add chat recording toggle (CLI + settings) and disable recording in tests
2025-12-15 19:16:14 +08:00
Alexander Farber
5d94763581
Add logs (TODO remove later)
2025-12-15 11:06:09 +01:00
Alexander Farber
5bd1822b7d
Fix gitCoAuthor not added for combined flags like -am
2025-12-15 11:00:21 +01:00
Alexander Farber
65392a057d
Detect git commit anywhere in command, not just at start
2025-12-15 10:19:08 +01:00
tanzhenxin
883c6d878c
Merge pull request #1174 from QwenLM/fix/glob-windows-casing
...
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:none-2 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none-1 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker-2 (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 (Linux) - sandbox:docker-1 (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
fix: handle case-insensitive path comparison in glob tool on Windows
2025-12-15 16:51:04 +08:00
tanzhenxin
b9a2cc7bdf
Add chat recording toggle (CLI + settings) and disable recording in tests
2025-12-15 13:48:38 +08:00
tanzhenxin
f7ef720e3b
test
2025-12-13 23:18:49 +08:00
tanzhenxin
0d90d5c118
Merge pull request #1240 from QwenLM/feat/acp-authenticate-update
...
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 (Linux) - sandbox:docker-1 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none-1 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker-2 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none-2 (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
Add ACP authenticate update message
2025-12-13 14:41:59 +08:00
tanzhenxin
4eb7aa5448
add acp authenticate update message
2025-12-13 12:01:46 +08:00
Alexander Farber
7bb9bc1e5e
Remove redundant if-check and add tests for tool conversion in converter.ts
2025-12-12 14:29:37 +01:00
xuewenjie
4f2b2d0a3e
fix: optimize windows process tree retrieval to prevent hang
2025-12-12 15:10:16 +08:00
DragonnZhang
60a58ad8e5
feat: add support for the channel field to CLI parameters and configurations
2025-12-12 01:06:00 +08:00
kefuxin
b6a3ab11e0
fix: improve Gemini compatibility by adding configurable schema converter
...
This commit addresses issue #1186 by introducing a configurable schema compliance
mechanism for tool definitions sent to LLMs.
Key changes:
1. **New Configuration**: Added `model.generationConfig.schemaCompliance` setting (defaults to 'auto', optional 'openapi_30').
2. **Schema Converter**: Implemented `toOpenAPI30` converter in `packages/core` to strictly downgrade modern JSON Schema to OpenAPI 3.0.3 (required for Gemini API), handling:
- Nullable types (`["string", "null"]` -> `nullable: true`)
- Numeric exclusive limits
- Const to Enum conversion
- Removal of tuples and invalid keywords (``, `dependencies`, etc.)
3. **Tests**: Added comprehensive unit tests for the schema converter and updated pipeline tests.
Fixes #1186
2025-12-11 14:23:27 +08:00
tanzhenxin
58d3a9c253
Merge pull request #1176 from QwenLM/feat/acp-usage-metadata
...
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 (Linux) - sandbox:docker-1 (push) Has been cancelled
E2E Tests / E2E Test (Linux) - sandbox:none-1 (push) Has been cancelled
E2E Tests / E2E Test (Linux) - sandbox:docker-2 (push) Has been cancelled
Qwen Code CI / Test (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
E2E Tests / E2E Test (Linux) - sandbox:none-2 (push) Has been cancelled
E2E Tests / E2E Test - macOS (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
Feat/acp usage metadata
2025-12-11 14:09:43 +08:00
tanzhenxin
d7b9466516
#1129 , add usage update in ACP mode
2025-12-09 09:58:19 +08:00
xuewenjie
dd7f9ed489
test: update glob tool test to cover case-insensitive path comparison on macOS
2025-12-08 18:15:40 +08:00
xuewenjie
5fa87e6fbb
fix: handle case-insensitive path comparison on macOS in glob tool
2025-12-08 18:13:25 +08:00
xuewenjie
e5e1e6a3da
Merge branch 'main' of github.com:QwenLM/qwen-code into fix/windows-shell-output-garbled
2025-12-08 11:35:47 +08:00
xuewenjie
0a8281f2dd
fix: handle case-insensitive path comparison in glob tool on Windows
2025-12-08 10:58:50 +08:00
Mingholy
3ed0a34b5e
Merge pull request #1147 from QwenLM/mingholy/feat/cli-sdk-stage-2
...
Custom tools support via SDK controlled MCP servers
2025-12-05 21:19:58 +08:00
xuewenjie
2c1a836f18
fix: prefer UTF-8 encoding for shell output on Windows when detected
2025-12-05 16:49:26 +08:00
tanzhenxin
3e2a2255ee
DeepSeek V3.2 Thinking Mode Integration ( #1134 )
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 (Linux) - sandbox:docker-1 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none-1 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker-2 (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none-2 (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run
2025-12-05 15:08:35 +08:00
mingholy.lmh
322ce80e2c
feat: implement SDK MCP server support and enhance control request handling
...
- Added new `SdkMcpController` to manage communication between CLI MCP clients and SDK MCP servers.
- Introduced `createSdkMcpServer` function for creating SDK-embedded MCP servers.
- Updated configuration options to support both external and SDK MCP servers.
- Enhanced timeout settings for various SDK operations, including MCP requests.
- Refactored existing control request handling to accommodate new SDK MCP server functionality.
- Updated tests to cover new SDK MCP server features and ensure proper integration.
2025-12-05 13:14:54 +08:00
mingholy.lmh
8035be6f8d
fix: plan mode adjustments
2025-12-04 17:10:22 +08:00
mingholy.lmh
249b141f19
feat: add allowedTools for SDK use and re-organize test setup
2025-12-04 17:10:22 +08:00