Commit graph

1988 commits

Author SHA1 Message Date
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
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
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
顾盼
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
yiliang114
3fb641ca1a feat(core, cli): add rate limit throttling retry with countdown UI
- Refactor retry utility to support GLM rate limit errors (code 1302) and TPM throttling
- Add getRateLimitRetryInfo() for unified rate-limit error detection
- Add exponential backoff for non-TPM rate limit errors
- Extend StreamEventType.RETRY with RetryInfo payload for UI feedback
- Add RetryCountdownMessage component for visual retry countdown
- Update useGeminiStream hook to handle retry events with countdown timer
- Add i18n support for rate limit messages (en/zh)
2026-02-12 16:21:10 +08:00
LaZzyMan
428901f136 fix: correct showLineNumbers default value to true
- Changed default value from false to true in settingsSchema.ts
- This aligns the schema with the actual code behavior (?? true fallback)
- Matches documentation and test expectations
- Resolves inconsistency reported in issue #1764

Fixes #1764
2026-02-12 11:42:58 +08:00
LaZzyMan
785d0ef5b7 fix: enforce plan mode restrictions in ACP sessions (issue #1806)
- Add plan mode enforcement in Session.runTool to block write tools
- Align ACP behavior with CoreToolScheduler plan mode logic
- Add test case to verify write tools are blocked in plan mode
- Fixes #1806
2026-02-12 11:29:02 +08:00
LaZzyMan
3f04217458 fix: prevent AbortSignal listener memory leak
- Add abort listener cleanup in Query.close() to prevent memory leak
- Add abort listener cleanup in ControlDispatcher.shutdown()
- Remove AbortController recreation in Session.handleInterrupt()

This fixes the MaxListenersExceededWarning that occurred when:
- Creating 11+ Query instances in SDK/non-interactive mode
- Multiple user interrupts (Ctrl+C) in interactive mode
- Intensive control request scenarios
2026-02-12 10:39:19 +08:00
mingholy.lmh
cc4ad12e06 chore: bump version to 0.10.1
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-11 19:22:31 +08:00
DragonnZhang
2421bb185b feat(insight): refactor prompts and integrate dynamic prompt retrieval 2026-02-11 19:01:47 +08:00
mingholy.lmh
a5c7f1db3b feat(i18n): add translations for "Configure authentication information for login" in multiple languages 2026-02-11 17:00:43 +08:00
mingholy.lmh
54d9073cc0 feat(auth): enhance AuthDialog with error handling and update API key link 2026-02-11 16:48:54 +08:00
mingholy.lmh
a8a05188cb feat(coding-plan): implement Coding Plan configuration management and update prompts 2026-02-11 16:18:23 +08:00
DragonnZhang
83dc4ca4ec feat(insight): add shareable card and dev environment support
Add Twitter/X-optimized share card component for exporting insights as an
image. Include Vite dev setup for local development with hot reload. Increase
DataProcessor timeout and concurrency for better reliability with large
datasets.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-02-11 16:16:54 +08:00
mingholy.lmh
5f710b5f6f fix: ui 2026-02-11 11:58:34 +08:00
mingholy.lmh
50e5cf7508 feat(ui): enhance AuthDialog with theming and documentation link 2026-02-11 11:58:34 +08:00
Mingholy
6626745197 fix: type & i18n & ut 2026-02-11 11:58:33 +08:00
mingholy.lmh
b9dd080bd1 feat: add auth entry: coding plan 2026-02-11 11:58:33 +08:00
Mingholy
169ad2d030
Merge pull request #1756 from QwenLM/feat/mcp-progress-updates
feat: add MCP tool progress update support in TUI and SDK mode
2026-02-11 11:07:20 +08:00
DragonnZhang
d61ec772a3 Refactor code structure for improved readability and maintainability 2026-02-10 18:47:30 +08:00
DragonnZhang
89cc55f9a8 feat(DataProcessor): add comprehensive test suite for DataProcessor functionality 2026-02-10 15:46:06 +08:00
DragonnZhang
fcb22a3f79 feat(insightCommand): simplify file opening by using 'open' package 2026-02-10 14:47:33 +08:00
LaZzyMan
b488126830 feat add multi-platform support 2026-02-10 14:38:01 +08:00
LaZzyMan
56030f9291 Merge branch 'main' into feat/image-attachment 2026-02-10 14:16:21 +08:00
DragonnZhang
e29aab478e feat(DataProcessor): use constant for concurrency limit in pLimit calls 2026-02-10 14:10:31 +08:00
DragonnZhang
dd56345ac6 fix: handle special case for merging function calls with args and names
Added logic to merge two function calls where the first has a name but no arguments, and the second has arguments but no name. This ensures that function calls are correctly represented when they are split across two parts.
2026-02-10 11:47:15 +08:00
LaZzyMan
662192a0b9 fix windows ci 2026-02-10 10:48:58 +08:00
tanzhenxin
d6a33dbe03
Merge pull request #1662 from QwenLM/fix/top-right-model-not-updating
fix(ui): resolve model not updating in top-right corner
2026-02-10 10:22:08 +08:00
DragonnZhang
4b95854e6c refactor(insightCommand): replace console.error with logger for better error handling 2026-02-09 20:34:53 +08:00
DragonnZhang
e66c203cb0 feat(insight): Refactor code structure for improved readability and maintainability 2026-02-09 19:09:02 +08:00
DragonnZhang
2edce464ae feat(insight): refactor InteractionStyle to include insights and update related components 2026-02-09 15:23:32 +08:00
DragonnZhang
af21e7fdd9 feat: enhance InsightPrompts and components with additional data handling
- Updated InsightPrompts to clarify user request counting guidelines.
- Modified App.js to pass new props (topGoals, topTools) to ProjectAreas and ImpressiveWorkflows components.
- Enhanced ProjectAreas and ImpressiveWorkflows components to utilize new props for improved data visualization.
- Refactored FrictionPoints component layout to use grid display for better responsiveness.
- Removed legacy insight-app.js file to streamline the codebase.
- Expanded StaticInsightTypes to include primarySuccess, outcomes, and topGoals for better data structure.
2026-02-09 15:16:30 +08:00
DragonnZhang
4c32f4b646 feat(insight): remove Team Feedback link from navigation 2026-02-09 15:16:30 +08:00
DragonnZhang
fa8d596a31 feat(insight): enhance metrics generation with progress tracking and batch processing 2026-02-09 15:16:30 +08:00
DragonnZhang
0dc359405e feat(insight): add progress tracking for insight generation and display updates 2026-02-09 15:16:29 +08:00
DragonnZhang
20de2a001a feat(insight): add satisfaction and friction data aggregation and display in insights 2026-02-09 15:16:29 +08:00
DragonnZhang
afe911d06b feat(insight): add new components for insights display and enhance styling 2026-02-09 15:16:29 +08:00
DragonnZhang
f57e2619f1 feat(insight): remove Token Usage and Achievements from report
Removes Token Usage metrics and Achievements section from the generated insight report.
- Removes calculation logic in DataProcessor
- Removes types in StaticInsightTypes
- Removes UI sections in insight-app.js
2026-02-09 15:16:29 +08:00
DragonnZhang
754125e75c feat(insight): add tracking for lines and files in analysis and enhance stats display 2026-02-09 15:16:29 +08:00
DragonnZhang
aeedec3020 feat(insight): enhance qualitative insights display and improve styling 2026-02-09 15:16:29 +08:00
DragonnZhang
9ea6c45deb feat(insight): add qualitative insights components and styles to enhance user experience 2026-02-09 15:16:29 +08:00
DragonnZhang
5a7dcce196 feat(insight): refactor data processing and add qualitative insights structure 2026-02-09 15:16:29 +08:00
DragonnZhang
f1214c90ea feat(insight): remove JSON data file generation from static insight process 2026-02-09 15:16:28 +08:00
DragonnZhang
39d2067d14 feat(insight): update static insight generator and command handling
- Refine DataProcessor and StaticInsightGenerator logic
- Update StaticInsightTypes definitions
- Enhance insight command implementation
- Update package dependencies
2026-02-09 15:16:28 +08:00
DragonnZhang
7e21ba4983 feat(insight): enhance template loading logic and add insight templates copying 2026-02-09 15:16:28 +08:00
DragonnZhang
338387f93a feat(insight): integrate JSONL file reading utility and enhance base CSS styles 2026-02-09 15:16:27 +08:00