fix(coding-agent): fixed bash output integrity, job lifecycle, and interception

artifact spill now includes the head-retained bytes (full capture was missing first ~20KB); chunk throttle coalesces instead of dropping; cd-prefix extraction defers shell-expanded paths; interceptor rule is quote-aware and catches clobber and variable targets; completed async jobs release their Shell; at job cap commands degrade to foreground; PTY mode drops the non-interactive env and notes silent downgrades; timeout/abort annotations always appended; removed dead idle-timeout-watchdog.
This commit is contained in:
can1357
2026-06-10 01:27:17 +02:00
parent c3054d5cea
commit a13e9827f4
10 changed files with 248 additions and 147 deletions
@@ -314,7 +314,9 @@ export async function executeBash(command: string, options?: BashExecutorOptions
if (userSignal) {
userSignal.removeEventListener("abort", abortHandler);
}
if (resetSession) {
if (resetSession || options?.sessionKey?.includes(":async:")) {
// `:async:` keys are per-job (jobId is unique), so the Shell would
// otherwise stay in the process-global map forever after completion.
shellSessions.delete(sessionKey);
}
}