Skip to content

fix(agentic): persist rich model rounds from CLI execution messages#1410

Merged
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:fix/cli-dialog-turn-model-rounds-persistence
Jul 4, 2026
Merged

fix(agentic): persist rich model rounds from CLI execution messages#1410
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:fix/cli-dialog-turn-model-rounds-persistence

Conversation

@bobleer

@bobleer bobleer commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Build model_rounds from execution new_messages in complete_dialog_turn when the host surface (e.g. CLI) does not persist rounds itself.
  • Ensures turn files on disk contain rich conversation data (text, tool calls/results, thinking) so other surfaces (e.g. Desktop) can render CLI session history correctly.
  • Falls back to a single text-only round when no structured messages are available.

Test plan

  • cargo check -p bitfun-core
  • Run a CLI agent turn with tool calls and verify the persisted turn file includes model_rounds with text/tool/thinking items
  • Open the same session in Desktop and confirm the turn history renders with full detail

Build dialog turn model_rounds from execution new_messages when the host
does not persist rounds itself, so Desktop and other surfaces can render
CLI session history with text, tools, and thinking content.
@bobleer bobleer merged commit e2ff8d7 into GCWing:main Jul 4, 2026
4 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.

1 participant