From bf5ea107f6aec57c1fc3d094cd42aef239d46f15 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Wed, 20 May 2026 19:10:53 +0000 Subject: fix: auto-load default config file and relax repository_url requirement root.go: PersistentPreRunE was only reading the config file when --config was explicitly passed. This left LocalModel.Endpoint empty so the local runner was never registered and the Classifier overrode agent.type:local. Now always tries ~/.claudomator/config.toml; silently ignores ENOENT. validator.go: repository_url was unconditionally required but is irrelevant for LocalRunner tasks (pure chat completions). The executor already handles an empty RepositoryURL via the Project registry lookup at dispatch time. Co-Authored-By: Claude Sonnet 4.6 --- internal/task/validator.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'internal/task') diff --git a/internal/task/validator.go b/internal/task/validator.go index 43e482e..003fab9 100644 --- a/internal/task/validator.go +++ b/internal/task/validator.go @@ -29,9 +29,6 @@ func Validate(t *Task) error { if t.Name == "" { ve.Add("name is required") } - if t.RepositoryURL == "" { - ve.Add("repository_url is required") - } if t.Agent.Instructions == "" { ve.Add("agent.instructions is required") } -- cgit v1.2.3