Skip to main content

Module session

Module session 

Source
Expand description

Session lifecycle, history paging, and idle-session option DTOs.

Structs§

AgentModeInfo
Non-secret metadata for a selectable CLI primary agent.
RecentPrompt
One genuine user-typed prompt from a workspace session archive.
RecentPromptsParams
Parameters for listing recent cross-session prompts.
RecentPromptsResult
Recent-prompts result. Echoes the requested scope so the client can match out-of-order responses when the scope changes mid-fetch.
SessionCreateParams
Parameters for creating an empty session.
SessionHistoryMessage
Text restored from the durable message snapshot for a loaded session.
SessionHistoryPage
One bounded earlier page from a durable conversation.
SessionHistoryParams
Request an earlier bounded page of the selected archived conversation.
SessionIdParams
Parameters for loading a durable session.
SessionListParams
Parameters for listing recent sessions. The limit is a soft page size: omitted values keep the historical full-list behavior.
SessionLoadResult
Loaded durable session metadata and its bounded transcript projection.
SessionOptionsSelectParams
An explicit idle-session option change. Omitted values preserve existing choices.
SessionOptionsSnapshot
Runtime options exposed without credentials or complete configuration documents.
SessionOutputCursor
Cursor for reading more of a restored tool-output capture.
SessionOutputPage
One bounded page from an archived tool-output capture.
SessionOutputReadParams
Request one bounded page from a restored tool-output capture.
SessionSummary
A persisted session available for reload.
ThemePreferenceSelectParams
Persist a built-in CLI theme selected in Desktop.

Enums§

PermissionMode
Session execution and command confirmation policy.

Constants§

MAX_RECENT_PROMPTS
Maximum prompts returned by one recent-prompts request.
MAX_SESSION_HISTORY_PAGE_MESSAGES
Maximum message count accepted by one desktop archive-history page request.
MAX_SESSION_LIST_LIMIT
Maximum sessions returned by one session/list request.
MAX_SESSION_OUTPUT_PAGE_BYTES
Maximum captured output returned by one on-demand desktop page.
RESTORED_OUTPUT_TRUNCATION_SUFFIX
Marker appended while more archived tool output is available.