Commit graph

2317 commits

Author SHA1 Message Date
liqoingyu
c8a148b92e fix(cli): expand MCP @server: resource references 2026-02-03 17:22:47 +08:00
LaZzyMan
0f4b5fd400 fix test on windows 2026-02-03 15:11:20 +08:00
LaZzyMan
b15b9b7ef4 fix ui 2026-02-03 14:30:55 +08:00
LaZzyMan
7b63b24773 fix: add hint for installing external extensions 2026-02-03 14:17:32 +08:00
LaZzyMan
c92e2b8351 Merge branch 'main' into feat/image-attachment 2026-02-02 20:23:34 +08:00
LaZzyMan
4a578a61f2 fix test 2026-02-02 20:16:59 +08:00
LaZzyMan
30b4b47cd7 fix ci test 2026-02-02 20:16:18 +08:00
LaZzyMan
7a154b8a62 fix revert changes 2026-02-02 20:08:12 +08:00
LaZzyMan
86ba86e297 Merge branch 'main' into fix/shift-tab-windows-powershell 2026-02-02 19:51:32 +08:00
LaZzyMan
3296785b23 feat use tab on windows instead of shift+tab 2026-02-02 19:48:07 +08:00
mingholy.lmh
0137b316d0 feat: support runtime model selection for both interactive and ACP 2026-02-02 17:52:50 +08:00
tanzhenxin
89e3c2cd7a refactor(debug): replace ConsolePatcher with debugLogger and update error reporting
- Replace ConsolePatcher with centralized debugLogger utility
- Refactor errorReporting to use debugLogger instead of file-based reporting
- Remove user-facing console message components:
  - Delete ConsolePatcher.ts, useConsoleMessages.ts/hook
  - Delete ConsoleSummaryDisplay.tsx, DetailedMessagesDisplay.tsx
- Update all tests in packages/core and packages/cli:
  - Mock debugLogger where needed
  - Remove assertions for console output on non-critical errors
  - Keep debugLogger assertions for fatal/network errors
  - Use HOME directory mocking for hermetic file system tests

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-02 17:37:54 +08:00
LaZzyMan
7935482c3a Revert "fix: enable Shift+Tab shortcut in Windows PowerShell"
This reverts commit 9bee51dc17.
2026-02-02 17:24:01 +08:00
LaZzyMan
f43bd7f8ab Revert "fix undefined error"
This reverts commit 4534f5ec1d.
2026-02-02 17:23:59 +08:00
LaZzyMan
1050163804 fix paste image on windows 2026-02-02 17:07:39 +08:00
宇溯
813e2d2b12 FIXME: list extensions after the config initialize 2026-02-01 23:56:21 -08:00
宇溯
3719104d85 Revert "resolve comment"
This reverts commit 61421e65872acebe20d88c2d40c9fea40fa3fefa.
2026-02-01 23:51:04 -08:00
宇溯
91ec945e81 resolve comment 2026-02-01 23:51:04 -08:00
宇溯
635f0fad89 Revert "reslove comment"
This reverts commit d7b003076e8a5f6b387b7313ecab0cd7ebea0997.
2026-02-01 23:51:04 -08:00
LaZzyMan
b28e5c4c0f fix ctrl+v on win 2026-02-02 11:45:08 +08:00
mingholy.lmh
06b37bd6bf fix(acp): add authMethods in set_model response errors 2026-02-01 21:20:20 +08:00
tanzhenxin
135df54f27 Merge branch 'main' into feat/debug-logging-refactor
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-01 20:47:38 +08:00
mingholy.lmh
6fa11a7bae fix: remove unshifted current modelId and add auth error response 2026-02-01 19:55:13 +08:00
mingholy.lmh
889c49f0f4 fix: provide available models of all configured authTypes 2026-02-01 19:54:31 +08:00
Alexander Farber
efb1eb37a2 Rename to migrateV1ToV3 2026-02-01 16:04:58 +08:00
Alexander Farber
273caf1cde Rename migrateSettingsToV2 to migrateV1ToLatest 2026-02-01 16:04:58 +08:00
Alexander Farber
895cbf71cd Bump settings version to V3 even when no migration changes needed 2026-02-01 16:04:58 +08:00
Alexander Farber
2c25b2fabd Mock getFileFilteringEnableFuzzySearch 2026-02-01 16:04:58 +08:00
Alexander Farber
557c99a08b Rename disableAutoUpdate to isAutoUpdateEnabled, update snapshots 2026-02-01 16:04:58 +08:00
Alexander Farber
fd4157a6a1 Test migration of consolidated settings 2026-02-01 16:04:58 +08:00
Alexander Farber
d4fa2e7dd0 Fix migration of consolidated settings 2026-02-01 16:04:58 +08:00
Alexander Farber
2ef9ffec19 Fix namings in tests 2026-02-01 16:04:58 +08:00
Alexander Farber
561fda297e Rename disable* settings to enable* and consolidated 1 setting 2026-02-01 16:04:49 +08:00
Alexander Farber
c90dbcdf3b Add a test 2026-02-01 15:56:41 +08:00
Alexander Farber
30ac136a93 Check disableUpdateNag before making network request 2026-02-01 15:56:41 +08:00
tanzhenxin
37ad24b0d9 feat: Remove Smart Edit tool and ClearcutLogger
- Remove SmartEditTool and its associated LLM edit fixer utilities
- Remove ClearcutLogger and related telemetry infrastructure
- Remove useSmartEdit configuration option from settings schema
- Add deprecation warning for users with existing useSmartEdit config
- Clean up all related tests and mocks

