summaryrefslogtreecommitdiff
path: root/internal/api/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/server.go')
-rw-r--r--internal/api/server.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/api/server.go b/internal/api/server.go
index 944e450..c545253 100644
--- a/internal/api/server.go
+++ b/internal/api/server.go
@@ -260,12 +260,14 @@ func (s *Server) handleAnswerQuestion(w http.ResponseWriter, r *http.Request) {
return
}
- // Submit a resume execution.
+ // Submit a resume execution. Carry the sandbox path so the runner uses
+ // the same working directory where Claude stored its session files.
resumeExec := &storage.Execution{
ID: uuid.New().String(),
TaskID: taskID,
ResumeSessionID: latest.SessionID,
ResumeAnswer: input.Answer,
+ SandboxDir: latest.SandboxDir,
}
if err := s.pool.SubmitResume(context.Background(), tk, resumeExec); err != nil {
writeJSON(w, http.StatusServiceUnavailable, map[string]string{"error": err.Error()})