Skip to main content

Module session

Module session 

Source
Expand description

ACP server session state primitives.

The types here are intentionally small and protocol-agnostic: map local thndrs session IDs to opaque ACP IDs, normalize/validate cwd, and guard against concurrent prompt turns per ACP session.

Structs§

AcpServerSession
Runtime state for one active ACP session.
AcpSessionStore
Deterministic ACP session state map used by protocol handlers.
LocalSessionMetadata
Lightweight metadata placeholder for local session state.

Enums§

AcpSessionError
Errors for ACP session state operations.

Constants§

ACP_SESSION_ID_PREFIX
Prefix for generated opaque ACP session IDs.
ACP_SESSION_SEQUENCE_WIDTH
Width of the zero-padded sequence component in generated session IDs.

Functions§

generate_session_id
Generate deterministic opaque ACP session ids.
validate_and_normalize_cwd
Normalize and validate a workspace cwd for a new ACP session.