Skip to content

fix: preserve conversation in legacy stored responses - #429

Merged
haoshan98 merged 1 commit into
mainfrom
fix/legacy-conversation-snapshot
Oct 9, 2026
Merged

haoshan98 merged 1 commit into
mainfrom
fix/legacy-conversation-snapshot

Conversation

@franciscojavierarceo

Copy link
Copy Markdown
Collaborator

Summary

  • Accept the pre-rename conversation_id field when decoding stored response snapshots, while continuing to emit the canonical conversation: {"id": ...} response shape.
  • Add a regression test that loads legacy snapshot metadata through ResponseData and checks the public serialized response. This keeps GET /v1/responses/{id} consistent for responses stored before feat: make conversation canonical in Responses API #410.

Test Plan

  • pre-commit run --all-files (via uvx pre-commit==4.4.0) — passed.
  • cargo fmt -- --check and git diff --check — passed.
  • cargo test --offline -p agentic-server-core --lib legacy_conversation_id_snapshot_serializes_with_canonical_conversation — blocked before compilation by missing OpenSSL development files (openssl.pc) in the local environment; CI will run the test.

@haoshan98
haoshan98 merged commit 6dc1c3d into main Oct 9, 2026
14 checks passed
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