Skip to content

Dev backend /v2/chat-sessions returns 500 ResponseValidationError after 81d28b0 deploy #9099

Description

@Git-on-my-level

Summary

After the dev backend deploy of commit 81d28b018875a8ea73bc41f32295e62cf70be899, the dev backend is returning 500s for chat session listing.

Evidence

Read-only dev health check on based-hardware-dev found:

  • Project: based-hardware-dev
  • Service: Cloud Run backend
  • Revision: backend-81d28b0-1
  • Commit: 81d28b018875a8ea73bc41f32295e62cf70be899
  • Revision created: 2026-07-05T20:56:54Z
  • Failing endpoint: GET /v2/chat-sessions?limit=50&offset=0
  • Observed status: repeated 500
  • Traceback root includes:
fastapi.exceptions.ResponseValidationError: 2 validation errors

Observed 500 clusters after deploy:

2026-07-05T21:21:56Z–21:22:00Z
2026-07-05T21:44:47Z–21:44:50Z
2026-07-05T21:56:53Z–21:56:57Z

Health/liveness is green, so this appears to be a response schema/model regression rather than a process outage.

Expected behavior

GET /v2/chat-sessions should return a valid response matching the declared FastAPI response model, not a 500.

Actual behavior

GET /v2/chat-sessions?limit=50&offset=0 returns 500 with ResponseValidationError on the newly deployed backend revision.

Suggested investigation

  • Check the response model / serializer for /v2/chat-sessions.
  • Compare response payload shape after the large merge against the FastAPI response schema.
  • Add a regression test that exercises chat session listing with representative dev data.

Acceptance criteria

  • /v2/chat-sessions?limit=50&offset=0 returns non-5xx for valid authenticated requests.
  • Response payload validates against the declared schema.
  • Regression coverage exists for the response shape that failed in dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend Task (python)bugSomething isn't workingchatRelated to the "chat with your memories" featurep1Priority: Critical (score 22-29)reliability

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions