Skip to content

1.39.0: the assistant keeps the map state the server added - #5

Merged
jeany55 merged 1 commit into
mainfrom
keep-map-state
Oct 17, 2026
Merged

jeany55 merged 1 commit into
mainfrom
keep-map-state

Conversation

@jeany55

@jeany55 jeany55 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

The server adds the map's current facts (<map_state>) to the end of the last user message. The panel's history never had them, so the next request sent that message without them — and Opus 5.5, which checks that a replayed thinking block's conversation is unchanged, dropped every thinking block after it. Each round of a turn ran without the reasoning of the rounds before.

With a server on ai-engine 0.2.0 (scm-js/ai-engine#1) the answer carries the block back (AgentOutput.state); keepState puts it at the end of the message it was added to. The transcript replay and Copy transcript leave kept blocks out. Against an older server nothing changes.

🤖 Generated with Claude Code

The server adds the map's current facts to the end of the last user message.
The panel's history never had them, so the next request sent that message
without them, and Opus 5.5, which checks that a replayed thinking block's
conversation is unchanged, dropped every thinking block after it: each round
of a turn ran without the reasoning of the rounds before. With a server from
ai-engine 0.2.0 the answer carries the block back and the history keeps it at
the end of the message; replays and the copied transcript leave it out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeany55
jeany55 merged commit 3293fab into main Oct 17, 2026
1 check 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