feat(coding-agent): added auto-backgrounding for long bash jobs to avoid blocking

- Added bash.autoBackground.enabled and bash.autoBackground.thresholdMs settings with defaults for background job behavior.
- Added auto-backgrounding support for long foreground bash commands with managed job state and timeout threshold.
- Updated bash prompts, job-protocol messages, and tool activation checks to use async and auto-background support.
- Added background bash completion integration with AsyncJobManager and end-to-end tests for short/long auto-background scenarios.
This commit is contained in:
can1357
2026-04-11 11:05:16 +02:00
parent ae85ed4cc7
commit 23a5afe8d9
14 changed files with 380 additions and 65 deletions
+1
View File
@@ -1 +1,2 @@
export * from "./job-manager";
export * from "./support";
@@ -0,0 +1,5 @@
import type { Settings } from "../config/settings";
export function isBackgroundJobSupportEnabled(settings: Pick<Settings, "get">): boolean {
return settings.get("async.enabled") || settings.get("bash.autoBackground.enabled");
}