huskies: merge 967
This commit is contained in:
@@ -42,6 +42,11 @@ impl AgentRuntime for ClaudeCodeRuntime {
|
||||
event_log: Arc<Mutex<Vec<AgentEvent>>>,
|
||||
log_writer: Option<Arc<Mutex<AgentLogWriter>>>,
|
||||
) -> Result<RuntimeResult, String> {
|
||||
let eager_record = if ctx.model.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some((ctx.project_root.clone(), ctx.model.clone()))
|
||||
};
|
||||
let pty_result = super::super::pty::run_agent_pty_streaming(
|
||||
&ctx.story_id,
|
||||
&ctx.agent_name,
|
||||
@@ -56,6 +61,7 @@ impl AgentRuntime for ClaudeCodeRuntime {
|
||||
Arc::clone(&self.child_killers),
|
||||
self.watcher_tx.clone(),
|
||||
ctx.session_id_to_resume.as_deref(),
|
||||
eager_record.clone(),
|
||||
)
|
||||
.await;
|
||||
|
||||
@@ -90,6 +96,7 @@ impl AgentRuntime for ClaudeCodeRuntime {
|
||||
Arc::clone(&self.child_killers),
|
||||
self.watcher_tx.clone(),
|
||||
None, // no --resume on fallback
|
||||
eager_record,
|
||||
)
|
||||
.await?;
|
||||
Ok(RuntimeResult {
|
||||
|
||||
Reference in New Issue
Block a user