From a73e0db2f33d24451aa167a2cdc41fc298eb15c0 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Wed, 25 Nov 2026 01:45:30 -0600 Subject: [PATCH] docs(protocol): name HTTP routes in session prompt description (#66306) --- packages/core/src/plugin/skill/opencode/api/session.md | 2 +- packages/protocol/openapi.json | 2 +- packages/protocol/src/groups/session.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 =