Verify runtime ownership before stop

This commit is contained in:
thePR0M3TH3AN committed 2026-09-27 19:23:09 -04:00
1 parent 6e79960721
commit 325ed613be
5 files changed
+66 -5

No files matched your search

+3 -1
View File
@@ -221,7 +221,9 @@ function stopThrough(adapters, action) {
if (!adapter) throw new TorchError(`No runtime stopper for ${action.runtime}`, {
code: 'RUNTIME_ADAPTER_MISSING', details: { runtime: action.runtime },
});
return adapter.stopSession({ runtimeSessionId: action.runtimeSessionId });
return adapter.stopSession({
runtimeSessionId: action.runtimeSessionId, worktree: action.worktree?.path,
});
}
function runCandidateAcceptance(candidateRoot, spawn) {