mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 08:48:35 +00:00
* fix(assistant): keep the table columns Kuma resends instead of recreating them Replacing a table's columns gave every column a new uid, which deleted the click actions of button columns, and adding or removing columns reset the styles of the kept ones. Columns matched by name and type now keep their uid and styles. * test(assistant): add eval cases for editing table columns * fix(assistant): don't run a call the argument fixer repaired by dropping values A repair that left out a value the model sent used to run the tool anyway, so an edit could be ignored while the call reported success. The model now gets the error report plus the dropped paths and values instead. Moving a value, renaming a key and converting its type still run because the value survives. The harness lifecycle test now repairs a renamed key instead of replacing an unparseable value. * feat(assistant): show table columns in Kuma's list_elements * fix(assistant): let Kuma change table columns by uid instead of replacing them * feat(assistant): let Kuma bind table columns to database fields * fix(assistant): send unrepairable arguments back with the model's own errors Check a repair for dropped values before validating it, and answer a repair that still fails with the errors of the arguments the model sent. Arguments whose only errors are unknown keys holding values go back without a repair, the fixer may drop only empty unsupported keys, and arguments too deeply nested to compare go back instead of raising. * fix(assistant): show list field values in table columns and refuse type changes Derive the path a column reads from the shape of the field's values, as the table editor does, so lookups and array formulas show their values instead of raw JSON, and refuse fields that hold files. Accept the type list_elements shows in a column update but refuse a different one, and tell Kuma never to remove a column to rebuild it. Also: a value spelled differently from the stored formula keeps it as stored, tables that list a property refuse field bindings, refusals name every offending column, list_elements shows a table's data_source_id, and an unknown data source ref is refused with a next step. * test(assistant): check every kept table column and the reading of the link case builder/edits-table-columns now compares Email and Edit with the seed apart from Email's position. builder/keeps-link-column-settings requires that Kuma read the columns with list_elements and allows two refused attempts, since the columns' state decides the case. The edit-action lookup is shared. * test(assistant): don't depend on the recursion limit in the nested JSON guard test * refactor(assistant): move table column handling into element type hooks * fix(assistant): recover tool calls the model printed as text * refactor(assistant): move the remaining per-type update steps into element type hooks * fix(assistant): don't complete a printed tool call cut off after a stray quote * test(assistant): make the unknown-tool case reach the tool check