Skip to main content

Module turn

Module turn 

Source
Expand description

Turn submission, acceptance, cancellation, and queue DTOs.

Structs§

TurnAccepted
Accepted turn response.
TurnAttachment
One client-read text attachment for a submitted turn.
TurnCancelParams
Parameters for cancelling an active turn.
TurnQueueEditParams
Parameters for editing one queued message’s prompt in place. The entry id comes from the latest turn/queue-status snapshot; the FIFO position and id are preserved so in-flight references stay valid.
TurnQueueEditResult
Outcome of editing one queued message.
TurnQueueRemoveParams
Parameters for removing one queued message by entry id.
TurnQueueRemoveResult
Outcome of a remove-one-queued-message request.
TurnQueueStatus
Authoritative queued-message snapshot published by the service.
TurnQueueTakeLatestParams
Parameters for popping the newest queued message back for editing.
TurnQueueTakeLatestResult
Result of popping the newest queued message.
TurnSteerParams
Parameters for steering the live turn with a prompt. When the prompt comes from a queued row, entry_id asks the service to remove that entry in the same request so it is never dispatched a second time.
TurnSteerResult
Outcome of a steer handoff. steered: true means the prompt was accepted by the live steering channel; the runtime’s terminal decision arrives later in a turn/steer/result notification while pending is set.
TurnSteerResultNotification
Terminal runtime acknowledgment for a turn/steer handoff. The addressed queue row stays owned by the client until this notification arrives.
TurnSubmitParams
Parameters for submitting a prompt to the selected session.
TurnUndoFile
One reversed file change.
TurnUndoParams
Parameters for reversing one turn’s exact file changes.
TurnUndoResult
Outcome of a turn undo request.

Enums§

TurnSteerRejection
Why the runtime rejected a live steer.

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_CHARS characters plus an ellipsis. Truncation is char-boundary safe; newlines are preserved for the client to render.