The team lead's runtime is tracked via config.leadSessionId, not as a spawned runtime process. In the OpenCode adapter path, buildTeamAgentRuntimeSnapshot creates a synthetic runtime entry for the lead with alive:false (no CLI child pid) and no livenessKind, which the getCurrentRuntimeOfflineVisualState function then classifies as stale_runtime. This causes every team to show the lead as stale-runtime permanently. Add a guard in getCurrentRuntimeOfflineVisualState to skip the stale_runtime classification when the member is the team lead and the runtime entry carries the 'lead' backend marker. |
||
|---|---|---|
| .. | ||
| features | ||
| main | ||
| preload | ||
| renderer | ||
| shared | ||
| types | ||