while send a request by API /session/:id/message or /session/:id/prompt_async, always recv the message.part.updated by SSE connection #8112

Closed
opened 2026-02-16 18:09:12 -05:00 by yindo · 3 comments
Owner

Originally created by @codejie on GitHub (Jan 31, 2026).

Originally assigned to: @thdxr on GitHub.

Description

while send a request by API /session/:id/message or /session/:id/prompt_async, always recv the message.part.updated by SSE connection.
break the SSE connection, then connect again, get message.part.updated yet, untill stop and start opencode again.

Plugins

No response

OpenCode version

v1.1.44

Steps to reproduce

  1. create a seesion;
  2. connect to sse;
  3. send a message;
  4. get response by sse connection

Screenshot and/or share link

Image

Operating System

macOS 26, M5

Terminal

Terminal

Originally created by @codejie on GitHub (Jan 31, 2026). Originally assigned to: @thdxr on GitHub. ### Description while send a request by API `/session/:id/message` or `/session/:id/prompt_async`, always recv the `message.part.updated` by SSE connection. break the SSE connection, then connect again, get `message.part.updated` yet, untill stop and start opencode again. ### Plugins _No response_ ### OpenCode version v1.1.44 ### Steps to reproduce 1. create a seesion; 2. connect to sse; 3. send a message; 4. get response by sse connection ### Screenshot and/or share link <img width="1125" height="826" alt="Image" src="https://github.com/user-attachments/assets/98595d1c-8a58-4110-b8d6-2100411c05b5" /> ### Operating System macOS 26, M5 ### Terminal Terminal
yindo added the bug label 2026-02-16 18:09:12 -05:00
yindo closed this issue 2026-02-16 18:09:12 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 31, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8564: TUI doesn't render messages from prompt_async endpoint (related to prompt_async API behavior)
  • #8406: Connection hangs with non-standard SSE/HTTP servers (related to SSE connection issues)
  • #9650: Support sessionID Filter for SSE Event Subscription (related to SSE message filtering)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 31, 2026): This issue might be a duplicate of existing issues. Please check: - #8564: TUI doesn't render messages from prompt_async endpoint (related to prompt_async API behavior) - #8406: Connection hangs with non-standard SSE/HTTP servers (related to SSE connection issues) - #9650: Support `sessionID` Filter for SSE Event Subscription (related to SSE message filtering) Feel free to ignore if none of these address your specific case.
Author
Owner

@codejie commented on GitHub (Jan 31, 2026):

log.txt

I think opencode serve re-sent the response again and again with several seconds.

Please check: https://github.com/codejie/opencode-api

@codejie commented on GitHub (Jan 31, 2026): [log.txt](https://github.com/user-attachments/files/24983645/log.txt) I think opencode serve re-sent the response again and again with several seconds. Please check: [https://github.com/codejie/opencode-api](https://github.com/codejie/opencode-api)
Author
Owner

@codejie commented on GitHub (Jan 31, 2026):

Image

seems opencode has the same issue.

@codejie commented on GitHub (Jan 31, 2026): <img width="2090" height="2138" alt="Image" src="https://github.com/user-attachments/assets/f8ebf76f-861a-4fa8-92eb-efe7fe403390" /> seems opencode has the same issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8112