Uh oh!
There was an error while loading. Please reload this page.
feat(mothership): request ids - #3645
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Extends message types/storage ( Written by Cursor Bugbot for commit d748eef. Configure here. |
Greptile SummaryThis PR adds Key changes:
One functional inconsistency was found in the copilot panel rendering, and the shared component's placement under the Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant MothershipAPI as /api/mothership/chat
participant Orchestrator
participant UpstreamSSE as Upstream SSE (copilot/mothership)
Client->>MothershipAPI: POST chat message
MothershipAPI->>Orchestrator: orchestrateCopilotStream()
Orchestrator->>UpstreamSSE: open SSE stream
UpstreamSSE-->>Orchestrator: event: request_id (data: "<rid>")
Note over Orchestrator: context.requestId = rid
UpstreamSSE-->>Orchestrator: event: content (chunks...)
UpstreamSSE-->>Orchestrator: event: done
Orchestrator-->>MothershipAPI: OrchestratorResult { requestId, content, ... }
MothershipAPI-->>Client: SSE stream (re-emits request_id, content events)
Note over Client: use-chat / copilot store<br/>handle request_id event → store on context
Note over Client: flush() / updateStreamingMessage()<br/>propagate requestId to message state
Note over Client: MessageActions renders<br/>Copy Request ID option
Last reviewed commit: "fix ui" |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
icecrasher321
commented
Mar 18, 2026
bugbot run |
Uh oh!
There was an error while loading. Please reload this page.
* Include rid * Persist rid * fix ui * address comments * update types --------- Co-authored-by: Vikhyath Mondreti <vikhyath@simstudio.ai>
Summary
Way to get request ids for copilot/mothership chats.
Type of Change
Testing
Tested manually
Checklist