@tencent-ai/agent-sdk 0.3.165 → 0.3.166
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/cli/CHANGELOG.md +25 -0
- package/cli/bin/codebuddy +35 -0
- package/cli/dist/codebuddy-headless.js +39 -39
- package/cli/dist/web-ui/docs/cn/cli/env-vars.md +2 -1
- package/cli/dist/web-ui/docs/cn/cli/release-notes/README.md +7 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.100.0.md +42 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.100.1.md +13 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.100.2.md +18 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.101.0.md +23 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.102.0.md +39 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.103.0.md +37 -0
- package/cli/dist/web-ui/docs/cn/cli/release-notes/v2.103.1.md +31 -0
- package/cli/dist/web-ui/docs/cn/cli/troubleshooting.md +60 -0
- package/cli/dist/web-ui/docs/en/cli/env-vars.md +2 -1
- package/cli/dist/web-ui/docs/en/cli/release-notes/README.md +7 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.100.0.md +42 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.100.1.md +13 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.100.2.md +18 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.101.0.md +23 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.102.0.md +39 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.103.0.md +37 -0
- package/cli/dist/web-ui/docs/en/cli/release-notes/v2.103.1.md +31 -0
- package/cli/dist/web-ui/docs/en/cli/troubleshooting.md +60 -0
- package/cli/dist/web-ui/docs/search-index-en.json +1 -1
- package/cli/dist/web-ui/docs/search-index-zh.json +1 -1
- package/cli/dist/web-ui/docs/sidebar-en.json +1 -1
- package/cli/dist/web-ui/docs/sidebar-zh.json +1 -1
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +12 -10
- package/cli/product.internal.json +5 -5
- package/cli/product.ioa.json +5 -4
- package/cli/product.json +3 -2
- package/cli/product.selfhosted.json +2 -2
- package/package.json +1 -1
|
@@ -58,6 +58,50 @@ netstat -an | grep PORT_NUMBER
|
|
|
58
58
|
|
|
59
59
|
---
|
|
60
60
|
|
|
61
|
+
## Permission Confirmation Dialog Unresponsive / Only ESC Closes It
|
|
62
|
+
|
|
63
|
+
**Symptom**: The TUI shows a tool permission confirmation dialog. Pressing number keys / Enter to confirm doesn't dismiss the dialog, but ESC closes it normally — and after closing, the task has actually already started executing.
|
|
64
|
+
|
|
65
|
+
### Log Location
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
ls -t ~/.codebuddy/logs/codebuddy-*.log | head -1 # latest log
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
You can relocate the entire config directory via the `CODEBUDDY_CONFIG_DIR` environment variable.
|
|
72
|
+
|
|
73
|
+
### Key TAGs (in chronological order)
|
|
74
|
+
|
|
75
|
+
A normal confirmation flow should produce the following sequence (`grep -E '\[Approve\]|\[Reject\]|\[dequeue\]|\[tool-permission\]'`):
|
|
76
|
+
|
|
77
|
+
| TAG | Meaning |
|
|
78
|
+
|---|---|
|
|
79
|
+
| `[tool-permission] ASK ...` | A tool was intercepted and requires approval |
|
|
80
|
+
| `[HandleInterruptions] Approval dialog shown` | TUI has displayed the dialog |
|
|
81
|
+
| `[Approve] User approved tool: <name>` | User clicked confirm |
|
|
82
|
+
| `[Approve] Deferred resolved` | Backend promise has been resolved (task starts executing here) |
|
|
83
|
+
| `[dequeue] Queue empty, clearing interruptionSubject` | `pending$` cleared, dialog should disappear |
|
|
84
|
+
| `[Approve] Success: ... interruption dequeued` | Full flow finished |
|
|
85
|
+
|
|
86
|
+
The ESC path replaces `[Approve]` with `[Reject]`.
|
|
87
|
+
|
|
88
|
+
### Symptom -> Inference
|
|
89
|
+
|
|
90
|
+
| You see | Inference |
|
|
91
|
+
|---|---|
|
|
92
|
+
| Full TAG sequence present but dialog doesn't disappear | UI rendering is stuck (e.g., IDE closeTab RPC blocking await) |
|
|
93
|
+
| `[Approve] User approved` present but `[dequeue]` missing | `findSessionByItem` failed; nearby logs will show `[Approve] Failed: Cannot find session` |
|
|
94
|
+
| `dequeue Start` present but no `Queue empty` | `interruptionQueues` cannot fetch the queue (multi-session mismatch) |
|
|
95
|
+
| No `[tool-permission] ASK` at all | The tool didn't go through approval — possibly `BypassPermissions` or allowed by allow rules |
|
|
96
|
+
| `[tool-permission] ASK` present but no `Approval dialog shown` | TUI didn't subscribe to `pending$` (teammate concurrent session mismatch) |
|
|
97
|
+
| `[Approve] Failed: No pending deferred found` | Deferred was consumed twice |
|
|
98
|
+
|
|
99
|
+
### Minimum Info to Report to Developers
|
|
100
|
+
|
|
101
|
+
30 consecutive lines of logs around the timestamp of the `[Approve]` / `[Reject]` / `[dequeue]` TAGs are enough to determine whether the UI didn't refresh, the backend didn't dequeue, or the IDE RPC is stuck.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
61
105
|
## Updates
|
|
62
106
|
|
|
63
107
|
### Auto Updates
|
|
@@ -78,6 +122,22 @@ codebuddy --version # Current version
|
|
|
78
122
|
npm view @tencent-ai/codebuddy-code version # Latest version
|
|
79
123
|
```
|
|
80
124
|
|
|
125
|
+
### Cannot Update to the Latest Version
|
|
126
|
+
|
|
127
|
+
If `codebuddy update` or `npm install -g @tencent-ai/codebuddy-code@latest` consistently fails to fetch the latest version, the issue is usually caused by npm mirror cache delays. You can specify the official registry to retry:
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
npm install -g @tencent-ai/codebuddy-code@latest --registry=https://registry.npmjs.org/
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Check the npm registry currently configured locally:
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
npm config get registry
|
|
137
|
+
```
|
|
138
|
+
|
|
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
|
+
|
|
81
141
|
---
|
|
82
142
|
|
|
83
143
|
## Migrating from Claude Code
|