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 Edit Params - Parameters for editing one queued message’s prompt in place. The entry id
comes from the latest
turn/queue-statussnapshot; the FIFO position and id are preserved so in-flight references stay valid. - Turn
Queue Edit Result - Outcome of editing one queued message.
- 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
Steer Params - Parameters for steering the live turn with a prompt. When the prompt comes
from a queued row,
entry_idasks the service to remove that entry in the same request so it is never dispatched a second time. - Turn
Steer Result - Outcome of a steer handoff.
steered: truemeans the prompt was accepted by the live steering channel; the runtime’s terminal decision arrives later in aturn/steer/resultnotification whilependingis set. - Turn
Steer Result Notification - Terminal runtime acknowledgment for a
turn/steerhandoff. The addressed queue row stays owned by the client until this notification arrives. - 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.
Enums§
- Turn
Steer Rejection - 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_CHARScharacters plus an ellipsis. Truncation is char-boundary safe; newlines are preserved for the client to render.