Description
SubAgentManager in crates/zeph-subagent/src/manager.rs spawns and manages sub-agent lifecycles but never calls upsert_agent_session or update_agent_session_status. As a result, background sub-agent activity is invisible in the fleet dashboard.
Actual Behavior
The fleet panel shows only the top-level interactive session registered by fleet_session::start_session in runner.rs. Sub-agents spawned by the manager do not appear.
Expected Behavior
When a sub-agent is spawned (SubAgentDef + SessionKind::SubAgent), call upsert_agent_session with SessionStatus::Active. On completion or cancellation, call update_agent_session_status with the appropriate terminal status. This requires SubAgentManager to hold or receive a reference to a SqliteStore.
Environment
- HEAD: 9d76476
- File:
crates/zeph-subagent/src/manager.rs
Description
SubAgentManagerincrates/zeph-subagent/src/manager.rsspawns and manages sub-agent lifecycles but never callsupsert_agent_sessionorupdate_agent_session_status. As a result, background sub-agent activity is invisible in the fleet dashboard.Actual Behavior
The fleet panel shows only the top-level interactive session registered by
fleet_session::start_sessioninrunner.rs. Sub-agents spawned by the manager do not appear.Expected Behavior
When a sub-agent is spawned (
SubAgentDef+SessionKind::SubAgent), callupsert_agent_sessionwithSessionStatus::Active. On completion or cancellation, callupdate_agent_session_statuswith the appropriate terminal status. This requiresSubAgentManagerto hold or receive a reference to aSqliteStore.Environment
crates/zeph-subagent/src/manager.rs