Skip to main content

resolve_claude_code_state_dir

Function resolve_claude_code_state_dir 

Source
pub fn resolve_claude_code_state_dir(
    storage_dir: &Option<String>,
    child_id: &str,
) -> PathBuf
Expand description

Resolve this actor’s stable per-child storage dir, exactly like BambooRuntimeExecutor::build (subagent_worker.rs:194-202): spec.storage_dir when the parent already isolated it, else a temp dir keyed by child_id — stable across activations of the SAME child. Both ExecutorSpec::ClaudeCode factory arms (subagent_worker.rs, broker_agent.rs) call this to give ClaudeCodeExecutor::new’s state_dir a location the resumed-session state file (issue #444) survives in.