Skip to content

Chore/add support info on suppressed exceptions#4212

Merged
jp-agenta merged 3 commits intorelease/v0.96.8from
chore/add-support-info-on-suppressed-exceptions
Apr 22, 2026
Merged

Chore/add support info on suppressed exceptions#4212
jp-agenta merged 3 commits intorelease/v0.96.8from
chore/add-support-info-on-suppressed-exceptions

Conversation

@jp-agenta
Copy link
Copy Markdown
Member

Description

Add top-level support metadata to API-layer read/query responses and propagate it from the exception wrappers.

What changed

  • Added a shared Support model in application/api/oss/src/utils/exceptions.py with:
    • support_id
    • support_ts in UTC
  • Updated suppress_exceptions() so suppressed API responses get populated with support metadata instead of returning an unmarked empty object.
  • Updated intercept_exceptions() so unexpected failures include support metadata in the error payload and logs.
  • Made the API response DTOs used by suppressed read/query routes inherit Support directly, so the response shape now includes top-level support_id and support_ts.
  • Added unit tests covering:
    • UTC support timestamp generation
    • support fields on API response models
    • support attachment on suppressed responses
    • support metadata in intercepted exceptions

Notes

This change is limited to API-layer read/query response models that use suppress_exceptions().
DAO-layer suppression behavior remains unchanged.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Apr 22, 2026 0:36am

Request Review

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 22, 2026
@jp-agenta jp-agenta merged commit aaa97a7 into release/v0.96.8 Apr 22, 2026
12 checks passed
@dosubot dosubot Bot added Backend refactoring A code change that neither fixes a bug nor adds a feature tests labels Apr 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Railway Preview Environment

Preview URL https://gateway-production-906ea.up.railway.app/w
Project agenta-oss-pr-4212
Image tag pr-4212-7aba3b9
Status Deployed
Railway logs Open logs
Workflow logs View workflow run
Updated at 2026-04-22T12:41:29.169Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend refactoring A code change that neither fixes a bug nor adds a feature size:L This PR changes 100-499 lines, ignoring generated files. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant