fix: 修复 waveform_trace 工具执行失败和类型错误

- 修复 waveform_trace 工具因 stderr 输出导致的误判失败
   - 修复 messageHandler onQuestion 回调的类型签名错误
This commit is contained in:
Roe-xin
2026-03-05 17:25:29 +08:00
parent fa55e32153
commit ea19dfcbe6
2 changed files with 3 additions and 2 deletions

View File

@ -324,7 +324,7 @@ async function handleUserMessageWithBackend(
// 工具错误,不需要单独处理,通过 onSegmentUpdate 统一更新
},
onQuestion: (askId, question, options) => {
onQuestion: (askId: string, questions: import("../types/api").QuestionItem[]) => {
// 只更新状态栏,问题显示由 onSegmentUpdate 统一处理
panel.webview.postMessage({
command: "updateStatus",