Agent chat: wrap minimap prompts without growing the card
Minimap hover cards now keep the prompt’s line breaks and show up to three prompt lines, using space from the reply preview. The bookmark stays beside the first line. One-line prompts remain compact, reply-only cards retain their four-line preview, and both rails reposition the card when its measured size changes.
Leo: "im pretty sure he was mostly talking about his prompt not being multiline" and "it's just idk if it'd be too big...".
The gallery compares two-line, three-line and growing cards using the same long prompt. I chose the three-line version to expose more of the prompt while preserving the existing content-height budget. The observer watches only the open card and disconnects on unmount; no transcript scan or scroll correction was added.
Changelog
Fixed: Long prompts wrap in minimap hover cards without enlarging the preview’s text budget.
Observed / Not run
- Final head:
718bc594ec682fcfebc312f362056fd7a60c6508. - Independent Codex
gpt-6-astra, xhigh: SHIP at that head; primary integrated static review also passed. - Root web lint passed against base
d65a93cfb7463a373d91a7a6f4ba330cba16703e; existing type-scale, formatting and protocol findings also occur on that base. - Hosted run 40509291592 passed at the final head/tree: 21 tests, 148 assertions (including 4 layout tests/41 assertions), typecheck across 2,866 files, base-compared web lint, and all six final dark/light gallery cases. The same-fixture before comparison passed 2/2.
- Nightly publication and a native app capture were not run for this web-only change.
Before and after
| Theme | Before (#25960) | After (3-line cap, selected) |
|---|---|---|
| dark | ![]() | ![]() |
| light | ![]() | ![]() |
Gallery comparison
The three-line prompt cap shows more of the prompt while keeping the old per-content card height; the reply gives up whole lines as needed. The two-line alternative hides useful prompt context; the growing alternative makes the card taller. All alternatives use the same long prompt.
| Alternative | Dark | Light |
|---|---|---|
| Two-line cap | ![]() | ![]() |
| Card grows | ![]() | ![]() |
Captures and verification: run 40509291592, exact head 718bc594ec682fcfebc312f362056fd7a60c6508, tree 75cfa1daeef106f50aeba4b37a48091699e88464. Before uses bbeb4de536b900b673982402325ccef6d401f417 with the same final gallery fixture (7c347f95de7d3002fa9aff5b32a8e9707e656814). 21 tests/148 assertions, typecheck and web lint pass; before 2/2 and final 6/6 gallery cases pass.
Agent session: agent session







