Commit graph

1 commit

Author SHA1 Message Date
nesquena-hermes
2621df98eb
test(#4622): guard restored tool-card full output + expand + diff render (#4625)
Behavioural regression guard for the Transparent Stream / Worklog reload path.
Drives the real buildToolCard + _anchorSceneToolCallFromRow from static/ui.js
via node and pins that a tool card reconstructed from a persisted
activity_scene_v1 row keeps:
  - the full terminal output with a working Show-more expand (data-full), and
  - the diff body (diff-block) for patch/edit snippets.

#4622 was reported as a regression after v0.51.547-.560, but that window
RESTORED this activity (#4539/#4587); independent repro on master was negative.
This is the permanent guard so the restore path can't silently lose full
output / expand / diff again. Test-only; no product change.

RED-proven: dropping the payload.result/output recovery in
_anchorSceneToolCallFromRow makes the two restored-card tests fail.

Co-authored-by: nesquena-hermes <agent@nesquena-hermes>
2026-06-21 10:45:15 -07:00