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
@@ -219,7 +219,7 @@ describe("ThreadComposer — attachments", () => {
|
||||
expect(screen.queryByTestId("composer-chip")).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("reports a transport limit separately from attachment policy", async () => {
|
||||
it("does not count binary attachments against the WebSocket frame limit", async () => {
|
||||
const first = pdfFile("first.pdf", 400 * 1024);
|
||||
const second = pdfFile("second.pdf", 400 * 1024);
|
||||
|
||||
@@ -239,12 +239,10 @@ describe("ThreadComposer — attachments", () => {
|
||||
fireEvent.change(input, { target: { files: [first, second] } });
|
||||
});
|
||||
|
||||
expect(screen.getByRole("alert")).toHaveTextContent(
|
||||
"gateway transport limit",
|
||||
);
|
||||
expect(screen.getAllByTestId("composer-chip")).toHaveLength(1);
|
||||
expect(screen.queryByRole("alert")).not.toBeInTheDocument();
|
||||
expect(screen.getAllByTestId("composer-chip")).toHaveLength(2);
|
||||
expect(screen.getByText("first.pdf")).toBeInTheDocument();
|
||||
expect(screen.queryByText("second.pdf")).not.toBeInTheDocument();
|
||||
expect(screen.getByText("second.pdf")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("enforces the decoded attachment-total policy independently", async () => {
|
||||
|
||||
Reference in new issue
Block a user