fix(webui): upload TUI and WebUI attachments over binary HTTP (#5980)
* feat(webui): add bounded binary attachment staging * feat(webui): bridge binary HTTP bodies alongside websocket listener * fix(webui): deliver attachments over authenticated binary HTTP * fix(webui): bound incomplete upload headers and preserve staging markers * test: reflect aiohttp runtime dependency for binary uploads * fix(webui): relay binary uploads and retain rejected drafts * refactor(webui): remove obsolete attachment transport errors * refactor(websocket): own binary attachment transport * fix(websocket): allow bounded uploads over slow connections * test(webui): restore upload timeout before retry * docs(websocket): focus attachment guide on client usage
This commit is contained in:
1 parent
5be1e589f2
commit
6646f5fbee
53 files changed
+1972
-847
No files matched your search
@@ -146,6 +146,7 @@ function fakeClient() {
|
||||
return () => set!.delete(h);
|
||||
},
|
||||
sendMessage: vi.fn(),
|
||||
sendAttachments: vi.fn().mockResolvedValue(undefined),
|
||||
requestMutation,
|
||||
finishRunLocally: vi.fn(),
|
||||
newChat: vi.fn(),
|
||||
@@ -2721,7 +2722,7 @@ describe("useNanobotStream", () => {
|
||||
|
||||
expect(result.current.messages[0].media).toEqual([attachment.preview]);
|
||||
expect(result.current.messages[0].images).toBeUndefined();
|
||||
expect(fake.client.sendMessage).toHaveBeenCalledWith(
|
||||
expect(fake.client.sendAttachments).toHaveBeenCalledWith(
|
||||
"chat-file-send",
|
||||
"summarize",
|
||||
[attachment.media],
|
||||
|
||||
Reference in new issue
Block a user