Skip to content

collapse the relaunch dialog's task prompt behind a Show more toggle - #6089

Merged
atomantic merged 1 commit into
mainfrom
cos/task-mtlrd58e/agent-2c8207ca
Sep 3, 2026
Merged

collapse the relaunch dialog's task prompt behind a Show more toggle#6089
atomantic merged 1 commit into
mainfrom
cos/task-mtlrd58e/agent-2c8207ca

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

  • The Relaunch Agent dialog rendered the agent's whole task description inline. That description is the run's full prompt — routinely hundreds of lines — so on a phone it pushed the target-app picker, the provider/model selects and the Relaunch button far below the fold.
  • It now opens on a three-line clamp via the shared CollapsibleText, matching what AgentCard already does for the same field.
  • Expanding swaps in a height-capped scroll box (max-h-48 overflow-y-auto) rather than unclamping in place, so reading the prompt never re-buries the controls the dialog exists for.

Test plan

  • client/src/components/cos/tabs/RelaunchAgentModal.test.jsx — new case asserts the preview opens clamped, that expanding drops the clamp for the capped scroll box, and that the Show less affordance stays reachable. The prototype scrollHeight spy now restores in an afterEach so a failed assertion can't leak it into the neighbouring tests.
  • npx vitest run src/components/cos/tabs src/preWrapClasses.test.js src/a11yConventions.test.js src/responsiveGridConventions.test.js — 29 files, 381 tests, all passing.

The Relaunch Agent dialog rendered the agent's whole task description inline.
That description is the run's full prompt — routinely hundreds of lines — so on
a phone it pushed the target-app picker, the provider/model selects and the
Relaunch button far below the fold, turning a four-control dialog into a long
scroll.

It now opens on a three-line clamp via the shared CollapsibleText, and expanding
swaps in a height-capped scroll box rather than unclamping in place, so reading
the prompt never buries the controls the dialog exists for.
@atomantic
atomantic merged commit a25eb02 into main Sep 3, 2026
7 checks passed
@atomantic
atomantic deleted the cos/task-mtlrd58e/agent-2c8207ca branch September 3, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant