diff --git a/backend/src/models/task_attempt.rs b/backend/src/models/task_attempt.rs index 4cd737a1..1e9c8030 100644 --- a/backend/src/models/task_attempt.rs +++ b/backend/src/models/task_attempt.rs @@ -576,6 +576,9 @@ impl TaskAttempt { .await? .ok_or(TaskAttemptError::TaskNotFound)?; // No session found + // Update the executor session with the new prompt + ExecutorSession::update_prompt(pool, executor_session.id, prompt).await?; + // Determine the executor config from the stored executor_type let executor_config = match most_recent_coding_agent.executor_type.as_deref() { Some("claude") => crate::executor::ExecutorConfig::Claude,