Skip to content

fix(session): decode stored structured output format on every message publish - #375

Merged
filipeforattini merged 1 commit into
mainfrom
compaction-format-encoding
Sep 23, 2026
Merged

filipeforattini merged 1 commit into
mainfrom
compaction-format-encoding

Conversation

@filipeforattini

@filipeforattini filipeforattini commented Sep 23, 2026 •

Copy link
Copy Markdown

Summary

  • fix(provider): complete support for Claude Opus 5.5 and GPT-6 #369 fixed Expected OutputFormatJsonSchema when a promoted prompt republished its stored format, which reads back from the database as plain JSON. The same failure hit every other place that republishes a stored user message: compaction replay (compaction.ts copied original.format), Session.fork (spreads msg.info) and the diff summary (summary.ts republishes target.info).
  • The decode now happens once, in Session.updateMessage, the single publisher of MessageUpdated, and the two call-site decodes fix(provider): complete support for Claude Opus 5.5 and GPT-6 #369 added in prompt.ts are removed.
  • The core (v2) runtime does not carry a user message format, so nothing changes there.

Tests

  • compaction.test.ts: overflow compaction replays a structured output turn read back from the database and keeps its json_schema format.
  • session.test.ts: forking a session copies a structured output turn with its format.

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

@filipeforattini
filipeforattini merged commit 95a9741 into main Sep 23, 2026
22 checks passed
@filipeforattini
filipeforattini deleted the compaction-format-encoding branch September 23, 2026 05:57
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