fetch_loop.go starts at PrepSubsystem.OnStartup, ticks on configurable interval (default 5min), respects ctx.Done() for clean shutdown. Each tick runs `git fetch origin <DefaultBranch>` via s.Core().Process() — no worktree mutation. Repo discovery sources (priority): 1. agents.fetch_repos in runtime config 2. repos / agents.*.repos in agents.yaml 3. Fallback scan of WorkspaceRoot() per RFC §7 Interval config: agents.fetch_interval, dispatch.fetch_interval, or top-level fetch_interval in agents.yaml. Loop survives individual repo failures (logs + continues — one bad repo can't kill the loop). Tests cover tick timing, failure isolation, ctx cancellation. Co-authored-by: Codex <noreply@openai.com> Closes tasks.lthn.sh/view.php?id=165 |
||
|---|---|---|
| .. | ||
| agentic | ||
| brain | ||
| lib | ||
| messages | ||
| monitor | ||
| runner | ||
| setup | ||
| .DS_Store | ||