summaryrefslogtreecommitdiff
path: root/internal/task
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-05-20 19:10:53 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-05-20 19:10:53 +0000
commitbf5ea107f6aec57c1fc3d094cd42aef239d46f15 (patch)
tree5d0eced26b1e6435287838f6823007f5be951877 /internal/task
parent68399a598924775a3ec22a39c2336ae497fb07f3 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'internal/task')
-rw-r--r--internal/task/validator.go3
1 files changed, 0 insertions, 3 deletions
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")
}