Skip to content

Keep client-aborted requests out of persistence errors - #818

Merged
SaladDay merged 1 commit into
mainfrom
keep-client-aborted-requests-out-of-persistence-errors
Oct 22, 2026
Merged

SaladDay merged 1 commit into
mainfrom
keep-client-aborted-requests-out-of-persistence-errors

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

A request whose client disconnected fails its storage call with the ended request context. The API answered it as a 500 internal_error and logged oac-core persistence operation failed (seen on mx on 2026-10-22 at 07:40 UTC). writeInternalError now writes nothing once the request context has ended; the request log already records such a request as aborted. The Agents and Files mappers reuse the shared writer instead of their own copies.

Checks: go test ./internal/api/ -run 'TestInternalErrorAfterClientAbort|TestSharedPersistenceErrors|TestResourceNotFoundErrorSurfaces', go vet ./... in services/core.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@SaladDay
SaladDay merged commit c97e6e6 into main Oct 22, 2026
19 checks passed
@SaladDay
SaladDay deleted the keep-client-aborted-requests-out-of-persistence-errors branch October 22, 2026 10:41
A request whose client disconnected fails its storage call with the ended request context. The API reported it as a 500 internal_error and logged a persistence failure. The unmapped-error writer now returns nothing once the request context has ended; the request log already records the request as aborted. The Agents and Files mappers reuse the shared writer.
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.

1 participant