fix: detach local sessions from request context
Release / Build & Release (push) Canceled after 0s

This commit is contained in:
kory
2026-10-02 14:18:24 +08:00
parent 4e016fd3ba
commit 2a072f9cc9
2 changed files with 34 additions and 1 deletions
+1 -1
View File
@@ -851,7 +851,7 @@ func (s *Server) processSession(w http.ResponseWriter, r *http.Request) {
}
}
var sess *executor.Session
sess, err = s.LocalSessions.Start(ctx, req.SessionID, req.Command, req.Workdir, owner, req.RingCapacity)
sess, err = s.LocalSessions.Start(context.Background(), req.SessionID, req.Command, req.Workdir, owner, req.RingCapacity)
if err == nil {
result = map[string]any{"session_id": sess.ID, "started_at": sess.StartedAt.Unix()}
}