Expand description
Turn submission, acceptance, cancellation, and queue DTOs.
Structs§
- Turn
Accepted - Accepted turn response.
- Turn
Attachment - One client-read text attachment for a submitted turn.
- Turn
Cancel Params - Parameters for cancelling an active turn.
- Turn
Queue Remove Params - Parameters for removing one queued message by entry id.
- Turn
Queue Remove Result - Outcome of a remove-one-queued-message request.
- Turn
Queue Status - Authoritative queued-message snapshot published by the service.
- Turn
Queue Take Latest Params - Parameters for popping the newest queued message back for editing.
- Turn
Queue Take Latest Result - Result of popping the newest queued message.
- Turn
Submit Params - Parameters for submitting a prompt to the selected session.
- Turn
Undo File - One reversed file change.
- Turn
Undo Params - Parameters for reversing one turn’s exact file changes.
- Turn
Undo Result - Outcome of a turn undo request.
Constants§
- MAX_
QUEUE_ ENTRY_ ID_ LEN - Bounded identity token for one queue entry, minted by the service so the client can address one message for take-latest and remove without relying on positional order (which races against concurrent submits).
- MAX_
QUEUE_ PREVIEW_ CHARS - Maximum characters per queued-message preview before truncation. Mirrors the CLI sidebar preview width.
- MAX_
QUEUE_ STATUS_ PREVIEWS - Maximum queued-message previews carried by one queue-status notification. Mirrors the CLI sidebar, which renders the first few queued inputs.
- SESSION_
START_ TURN_ ID - Fallback turn id for interactions raised with no active turn (startup decisions). Produced by the service, matched by the desktop client.
- STARTUP_
INTERACTION_ PENDING_ ERROR - A turn was rejected before delivery because a startup interaction is pending.
Functions§
- queue_
preview_ label - Build the display preview for one queued message: the full text when it
fits, otherwise the first
MAX_QUEUE_PREVIEW_CHARScharacters plus an ellipsis. Truncation is char-boundary safe; newlines are preserved for the client to render.