You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add runtime validation and better error handling across CLI and loop components. Key changes:
- cmd/chief: validate presence of values for --agent and --agent-path flags (print error and exit) and handle config.Load errors with a clear message.
- internal/cmd: enforce non-nil Provider for RunNew, RunEdit and runInteractiveAgent (return explicit errors) and add corresponding tests that assert provider is required. Minor comment/spacing cleanups in option structs.
- internal/cmd/convert: ensure temporary output files are removed on failed command start to avoid leftover artifacts.
- internal/loop: return an error if Loop.Run is invoked without a configured provider; require provider for Manager.Start; add tests for both failure cases. Also minor struct field alignment and test provider method formatting.
These changes make failures explicit and fail fast with clearer messages, and ensure temporary files are cleaned up on early command failures.
0 commit comments