diff --git a/packages/core/src/plugin/skill/opencode/api/session.md b/packages/core/src/plugin/skill/opencode/api/session.md index d7eea45342d..b45bdb8c3c1 100644 --- a/packages/core/src/plugin/skill/opencode/api/session.md +++ b/packages/core/src/plugin/skill/opencode/api/session.md @@ -86,7 +86,7 @@ Returns: nothing ## POST /api/session/{sessionID}/prompt -Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with experimental.session.wait or the session.execution.* events, then read the reply with session.message.list. +Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with POST /api/experimental/session/:sessionID/wait or the session.execution.* events, then read the reply with GET /api/session/:sessionID/message. Body: - `id?: string` Sending the same ID again returns the original item instead of adding a second one, so retries are safe. Reusing it in another session or for another kind of item fails with 409. diff --git a/packages/protocol/openapi.json b/packages/protocol/openapi.json index ce84017cd5a..61e94b53be7 100644 --- a/packages/protocol/openapi.json +++ b/packages/protocol/openapi.json @@ -2152,7 +2152,7 @@ } } }, - "description": "Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with experimental.session.wait or the session.execution.* events, then read the reply with session.message.list.", + "description": "Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with POST /api/experimental/session/:sessionID/wait or the session.execution.* events, then read the reply with GET /api/session/:sessionID/message.", "summary": "Send message", "requestBody": { "content": { diff --git a/packages/protocol/src/groups/session.ts b/packages/protocol/src/groups/session.ts index ada22b505b7..1f15309115f 100644 --- a/packages/protocol/src/groups/session.ts +++ b/packages/protocol/src/groups/session.ts @@ -407,7 +407,7 @@ export const makeSessionGroup =