session

Interrupt session execution

Interrupt active execution owned by this OpenCode process. Returns interrupted=true when an active execution was interrupted and false for the idle no-op. When resume=true, execution resumes pending steering input and next-in-line control items (manual compaction, moves) while queued prompts remain parked.

post/api/session/{sessionID}/interrupt

Request

  • Base URL: https://opencode.ai (the document declares no server; this is the origin it was published from)
  • URL: https://opencode.ai/api/session/{sessionID}/interrupt
  • Auth: none required

Path parameters

sessionIDstring required

Query parameters

resume'true' | 'false' nullable

Response

SessionInterruptResponse

interruptedboolean required

Whether an active execution owned by this OpenCode process was interrupted.

Changes

No recorded changes to this operation across all 1 revision of this API.