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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user