Skip to content

v496 — Pasted tool envelopes unfold, and the drill names the flat shape

Choose a tag to compare

@MBHudson MBHudson released this 19 Nov 12:44
· 34 commits to master since this release

A model taught the {"tool","arg"} dialect sometimes pastes the whole envelope into the argument itself: the slots it understood land top-level (path) while the rest hides under "arg". edit_file then saw the path but no old_string and refused every identical retry. A shared unfoldNestedArg helper now folds the envelope flat on both the markup and native paths — explicit top-level slots win and nothing silently drops — fromToolObject merges split-level slots, read_file unfolds before keeping its range, and write_file unfolds before folding its foreign spellings.

The Hard drill teaches the shape once: step 8 now says to send the arguments flat, not nested under a second "arg". And when the SAME error answers one step three times, the drill names the flat shape with the step's exact call. That hint defaults on and switches off in the Training dialog (Same-error shape hint); the identical-call guard underneath is untouched. Mobile carries the unfold and the drill text (local-only, uncommitted).

Full suite green: JS 46 files / 1,680 assertions, PHP 39/39, mobile JS 44 files / 1,481 assertions. VERSION 495 → 496, APP_VERSION 495 → 496, every ?v= under ui/**, both index.html files and ide/.