mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-24 14:43:37 -04:00
fix(client): preserve minted prompt IDs
This commit is contained in:
@@ -38,7 +38,7 @@ export function createEngineTransport(api: () => SessionApi): Engine.SessionTran
|
||||
},
|
||||
async submit(input) {
|
||||
try {
|
||||
await api().prompt({ sessionID: input.sessionID, id: input.id, ...input.request })
|
||||
await api().prompt({ ...input.request, sessionID: input.sessionID, id: input.id })
|
||||
} catch (error) {
|
||||
if (isTypedError(error)) throw new Engine.SubmitRejected(error.message)
|
||||
throw error
|
||||
|
||||
@@ -58,6 +58,8 @@ describe("engine data transport", () => {
|
||||
id: "msg_client",
|
||||
sessionID: "session-submit",
|
||||
request: {
|
||||
id: undefined,
|
||||
sessionID: undefined,
|
||||
text: "hello",
|
||||
files: [{ uri: "file:///tmp/example.txt", name: "example.txt" }],
|
||||
delivery: "queue",
|
||||
|
||||
Reference in New Issue
Block a user