mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-17 04:37:03 +00:00
Review pass over the reuse change. No intended behavior changes. - share one definition of the initial generation from fabro-types instead of three copies across fabro-types, fabro-agent, and the supervisor - give each child one SubAgentHandle instead of threading the supervisor's state, callback, and notification sender through five functions, and collapse the repeated signal-then-drain pairs into publish() - move `reusable` inside SubAgentStatus::Finished so a closed agent can no longer be marked reusable - clear the lifecycle draining flag with an RAII guard, so one panicking callback cannot silence every later lifecycle event - tear down a session that failed to initialize right away rather than holding it and its sandbox until the parent closes the agent - look agents up through SupervisorState::agent/agent_mut instead of five copies of the same not-found error - drop the unreachable cleanup_started branch and the test-only emit_event whose only caller was its own test - render subagent starts from one ProgressEvent and one display method, deriving the spawn/turn distinction from the generation - set projected subagent status through one helper instead of four identical reducer arms - drive the generation-pinned wait test through spawn/send_input rather than hand-writing private supervisor state Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| build.rs | ||
| Cargo.toml | ||