wjhauannn's PR, reviewed at 3b85727243488a64d90f25a2f28f5cc5c3b9b471:
- assistantTextOf skips thinking / redacted_thinking blocks, so a trailing
assistant prefill carrying thinking + text is no longer a 400; thinking
+ tool_use is still refused.
- renderInitialPromptParts: when an oversized history[0] leaves no room
for any later entry, history[0] is clipped so the newest history turn
before <current_turn> is kept (clipped to the room left if needed).
- A live tool-turn drop logs a drop_live event with its reason
(interrupted, image_result, history_mismatch, tools_grew, work_dir,
instructions), and session_new records that reason, not no_live.
Run at the reviewed head cherry-picked onto origin/main 3d9ac97f (agy-cli
0.1.74, #1051), HOME=$(mktemp -d), mote: packages/agy-cli bun test 36
pass 0 fail; test/repeat-batch.mjs 51 pass 0 fail; bun scripts/check.mjs
agy-cli ok.
Broken by hand (mica): origin/main's index.mjs with the PR's tests: the
three new tests fail (A16 newest history turn, thinking+text tail,
drop_live reason), 48 pass.
The PR's version bump (0.1.74) is already on main; the release is the
next commit's 0.1.75.