The Smart Edit tool was designed to provide flexible matching and LLM-based
correction for edit operations. However, current models are now capable
of effectively using the standard Edit tool without these optimizations,
and the Smart Edit tool lacked comprehensive testing coverage.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-01 14:39:54 +08:00
tanzhenxin
b1fa12f323 refactor(core): Unify package exports and improve dev experience
- Update license header to include Qwen copyright
- Add error handler for spawn in dev.js
- Refactor core/src/index.ts to export all public APIs
- Simplify core/index.ts to be a clean re-export
- Fix vitest alias to point to package entry

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-01 11:59:05 +08:00
tanzhenxin
2d525d9fd0 fix: Address review comments for BOM encoding support
- Edit tool now respects defaultFileEncoding for new files
- Edit tool preserves BOM character for existing files without re-adding
- AcpFileSystemService detects BOM through ACP client with fallback
- Use line: null, limit: 1 for efficient BOM detection
- Add unit tests for AcpFileSystemService.detectFileBOM
- Add unit tests for EditTool BOM handling

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-01 11:23:02 +08:00
tanzhenxin
831d74dbfe feat: Preserve UTF-8 BOM when editing files (Fix #1672)
- Add FileEncoding constants (UTF8, UTF8_BOM)
- Add detectFileBOM() to detect existing file encoding
- Modify writeTextFile() to support BOM option
- Add defaultFileEncoding configuration option
- Preserve BOM when editing existing files
- Use configured encoding for new files
- Add comprehensive tests (unit, integration, e2e)
- Update documentation

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-01 10:32:20 +08:00
tanzhenxin
07b186fcbf build: Improve build efficiency and add dev mode
- Remove duplicate webui build in vscode-ide-companion (fixes double build)
- Fix misleading [watch] log messages in esbuild.js (only show in watch mode)
- Update vite-plugin-dts to ^4.5.4 for TypeScript 5.8+ support
- Update baseline-browser-mapping to ^2.9.19 to silence outdated data warnings
- Fix vitest config to use @qwen-code/qwen-code-core instead of old gemini-cli-core
- Add resolve.alias in cli vitest.config.ts for source-based testing
- Add npm run dev script for running from TypeScript source without build

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-01-31 22:41:54 +08:00
tanzhenxin
7e5c1ae43a refactor: remove read_many_files tool, add readManyFiles utility for user @-commands
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-01-31 12:17:46 +08:00
yiliang114
6918167842 feat(cli/acp): 添加 server-side timestamp 支持以确保消息排序
- 在 sessionUpdateMetaSchema 中添加 timestamp 字段
- 为 MessageEmitter 和 ToolCallEmitter 方法添加 timestamp 参数
- 在 HistoryReplayer 中传递并使用记录的 timestamp
- 为用户消息、代理消息和工具调用添加 _meta.timestamp
- 添加 toEpochMs 工具方法处理 ISO 字符串和 epoch ms
- 更新所有相关测试用例验证 timestamp 传递

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-01-30 17:39:46 +08:00
宇溯
c2d6c05f12 add back addItem 2026-01-29 23:28:43 -08:00
宇溯
8fab26d1a3 fix auth not change on top bar 2026-01-29 23:17:12 -08:00
ojha
6f7180251b feat: add Gemini extension origin warning in consent prompt
Shows warning when installing Gemini CLI extensions to set user expectations
about potential compatibility differences.

- Keeps isGeminiExtensionConfig validation intact (no skipped checks)
- Zero UI in core package (warning only in CLI layer via consent.ts)
- Uses t() for internationalization
- Warning appears in consent prompt before installation

Fixes: #1621
2026-01-30 05:33:11 +05:30
tanzhenxin
0eb94a2957
Merge pull request #1539 from xuewenjie123/feature/add-context-window-size-config
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
Add contextWindowSize Configuration Support
2026-01-29 21:28:28 +08:00
tanzhenxin
a41e946dcc test: fix Footer and tokenLimits test failures
- Footer.test.tsx: provide contextWindowSize in mock config to match
  Footer component's new requirement for displaying context usage
- tokenLimits.test.ts: consolidate Kimi K2 tests and update expectations
  to 256K for all variants to match the implementation
2026-01-29 21:13:12 +08:00
tanzhenxin
d67206819a fix(contextWindowSize): fix context window size update on model switch and ACP agent config priority
- Fix contextWindowSize not updating when switching models via setModel()
- Fix ACP agent to respect provider-configured contextWindowSize before auto-detection
- Simplify getTruncateToolOutputThreshold to use static threshold
- Add support for GLM-4.7, Kimi-2.5, and MiniMax-M2.1 models
- Update context usage display to require explicit contextWindowSize

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-01-29 20:51:03 +08:00
宇溯
438ae0bc0f remove useless comment 2026-01-29 04:19:49 -08:00
宇溯
2b91fdbc7f fix model info not updating on top right banner 2026-01-29 04:04:52 -08:00