diff --git a/coderd/x/chatd/chattool/goal.go b/coderd/x/chatd/chattool/goal.go index 6e360afec6..ba78cb2a6e 100644 --- a/coderd/x/chatd/chattool/goal.go +++ b/coderd/x/chatd/chattool/goal.go @@ -80,9 +80,7 @@ func CompleteGoal(db database.Store, options GoalToolOptions) fantasy.AgentTool } goalID, err := uuid.Parse(goalIDStr) if err != nil { - return fantasy.NewTextErrorResponse( - xerrors.Errorf("invalid goal_id: %w", err).Error(), - ), nil + return fantasy.NewTextErrorResponse("invalid goal_id"), nil } summary := strings.TrimSpace(args.Summary) if summary == "" { diff --git a/coderd/x/chatd/chattool/goal_test.go b/coderd/x/chatd/chattool/goal_test.go index 10518149d4..df858f9268 100644 --- a/coderd/x/chatd/chattool/goal_test.go +++ b/coderd/x/chatd/chattool/goal_test.go @@ -89,7 +89,6 @@ func TestCompleteGoalSchemaUsesStringGoalID(t *testing.T) { goalIDParam, ok := info.Parameters["goal_id"].(map[string]any) require.True(t, ok) require.Equal(t, "string", goalIDParam["type"]) - require.NotEqual(t, "array", goalIDParam["type"]) } func TestGetGoalReturnsNullWithoutCurrentGoal(t *testing.T) {