@tencent-ai/codebuddy-code 2.110.0-next.4c26008.202606252235 → 2.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/dist/codebuddy-headless.js +12 -12
- package/dist/codebuddy.js +14 -14
- package/dist/web-ui/docs/cn/cli/cli-reference.md +2 -0
- package/dist/web-ui/docs/cn/cli/common-workflows.md +1 -2
- package/dist/web-ui/docs/cn/cli/costs.md +1 -1
- package/dist/web-ui/docs/cn/cli/hooks.md +32 -0
- package/dist/web-ui/docs/cn/cli/installation.md +7 -1
- package/dist/web-ui/docs/cn/cli/interactive-mode.md +16 -8
- package/dist/web-ui/docs/cn/cli/keybindings.md +2 -2
- package/dist/web-ui/docs/cn/cli/permission-modes.md +2 -1
- package/dist/web-ui/docs/cn/cli/quickstart.md +3 -4
- package/dist/web-ui/docs/cn/cli/release-notes/README.md +4 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.109.1.md +21 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.109.2.md +21 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.109.3.md +23 -0
- package/dist/web-ui/docs/cn/cli/release-notes/v2.110.0.md +39 -0
- package/dist/web-ui/docs/cn/cli/slash-commands.md +5 -0
- package/dist/web-ui/docs/cn/cli/troubleshooting.md +93 -0
- package/dist/web-ui/docs/en/cli/cli-reference.md +2 -0
- package/dist/web-ui/docs/en/cli/common-workflows.md +1 -2
- package/dist/web-ui/docs/en/cli/costs.md +2 -2
- package/dist/web-ui/docs/en/cli/hooks.md +35 -3
- package/dist/web-ui/docs/en/cli/installation.md +6 -0
- package/dist/web-ui/docs/en/cli/interactive-mode.md +17 -9
- package/dist/web-ui/docs/en/cli/keybindings.md +2 -2
- package/dist/web-ui/docs/en/cli/permission-modes.md +2 -1
- package/dist/web-ui/docs/en/cli/quickstart.md +3 -4
- package/dist/web-ui/docs/en/cli/release-notes/README.md +9 -5
- package/dist/web-ui/docs/en/cli/release-notes/v2.109.1.md +21 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.109.2.md +21 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.109.3.md +23 -0
- package/dist/web-ui/docs/en/cli/release-notes/v2.110.0.md +39 -0
- package/dist/web-ui/docs/en/cli/slash-commands.md +5 -0
- package/dist/web-ui/docs/en/cli/troubleshooting.md +93 -0
- package/dist/web-ui/docs/search-index-en.json +1 -1
- package/dist/web-ui/docs/search-index-zh.json +1 -1
- package/dist/web-ui/docs/sidebar-en.json +1 -1
- package/dist/web-ui/docs/sidebar-zh.json +1 -1
- package/lib/node/index.js +30 -0
- package/package.json +2 -3
- package/product.cloudhosted.json +2 -2
- package/product.internal.json +2 -2
- package/product.ioa.json +2 -2
- package/product.json +2 -2
- package/product.selfhosted.json +2 -2
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
| `Ctrl+O` | Toggle verbose output | Display detailed tool usage and execution information | ✅ Supported |
|
|
19
19
|
| `Ctrl+R` | Reverse search command history | Interactive search of previous commands | ✅ Supported |
|
|
20
20
|
| `Ctrl+V` (macOS/Linux) or `Alt+V` (Windows) | Paste text or image from clipboard; on Windows, `Alt+V` is recommended for a more reliable experience when pasting large blocks of text | Paste text, image, or image file path | ✅ Supported |
|
|
21
|
-
| `Up/Down Arrow Keys` | Navigate command history | Recall previous inputs
|
|
21
|
+
| `Up/Down Arrow Keys` | Navigate command history | Recall previous inputs; when queued messages exist, `Up` will prioritize pulling queued messages back to the input box for editing | ✅ Supported |
|
|
22
22
|
| `Esc` + `Esc` | Rewind code/conversation | Restore code and/or conversation to previous state (requires pressing ESC twice consecutively when the input box is empty) | ✅ Supported |
|
|
23
23
|
| `Tab` | Toggle thinking mode | Switch between thinking on and thinking off | ✅ Supported |
|
|
24
|
-
| `Shift+Tab` (
|
|
24
|
+
| `Shift+Tab` (all platforms, Windows also supports `Alt+M`) | Toggle permission mode | Cycle between `default`, `bypassPermissions`, `acceptEdits`, `auto` (when available), `plan`, `delegate` | ✅ Supported |
|
|
25
25
|
| `Option+P` (macOS) or `Alt+P` (Windows/Linux) | Switch model | Quickly open model selection panel | ✅ Supported |
|
|
26
26
|
|
|
27
27
|
> **Notes:**
|
|
28
28
|
> - `Esc` + `Esc` rewind functionality is now supported: when the input box is empty, pressing the ESC key twice consecutively activates the `/rewind` feature, allowing you to quickly revert code or conversation to a previous state
|
|
29
29
|
> - `Tab` key in CodeBuddy Code is primarily used for auto-completion, with partial support for thinking mode toggle
|
|
30
|
-
> - `Shift+Tab` (
|
|
30
|
+
> - `Shift+Tab` is used to toggle permission modes (all platforms, Windows also supports `Alt+M` as an alias). The current cycle order is: `default → bypassPermissions → acceptEdits → auto (when available) → plan → delegate`. `dontAsk` is not in the keyboard cycle; it must be entered via `--permission-mode dontAsk` or settings. Customizable via `~/.codebuddy/keybindings.json`
|
|
31
31
|
|
|
32
32
|
### Multi-line Input
|
|
33
33
|
|
|
@@ -122,6 +122,14 @@ CodeBuddy Code maintains command history for the current session:
|
|
|
122
122
|
* Navigate using Up/Down arrow keys (see keyboard shortcuts above)
|
|
123
123
|
* **Note**: History expansion (`!`) is disabled by default
|
|
124
124
|
|
|
125
|
+
### Editing Queued Messages
|
|
126
|
+
|
|
127
|
+
When the Agent is responding, messages you type and submit will enter a queue, displayed above the input box. At this point, if the input box is empty, pressing the `Up` arrow key will pull queued messages back to the input box for continued editing (multiple queued messages are merged in send order, joined by newlines):
|
|
128
|
+
|
|
129
|
+
* When the input box is empty and there are editable queued messages, a "Press ↑ to edit queued messages" prompt will be displayed
|
|
130
|
+
* System-injected queue items (async task notifications, channel messages, teammate messages, etc.) will not be pulled back to the input box and will remain in the queue for automatic processing
|
|
131
|
+
* If you are already using `Up`/`Down` to browse history, the arrow keys will continue to navigate history and will not interrupt
|
|
132
|
+
|
|
125
133
|
### Reverse Search with Ctrl+R
|
|
126
134
|
|
|
127
135
|
Press `Ctrl+R` to interactively search your command history:
|
|
@@ -153,7 +161,7 @@ To run a command in the background, you can:
|
|
|
153
161
|
|
|
154
162
|
**Key features:**
|
|
155
163
|
|
|
156
|
-
* Output is buffered and CodeBuddy can retrieve it using the
|
|
164
|
+
* Output is buffered and CodeBuddy can retrieve it using the TaskOutput tool
|
|
157
165
|
* Background tasks have unique IDs for tracking and output retrieval
|
|
158
166
|
* Background tasks are automatically cleaned up when CodeBuddy Code exits
|
|
159
167
|
|
|
@@ -192,14 +200,14 @@ CodeBuddy Code supports multiple permission modes to control how tool usage is a
|
|
|
192
200
|
|
|
193
201
|
| Mode | Description | Toggle Shortcut |
|
|
194
202
|
| :------------------------- | :----------------------------------------------------------------------- | :------------------ |
|
|
195
|
-
| **Normal Mode (Default)** | Asks for confirmation of tool usage based on permission rules | `Shift+Tab`
|
|
196
|
-
| **Auto-Accept Edits Mode** | Automatically approves file editing operations (Edit/Write), other tools still require confirmation | `Shift+Tab`
|
|
197
|
-
| **Skip Permissions Mode** | Bypasses all permission checks. Recommended for use only in sandboxes without internet access | `Shift+Tab`
|
|
198
|
-
| **Plan Mode** | AI will formulate a plan and wait for approval before execution | `Shift+Tab`
|
|
203
|
+
| **Normal Mode (Default)** | Asks for confirmation of tool usage based on permission rules | `Shift+Tab` |
|
|
204
|
+
| **Auto-Accept Edits Mode** | Automatically approves file editing operations (Edit/Write), other tools still require confirmation | `Shift+Tab` |
|
|
205
|
+
| **Skip Permissions Mode** | Bypasses all permission checks. Recommended for use only in sandboxes without internet access | `Shift+Tab` |
|
|
206
|
+
| **Plan Mode** | AI will formulate a plan and wait for approval before execution | `Shift+Tab` |
|
|
199
207
|
|
|
200
208
|
### Toggling Permission Modes
|
|
201
209
|
|
|
202
|
-
* Use `Shift+Tab`
|
|
210
|
+
* Use `Shift+Tab` to switch between modes (all platforms, Windows also supports `Alt+M` as an alias). Customizable via `~/.codebuddy/keybindings.json`
|
|
203
211
|
* Specify startup mode using the `--permission-mode` command line argument:
|
|
204
212
|
```bash
|
|
205
213
|
codebuddy --permission-mode acceptEdits
|
|
@@ -71,7 +71,7 @@ Available in the `Chat` context:
|
|
|
71
71
|
| `chat:cancel` | Escape | Cancel current input, or interrupt the current foreground request |
|
|
72
72
|
| `chat:submit` | Enter | Send message |
|
|
73
73
|
| `chat:killAgents` | Ctrl+X Ctrl+K | Kill all background agents |
|
|
74
|
-
| `chat:cycleMode` | Shift+Tab
|
|
74
|
+
| `chat:cycleMode` | Shift+Tab (Windows also supports Alt+M) | Cycle permission mode |
|
|
75
75
|
| `chat:modelPicker` | Meta+P | Open model picker |
|
|
76
76
|
| `chat:thinkingToggle` | Meta+T | Toggle extended thinking |
|
|
77
77
|
| `chat:undo` | Ctrl+_, Ctrl+Shift+- | Undo |
|
|
@@ -79,7 +79,7 @@ Available in the `Chat` context:
|
|
|
79
79
|
| `chat:stash` | Ctrl+S | Stash current input |
|
|
80
80
|
| `chat:imagePaste` | Ctrl+V (Windows: Alt+V) | Paste image |
|
|
81
81
|
|
|
82
|
-
\*
|
|
82
|
+
\*All platforms use Shift+Tab as the primary shortcut. On Windows, Alt+M is also available as an alias for terminals that do not support Shift+Tab.
|
|
83
83
|
|
|
84
84
|
### Autocomplete Actions
|
|
85
85
|
|
|
@@ -66,7 +66,8 @@ Notes:
|
|
|
66
66
|
|
|
67
67
|
- `auto` only appears in the cycle when available in the current environment
|
|
68
68
|
- `dontAsk` is **not** in the keyboard cycle; it can only be entered via CLI, settings, or SDK / IDE control signals
|
|
69
|
-
- On Windows,
|
|
69
|
+
- On Windows, both `Shift+Tab` and `Alt+M` can trigger this (`Alt+M` is a compatibility alias)
|
|
70
|
+
- You can customize the shortcut via `~/.codebuddy/keybindings.json`
|
|
70
71
|
|
|
71
72
|
### Status Bar Indicator
|
|
72
73
|
|
|
@@ -198,7 +198,7 @@ codebuddy -p "Add unit tests for all files in the services directory" -y
|
|
|
198
198
|
#### Permissions and Modes
|
|
199
199
|
| Shortcut | Function |
|
|
200
200
|
|--------|------|
|
|
201
|
-
| `Shift+Tab` (
|
|
201
|
+
| `Shift+Tab` (Windows also supports `Alt+M`) | Toggle permission mode (default → bypass → accept → plan) |
|
|
202
202
|
|
|
203
203
|
#### Editing Features
|
|
204
204
|
| Shortcut | Function |
|
|
@@ -213,15 +213,14 @@ codebuddy -p "Add unit tests for all files in the services directory" -y
|
|
|
213
213
|
#### Panel Operations
|
|
214
214
|
| Shortcut | Function |
|
|
215
215
|
|--------|------|
|
|
216
|
-
| `↑/↓` | Navigate options in panel |
|
|
216
|
+
| `↑/↓` or `j/k` | Navigate options in panel (Vim-style supported) |
|
|
217
217
|
| `Enter` | Select current item |
|
|
218
218
|
| `Space` | Toggle selection (multi-select panels) |
|
|
219
|
-
| `
|
|
219
|
+
| `x` | Terminate selected background task |
|
|
220
220
|
|
|
221
221
|
#### Special Functions
|
|
222
222
|
| Shortcut | Function |
|
|
223
223
|
|--------|------|
|
|
224
|
-
| `j/k` | Vim-style up/down navigation (supported in some panels) |
|
|
225
224
|
| `Ctrl+O` | View thinking details panel |
|
|
226
225
|
|
|
227
226
|
When the terminal displays a "Thinking" indicator, you can use `Ctrl+O` to open the full reasoning content, and press `Ctrl+O` again to exit.
|
|
@@ -2,21 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
Release notes for CodeBuddy Code, covering feature updates and improvements for end users.
|
|
4
4
|
|
|
5
|
-
## About Release Notes
|
|
5
|
+
## 📖 About Release Notes
|
|
6
6
|
|
|
7
7
|
Release Notes document user-visible changes in each version, including:
|
|
8
|
-
- New Features
|
|
9
|
-
- Improvements
|
|
10
|
-
- Bug Fixes
|
|
8
|
+
- ✨ New Features
|
|
9
|
+
- 🔧 Improvements
|
|
10
|
+
- 🐛 Bug Fixes
|
|
11
11
|
|
|
12
12
|
Difference from CHANGELOG.md:
|
|
13
13
|
- **Release Notes**: User-facing, emphasizing feature value and user experience
|
|
14
14
|
- **CHANGELOG**: Developer-facing, recording technical details and code changes
|
|
15
15
|
|
|
16
|
-
## Version History
|
|
16
|
+
## 📋 Version History
|
|
17
17
|
|
|
18
18
|
<!-- New versions are automatically added here -->
|
|
19
19
|
|
|
20
|
+
- [v2.110.0](./v2.110.0.md) - 2026-06-25
|
|
21
|
+
- [v2.109.3](./v2.109.3.md) - 2026-06-23
|
|
22
|
+
- [v2.109.2](./v2.109.2.md) - 2026-06-23
|
|
23
|
+
- [v2.109.1](./v2.109.1.md) - 2026-06-21
|
|
20
24
|
- [v2.109.0](./v2.109.0.md) - 2026-06-19
|
|
21
25
|
|
|
22
26
|
- [v2.108.2](./v2.108.2.md) - 2026-06-18
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 🚀 CodeBuddy Code v2.109.1 Release
|
|
2
|
+
|
|
3
|
+
## 📦 Version Information
|
|
4
|
+
|
|
5
|
+
| Component | Version |
|
|
6
|
+
|------|------|
|
|
7
|
+
| CodeBuddy Code CLI | v2.109.1 |
|
|
8
|
+
| Agent SDK JS | v0.3.187 |
|
|
9
|
+
| Agent SDK Python | v0.3.186 |
|
|
10
|
+
|
|
11
|
+
## 🐛 Bug Fixes
|
|
12
|
+
|
|
13
|
+
- **Model selection fallback logic optimization**: Fixed an issue where Compact compression and sub-agents incorrectly fell back to the first item in the model list when matching failed, now trusting user selection and falling back to the current main model
|
|
14
|
+
- **Model display name matching**: Model availability check now supports matching by display name, resolving failures when passing display names via `--model`
|
|
15
|
+
- **Channel source telemetry completeness**: Fixed missing `downloadChannel` common parameter in standard and model telemetry, ensuring channel package download data can be attributed by source
|
|
16
|
+
|
|
17
|
+
## 📝 Documentation Updates
|
|
18
|
+
|
|
19
|
+
- **Prewarm process documentation**: Added Prewarm process usage guide documentation
|
|
20
|
+
- **Release Notes archive**: Synced 13 release notes from v2.106.0 to v2.109.0
|
|
21
|
+
- **Incremental documentation translation**: Updated English translations for 8 documents including CLI reference, environment variables, permission modes, and settings
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 🚀 CodeBuddy Code v2.109.2 Release
|
|
2
|
+
|
|
3
|
+
## 📦 Version Information
|
|
4
|
+
|
|
5
|
+
| Component | Version |
|
|
6
|
+
|------|------|
|
|
7
|
+
| CodeBuddy Code CLI | v2.109.2 |
|
|
8
|
+
| Agent SDK JS | v0.3.188 |
|
|
9
|
+
| Agent SDK Python | v0.3.187 |
|
|
10
|
+
|
|
11
|
+
## 🔧 Improvements
|
|
12
|
+
|
|
13
|
+
- **More prominent Auto mode prompt**: The status prompt color for auto permission mode has been changed to warning color, consistent with don't-ask mode, better reminding users they are in a high-permission mode
|
|
14
|
+
- **Telemetry common parameter completion**: QIMEI36 is now passed through in CLI runtime launched by WorkBuddy Desktop, completing common parameters for conversation, plugin status, and enterprise policy telemetry, improving data completeness
|
|
15
|
+
|
|
16
|
+
## 🐛 Bug Fixes
|
|
17
|
+
|
|
18
|
+
- **Expert team plan mode permission state loss**: Fixed plan mode permission state saving logic in expert team scenarios, ensuring `prePlanPermissionMode` is correctly saved when a session starts directly in Plan mode
|
|
19
|
+
- **Stop Hook false trigger continuation**: Fixed prompt-type Stop hook incorrectly triggering agent continuation when conditions are not met; the agent now correctly stops as expected
|
|
20
|
+
- **MCP OAuth token exchange failure**: Fixed an issue where some servers lost the `resource` parameter during the token exchange phase, preventing login completion even after successful authorization
|
|
21
|
+
- **Prewarm session missing built-in tools**: Fixed missing built-in tools (file rendering, built-in browser automation, etc.) in sessions when process prewarming is enabled. The standby phase no longer prematurely initializes the connection proxy with an empty configuration, avoiding contamination of the subsequent tool index
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# 🚀 CodeBuddy Code v2.109.3 Release
|
|
2
|
+
|
|
3
|
+
## 📦 Version Information
|
|
4
|
+
|
|
5
|
+
| Component | Version |
|
|
6
|
+
|------|------|
|
|
7
|
+
| CodeBuddy Code CLI | v2.109.3 |
|
|
8
|
+
| Agent SDK JS | v0.3.189 |
|
|
9
|
+
| Agent SDK Python | v0.3.188 |
|
|
10
|
+
|
|
11
|
+
## ✨ New Features
|
|
12
|
+
|
|
13
|
+
- **Prompt Stop Hook supports continueOnBlock**: Added `continueOnBlock` configuration option. When set to `true`, prompt-type Stop hooks can drive the Agent to continue working when conditions are not met, achieving a continuous work effect similar to `/goal`
|
|
14
|
+
|
|
15
|
+
## 🐛 Bug Fixes
|
|
16
|
+
|
|
17
|
+
- **Login link display optimization**: Fixed a timing issue with login page URL link display, ensuring users can see a copyable login link before the browser opens
|
|
18
|
+
- **Checkpoint recovery**: Fixed an issue where v1 version files were incorrectly skipped and not restored when reverting to an earlier checkpoint
|
|
19
|
+
- **MCP configuration loading**: Fixed local `.mcp.json` being incorrectly ignored in headless/server mode; now only uses the specified MCP servers when `--strict-mcp-config` is explicitly passed
|
|
20
|
+
- **Session title recovery**: Fixed issues with duplicate title extraction or stale placeholder titles after resuming image-type sessions, preventing old titles from being abnormally overwritten
|
|
21
|
+
- **MCP connection idempotency**: Fixed an issue where concurrent/repeated connections to the same connection proxy caused it to be misjudged as disconnected (because the underlying transport was already started), resulting in temporary loss of tools from connected services
|
|
22
|
+
- **Prewarm process CLI argument loss**: Fixed an issue where CLI configurations like `--model` / `--effort` / `--settings` were silently discarded after a prewarmed process was activated; now subscribes to configuration change streams for automatic re-parsing and refresh
|
|
23
|
+
- **Permission mode race condition fix**: Fixed permission mode being incorrectly overwritten in Desktop sidecar mode, preventing read-only tools from triggering permission deadlocks in Expert scenarios
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# 🚀 CodeBuddy Code v2.110.0 Release
|
|
2
|
+
|
|
3
|
+
## 📦 Version Information
|
|
4
|
+
|
|
5
|
+
| Component | Version |
|
|
6
|
+
|------|------|
|
|
7
|
+
| CodeBuddy Code CLI | v2.110.0 |
|
|
8
|
+
| Agent SDK JS | v0.3.190 |
|
|
9
|
+
| Agent SDK Python | v0.3.189 |
|
|
10
|
+
|
|
11
|
+
## ✨ New Features
|
|
12
|
+
|
|
13
|
+
### Five New Slash Commands
|
|
14
|
+
|
|
15
|
+
This release adds 5 practical slash commands covering common development scenarios such as code review, verification, and debugging:
|
|
16
|
+
|
|
17
|
+
- **`/simplify`** — Reviews and cleans up changed code from four perspectives: reusability, simplification, efficiency, and abstraction levels, helping you keep code concise
|
|
18
|
+
- **`/code-review`** — Reviews correctness bugs and code quality issues in the current diff, supports `--fix` for automatic fixes and `--comment` to post PR comments directly
|
|
19
|
+
- **`/verify`** — Verifies that code changes work as expected, automatically runs tests and build checks to ensure changes don't break existing functionality
|
|
20
|
+
- **`/copy`** — Copies the most recent AI response to the system clipboard, supports specifying the Nth response via parameter for quick content reference
|
|
21
|
+
- **`/debug`** — Enables debug logging with one command to help diagnose abnormal issues encountered during sessions
|
|
22
|
+
|
|
23
|
+
## 🔧 Improvements
|
|
24
|
+
|
|
25
|
+
- **Tool name matching**: Tool name matching now supports case-insensitive comparison. When the model returns a tool name with inconsistent casing compared to the registered name (e.g., `Powershell` vs `PowerShell`), the engineering layer automatically falls back to matching, avoiding tool call failures
|
|
26
|
+
- **Windows Git Bash hint**: On Windows platforms, a Git Bash syntax hint is appended to the Bash tool description, guiding the model to use POSIX shell syntax (`/dev/null` instead of `NUL`, `$VAR` instead of `%VAR%`), improving Windows user experience
|
|
27
|
+
- **Permission mode copy**: Added UI text for "Auto" and "Do Not Disturb" permission modes with clearer and more intuitive descriptions
|
|
28
|
+
|
|
29
|
+
## 🐛 Bug Fixes
|
|
30
|
+
|
|
31
|
+
- **ACP conversation rendering**: Fixed an issue where the client didn't display subsequent content after conversation completion when the model had returned final text but streaming body was missing
|
|
32
|
+
- **Background task notifications**: Fixed background task completion notifications not being forwarded to the client in ACP modes like WorkBuddy / Web UI; background command results now display correctly after execution
|
|
33
|
+
- **Log completeness**: Fixed buffered log loss when headless mode is terminated by signals, ensuring `~/.codebuddy/logs` is fully flushed on all exit paths
|
|
34
|
+
- **MCP tool hook interception**: Fixed PreToolUse hook not taking effect for MCP tool calls; deny rules now correctly block MCP tool execution
|
|
35
|
+
- **Plugin Hook type support**: Fixed prompt/agent/http type hooks in plugin `hooks.json` being silently discarded; plugins can now correctly declare all 4 hook types
|
|
36
|
+
- **Session title generation**: Fixed sessions permanently having no title after the first title generation failure; now retries on user submissions until generation succeeds, and already generated or user-customized titles are no longer abnormally overwritten
|
|
37
|
+
- **Telemetry reporting**: Fixed request chain IDs being short-circuited by stale state during tool call continuations, causing traces to miss subsequent model turns after tool call nodes
|
|
38
|
+
- **Session run state**: Fixed late-arriving end signals from previous turns potentially clearing new turn run state when queue or team messages follow in quick succession, preventing loading state disappearance or subsequent response stalls
|
|
39
|
+
- **Canvas terminal stability**: Fixed terminal content going blank after switching views on the canvas page; terminal state is now fully preserved across view switches
|
|
@@ -51,6 +51,11 @@ These commands are used to manage your CodeBuddy Code sessions. Here is the curr
|
|
|
51
51
|
| `/reload-plugins` | | ✅ Supported | Reload all plugins (Skills, Agents, Hooks, MCP/LSP servers, etc.) without restarting. |
|
|
52
52
|
| `/skills` | | ✅ Supported | View all currently loaded Skills, including user-level, project-level, and plugin-level Skills, and display estimated token count. See [Skills Documentation](skills.md) for details. |
|
|
53
53
|
| `/insights` | | ✅ Supported | Generate AI-driven usage insight reports, analyzing your CodeBuddy Code usage patterns, interaction style, project domains, friction points, and other dimensions, generating an HTML report viewable in the browser. |
|
|
54
|
+
| `/simplify` | `[target]` | ✅ Supported | Clean up changed code without altering behavior. Automatically launches 4 parallel Agents to review code from four perspectives: reuse, simplification, efficiency, and abstraction levels, then consolidates and applies fixes. Only performs quality cleanup, not correctness bug finding (use `/code-review` for that). |
|
|
55
|
+
| `/code-review` | `[--fix] [--comment] [target]` | ✅ Supported | Review the current diff for correctness bugs and code quality issues. Supports `--fix` to automatically fix found issues, `--comment` to publish findings as PR inline comments. Findings are sorted by severity and include file, line number, severity level, and fix suggestions. |
|
|
56
|
+
| `/verify` | `[description]` | ✅ Supported | Verify that code changes work as expected. Automatically identifies change types, runs relevant test suites, build checks, and type checks, reports test results and flags failures or warnings. |
|
|
57
|
+
| `/copy` | `[N]` | ✅ Supported | Copy the most recent AI response to the system clipboard. Optional parameter N specifies which response (1 = most recent, 2 = second most recent, and so on). Also writes to a temporary file `/tmp/codebuddy/response.md` as backup. |
|
|
58
|
+
| `/debug` | `[issue description]` | ✅ Supported | Enable debug logging and help diagnose session issues. Automatically reads the tail of the current session's debug log (last 20 lines). If debug logging is not enabled, it is automatically turned on. Analyzes errors and warnings in the log and provides fix suggestions. |
|
|
54
59
|
|
|
55
60
|
description: "Run unit tests for my project and report results."
|
|
56
61
|
argument-hint: "[test-file]"
|
|
@@ -138,6 +138,99 @@ npm config get registry
|
|
|
138
138
|
|
|
139
139
|
If you regularly use a third-party mirror, you can temporarily specify the official registry in the update command without modifying the global configuration.
|
|
140
140
|
|
|
141
|
+
### npm Install Succeeds but Old Version Still Executes
|
|
142
|
+
|
|
143
|
+
**Symptom**: `npm install -g @tencent-ai/codebuddy-code@latest` shows installation success, but `codebuddy --version` still shows the old version.
|
|
144
|
+
|
|
145
|
+
**Cause**: Multiple `codebuddy` executables exist on the system, and the terminal finds the old version first. Common scenarios:
|
|
146
|
+
|
|
147
|
+
- Installed via both npm and Homebrew simultaneously, with Homebrew version having higher priority
|
|
148
|
+
- Switched Node versions using nvm; the new version was installed under a different Node version's bin directory
|
|
149
|
+
- Leftover old native binary files on the system (`~/.local/bin/codebuddy`)
|
|
150
|
+
- Multiple paths in PATH containing different versions of `codebuddy`
|
|
151
|
+
|
|
152
|
+
**Troubleshooting steps**:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# 1. Confirm which codebuddy is actually being executed
|
|
156
|
+
which codebuddy
|
|
157
|
+
# Or view all matches
|
|
158
|
+
which -a codebuddy
|
|
159
|
+
|
|
160
|
+
# 2. Confirm npm global installation path
|
|
161
|
+
npm prefix -g
|
|
162
|
+
# npm-installed codebuddy is under $(npm prefix -g)/bin/
|
|
163
|
+
|
|
164
|
+
# 3. Compare paths
|
|
165
|
+
# If the path from "which codebuddy" ≠ $(npm prefix -g)/bin/codebuddy,
|
|
166
|
+
# it means the terminal is not executing the npm-installed version
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**Solutions**:
|
|
170
|
+
|
|
171
|
+
**Case 1: Both Homebrew and npm installed**
|
|
172
|
+
|
|
173
|
+
Homebrew's `/opt/homebrew/bin` (macOS Apple Silicon) or `/usr/local/bin` (Intel Mac) typically has higher priority in PATH than npm's global directory.
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# Option A: Keep only one installation method (recommended)
|
|
177
|
+
brew uninstall codebuddy-code # Uninstall Homebrew version, use npm version
|
|
178
|
+
# Or
|
|
179
|
+
npm uninstall -g @tencent-ai/codebuddy-code # Uninstall npm version, use Homebrew version
|
|
180
|
+
brew upgrade codebuddy-code
|
|
181
|
+
|
|
182
|
+
# Option B: Keep both installations but specify priority
|
|
183
|
+
# Adjust PATH order in ~/.zshrc or ~/.bashrc, placing the npm path first:
|
|
184
|
+
export PATH="$(npm prefix -g)/bin:$PATH"
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**Case 2: nvm Node version switch**
|
|
188
|
+
|
|
189
|
+
npm global packages are installed under the current Node version's directory. After switching Node versions, global packages installed under previous versions are unavailable.
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
# Check current Node version
|
|
193
|
+
node -v
|
|
194
|
+
|
|
195
|
+
# Reinstall under the current version
|
|
196
|
+
npm install -g @tencent-ai/codebuddy-code@latest
|
|
197
|
+
|
|
198
|
+
# Or switch back to the Node version used during installation
|
|
199
|
+
nvm use <version-used-during-installation>
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
**Case 3: Leftover old native binary files**
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
# Check if a native binary version exists
|
|
206
|
+
ls -la ~/.local/bin/codebuddy
|
|
207
|
+
|
|
208
|
+
# If it exists and is not needed, delete it
|
|
209
|
+
rm ~/.local/bin/codebuddy
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**Case 4: Shell cached old path**
|
|
213
|
+
|
|
214
|
+
Some shells cache command paths. After installing a new version, you need to refresh the cache:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
hash -r # bash / zsh clear command cache
|
|
218
|
+
# Or simply restart the terminal
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
**Quick verification**:
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
# One command to complete troubleshooting
|
|
225
|
+
echo "Execution path: $(which codebuddy)" && \
|
|
226
|
+
echo "Current version: $(codebuddy --version 2>/dev/null || echo 'not found')" && \
|
|
227
|
+
echo "npm install path: $(npm prefix -g)/bin/codebuddy" && \
|
|
228
|
+
echo "npm version: $(cat "$(npm prefix -g)/lib/node_modules/@tencent-ai/codebuddy-code/package.json" 2>/dev/null | grep '"version"' || echo 'not installed via npm')" && \
|
|
229
|
+
echo "All codebuddy: $(which -a codebuddy 2>/dev/null || where codebuddy 2>/dev/null)"
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
If the issue persists after troubleshooting, please submit the output of the above commands to the [Issues page](https://cnb.cool/codebuddy/codebuddy-code/-/issues).
|
|
233
|
+
|
|
141
234
|
---
|
|
142
235
|
|
|
143
236
|
## Migrating from Claude Code
|