Skip to content

feat: replay completed-turn tool history in context assembly - #10

Merged
PerishCode merged 1 commit into
mainfrom
feat/replay-tool-history
Jun 30, 2026
Merged

PerishCode merged 1 commit into
mainfrom
feat/replay-tool-history

Conversation

@PerishCode

Copy link
Copy Markdown
Owner

No description provided.

Conventional agents keep a single flat append-only transcript where
tool_call and tool_result are first-class, permanent entries. santi
dropped them from assembly_input, so across turns the soul lost all
record of tools it ran (a real gap on the live chat_completions path,
not just a Responses-acceptable simplification).

ProviderMessage becomes an enum (Text / ToolCalls / ToolResult).
assembly_input now replays completed-turn tool_call/tool_result inline,
bounded by tools_through_seq (the in-flight turn's base_soul_session_seq):
in-flight calls still flow through function_call_outputs untouched, so
GLM-5.2's reasoning_content echo and the OpenAI Responses raw item are
preserved with zero behavior change on the live in-flight path. thinking
stays dropped cross-turn.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@PerishCode
PerishCode merged commit 52f1a65 into main Jun 30, 2026
3 checks passed
@PerishCode
PerishCode deleted the feat/replay-tool-history branch June 30, 2026 03:49
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