docs: document bash process registry

This commit is contained in:
Peter Steinberger
2026-06-04 06:04:28 -04:00
parent 7b8da19302
commit 41cefdff8f
4 changed files with 41 additions and 3 deletions

View File

@@ -1,11 +1,15 @@
/**
* Compact references for active background bash sessions.
* These references are surfaced in agent context so follow-up turns can
* reconnect to prior long-running work.
*/
import { listRunningSessions } from "./bash-process-registry.js";
import { deriveSessionName } from "./bash-tools.shared.js";
// Builds compact references for currently running background process sessions.
// These references are surfaced to agents so they can reconnect to prior work.
const DEFAULT_ACTIVE_PROCESS_LIMIT = 8;
const MAX_COMMAND_LABEL_CHARS = 140;
/** Agent-facing summary of a reconnectable background process session. */
export type ActiveProcessSessionReference = {
sessionId: string;
status: "running";