Repository navigation
AI Assistant: work with Claude Haiku 5.5 (no temperature 0, eyes keep working) - #121
Merged
nvladimus merged 4 commits intoOct 9, 2026
Merged
Conversation
Haiku 5.5 answers temperature 0 with a 400 ("`temperature` is deprecated
for this model"), so with it chosen the first message failed. The agent
and the eyes now take their settings from model_settings(endpoint):
temperature 0, except for the models in MODELS_WITHOUT_TEMPERATURE, which
get their own default. Checked against the API: Haiku 5.5 accepts no
temperature and temperature 1, and refuses 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RH8VsZbnUgYcVt3KuXjNFk
With Haiku 5.5 as the eyes, every request after the first look failed: "Invalid `signature` in `thinking` block. The block is bound to a different conversation". Anthropic signs a thinking block for the turn it saw, and detach_old_frames takes the frame out of that turn. In the benchmark 42 of 69 looks lost their description this way. Now the answer after a stripped frame loses its thinking too; its text stays. Checked against the API: look, ask, look all answer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RH8VsZbnUgYcVt3KuXjNFk
Anthropic refuses a tool property name outside ^[a-zA-Z0-9_.-]{1,64}$. In
the Full tool set set_camera, set_etl, set_laser_timing and set_state's
settings carry Core's own names with a percent sign ("camera_delay_%"),
so with Haiku 5.5 every turn in the Full tool set failed with a 400
before the model answered. The assistant now offers those arguments as
"..._pct" and gives the call back to the command under its own name, at
any depth. Remote Control, its TCP and MCP clients and Core are
unchanged. The three Full-set cases that failed on Haiku now pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RH8VsZbnUgYcVt3KuXjNFk
Anthropic signs a thinking block for all that came before it and refuses
the request when any of that has changed ("Invalid `signature` in
`thinking` block. The block is bound to a different conversation"). The
memory changes as a turn starts: an older turn is compacted (its readout
shortened, a long tool result cut, an answered challenge removed) or
trimmed off. With Haiku 5.5 a session therefore died on its fourth
message. From the first changed message on, the replies now lose their
thinking and keep their text and calls; the turn in progress keeps the
thinking its tool calls need, since nothing changes within a turn.
Checked live: a seven-message session, and the two memory cases that
failed, run through.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RH8VsZbnUgYcVt3KuXjNFk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small fixes to the AI Assistant, found by running it with
claude-haiku-5-5as the model. Both are inmesoSPIM/src/ai_assistant/(assistant.py,config.py) and change nothing else; they follow #120.1. No temperature 0 for a model that refuses it. Haiku 5.5 answers a request with
temperature: 0with a 400, "temperatureis deprecated for this model", so with Haiku chosen the very first message failed. The agent and the eyes now take their settings frommodel_settings(endpoint): temperature 0 as before, except for the models listed inconfig.MODELS_WITHOUT_TEMPERATURE(matched anywhere in the model name; Haiku 5.5 today), which get the model's own default.2. The eyes drop an answer's thinking with its frame. The eyes keep their history short by removing an old frame's image from the turn that carried it (
detach_old_frames). Anthropic signs a model's thinking block for the exact turn it saw, so once that turn had changed, every later eyes request was refused: "Invalidsignatureinthinkingblock ... bound to a different conversation". In a benchmark 42 of 69 looks lost their description this way. The answer that follows a stripped frame now loses its thinking block as well; its text stays.Validation
agent/schedule-display,mesoSPIM/test/ai_assistant/test_assistant.py:test_a_model_that_refuses_temperature_zero_is_sent_none,test_an_answer_loses_its_thinking_with_its_frame), and each test fails without its fix.python -m py_compileon both files, andQT_QPA_PLATFORM=offscreen python mesoSPIM/test/remote_control/run.py pyqtpasses (10 passed).Please give it a check in demo mode, and on the microscope with Haiku 5.5 chosen as the model: one question, one look, a second question, a second look.
🤖 Generated with Claude Code
https://claude.ai/code/session_01J2m2maCdWtVBtqdqaQi5xV