session
Interrupt session execution
Changed onInterrupt 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 URLhttps://opencode.ai (the document declares no server; this is the origin it was published from)
- URLhttps://opencode.ai/api/session/{sessionID}/interrupt
- Authnone required
Path parameters
sessionIDstring required
Query parameters
resume'true' | 'false' nullable
Response
SessionInterruptResponse
Changes
- breaking
the response's body type changed from no type to
objectfor status - info
removed from the response body
anyOflist for the response status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking