Skip to content

Dev - #26

Merged
MegumiinUwU merged 3 commits into
mainfrom
dev
Jul 2, 2026
Merged

Dev#26
MegumiinUwU merged 3 commits into
mainfrom
dev

Conversation

@MegumiinUwU

Copy link
Copy Markdown
Collaborator

No description provided.

Hemdan47 added 3 commits July 2, 2026 19:07
When the agent stream failed (timeout, connection error, etc.), the
backend sent an error event to the client but never pushed it into the
events array. The error was not visible in the frontend UI because the
post-stream message refresh fetched from the DB, which had no record of
the error.

Push the error event into the events array in all three catch blocks
(sendMessage, sendPermission, sendClarification) before saving the AI
message to the DB. Move the events declaration outside the try block in
sendPermission and sendClarification so it is accessible in the catch
block. Add the error event type to the Event union.
…504s

agentFetch applied AbortSignal.timeout(100s) to all agent requests
including streaming ones. A CI/CD generation easily exceeds 100 seconds
(LLM calls, tool execution, retries), so the signal would abort
mid-stream, reader.read() would throw AbortError, and the backend
mapped it to a 504 Gateway Timeout — killing the stream even though
the agent was still working.

Remove the timeout signal from agentFetch. The idle timeout in
readAgentStream (300s between chunks) already handles hung connections.
Apply the timeout only to cancelByRunId, which is a quick non-streaming
call where a timeout is appropriate.
The agent emits an optional summary string in run.completed events.
Add it to the RunCompletedData interface so the type system
acknowledges it and it passes through the event proxy correctly.
@MegumiinUwU
MegumiinUwU merged commit 8ec1dde into main Jul 2, 2026
1 check passed
@MegumiinUwU
MegumiinUwU deleted the dev branch July 2, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants