We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1532e5 commit 776abcbCopy full SHA for 776abcb
1 file changed
pkg/aiusechat/tools_utils.go
@@ -163,12 +163,13 @@ func GetWaveUtilsToolDefinition(tabId string) uctypes.ToolDefinition {
163
return aiplan.FormatPlanStatus(plan), nil
164
165
case "plan_update":
166
- stepId := int(params["step_id"].(float64))
+ stepIdRaw, ok := params["step_id"].(float64)
167
+ if !ok || stepIdRaw == 0 {
168
+ return "", fmt.Errorf("step_id required (must be a number)")
169
+ }
170
+ stepId := int(stepIdRaw)
171
status, _ := params["status"].(string)
172
result, _ := params["result"].(string)
- if stepId == 0 {
- return "", fmt.Errorf("step_id required")
- }
173
if status == "" {
174
status = aiplan.StatusDone
175
}
0 commit comments