fix(canvas): show full Agent prompt tooltips - #6961
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Adds Reviewed by Cursor Bugbot for commit 2a74c4b. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR moves Agent-message clipping responsibility from
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/workflows/subblocks/display.ts | Removes upstream 50-character truncation for message arrays; downstream rendering and layout measurement retain their existing width constraints. |
| apps/sim/lib/workflows/subblocks/display.test.ts | Verifies that direct and serialized message arrays expose the complete first-message content. |
Reviews (2): Last reviewed commit: "fix(canvas): show full Agent prompt tool..." | Re-trigger Greptile
2a74c4b to
c614533
Compare
|
@cubic-dev-ai please re-review the latest changes. |
@icecrasher321 Incremental reviews are turned off for this repository. Comment |
|
@cubic review |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |

Summary
Separates compact canvas display values from tooltip labels so long Agent prompts are no longer shortened before the tooltip receives them. Agent cards keep the existing 50-character first-message preview, block sizing, and auto-layout behavior, while editor and read-only preview tooltips receive the complete first-message content. Long plain strings such as Function code remain unchanged.
The renderer now supports an optional full tooltip value and opens the tooltip when the visible text is clipped or when it was shortened upstream. Password masking, selector hydration, regular row tooltip behavior, and structured-value summaries are unchanged.
Type of Change
Testing
bun run test lib/workflows/subblocks/display.test.tsinapps/sim: 28 tests passedbun run test src/workflow-block/sub-block-row-view.test.tsxinpackages/workflow-renderer: 1 test passedbun run type-checkinapps/simbun run type-checkinpackages/workflow-renderergit diff --checkReviewers should focus on the display-versus-tooltip separation: the compact Agent chip must remain unchanged while its tooltip exposes the complete first message, including when the compact string itself fits and was truncated upstream.
Checklist
Screenshots/Videos
Before behavior and both comparison screenshots are in the linked Slack thread. No after screenshot is attached because the compact preview and layout intentionally remain visually unchanged; only the tooltip content changes, and that behavior is covered by the focused renderer regression test.