refactor(#1825): drop MANAGER_NAME special-cases in crash_watch + tombstones
This commit is contained in:
parent
6dcc1cb7e1
commit
12ed5da11a
3 changed files with 9 additions and 13 deletions
|
|
@ -9,7 +9,7 @@ use std::time::Duration;
|
|||
|
||||
use crate::container_view::claude_has_session;
|
||||
use crate::coordinator::{Coordinator, TransientKind};
|
||||
use crate::lifecycle::{self, AGENT_PREFIX, MANAGER_NAME};
|
||||
use crate::lifecycle::{self, AGENT_PREFIX};
|
||||
|
||||
const POLL_INTERVAL: Duration = Duration::from_secs(10);
|
||||
|
||||
|
|
@ -37,15 +37,11 @@ pub fn spawn(coord: Arc<Coordinator>) {
|
|||
continue;
|
||||
};
|
||||
let logical = logical.to_owned();
|
||||
if logical != MANAGER_NAME {
|
||||
sub_agents.push(logical.clone());
|
||||
}
|
||||
sub_agents.push(logical.clone());
|
||||
if lifecycle::is_running(&logical).await {
|
||||
current_running.insert(logical.clone());
|
||||
}
|
||||
if logical != MANAGER_NAME
|
||||
&& claude_has_session(&Coordinator::agent_claude_dir(&logical))
|
||||
{
|
||||
if claude_has_session(&Coordinator::agent_claude_dir(&logical)) {
|
||||
current_logged_in.insert(logical.clone());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue