diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-03-14 00:39:22 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-03-14 00:39:22 +0000 |
| commit | 2ee988ccc04c09ceb6de7cdb75c94114e85d01b9 (patch) | |
| tree | 29100e3e4b33748c544b9a42cb74e964df49b96e /internal/cli/create_test.go | |
| parent | 98ccde12b08ad0b7f53e42de959a72d8382179e3 (diff) | |
feat: add agent selector to UI and support direct agent assignment
- Added an agent selector (Auto, Claude, Gemini) to the Start Next Task button.
- Updated the backend to pass query parameters as environment variables to scripts.
- Modified the executor pool to skip classification when a specific agent is requested.
- Added --agent flag to claudomator start command.
- Updated tests to cover the new functionality.
Diffstat (limited to 'internal/cli/create_test.go')
| -rw-r--r-- | internal/cli/create_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/cli/create_test.go b/internal/cli/create_test.go index 4ce1071..71b403e 100644 --- a/internal/cli/create_test.go +++ b/internal/cli/create_test.go @@ -42,7 +42,7 @@ func TestStartTask_EscapesTaskID(t *testing.T) { })) defer srv.Close() - err := startTask(srv.URL, "task/with/slashes") + err := startTask(srv.URL, "task/with/slashes", "") if err != nil { t.Fatalf("unexpected error: %v", err) } @@ -93,7 +93,7 @@ func TestStartTask_NonJSONResponse_ReturnsError(t *testing.T) { })) defer srv.Close() - err := startTask(srv.URL, "task-abc") + err := startTask(srv.URL, "task-abc", "") if err == nil { t.Fatal("expected error for non-JSON response, got nil") } @@ -115,7 +115,7 @@ func TestStartTask_TimesOut(t *testing.T) { httpClient = &http.Client{Timeout: 50 * time.Millisecond} defer func() { httpClient = orig }() - err := startTask(srv.URL, "task-abc") + err := startTask(srv.URL, "task-abc", "") if err == nil { t.Fatal("expected timeout error, got nil") } |
