Skip to content

fix(tangent): wrap the attach-agent command instead of scrolling it - #3005

Merged
camielvs merged 1 commit into
masterfrom
cvs/attach-agent-command-wrap
Nov 6, 2026
Merged

camielvs merged 1 commit into
masterfrom
cvs/attach-agent-command-wrap

Conversation

@camielvs

@camielvs camielvs commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Intent

Make the attach command in the Attach an agent dialog readable on small screens, so people can see the command they are about to copy.

Current behavior

The command sits in a one-line box that scrolls sideways. On systems that always show scrollbars, the scrollbar fills that box and covers the command, so all you see is a grey bar. With overlay scrollbars, you only see the start of the command.

What changes

The command now wraps onto as many lines as it needs. Where there is no space to break at, it breaks inside the URL or session ID. The box grows to fit, and the dialog keeps its normal width. The copy button still copies the command as a single line.

The VS Code extension install command in Settings uses the same component and still scrolls sideways. That is unchanged because its scrollbar sits below the text, not over it.

How to test

  1. Open a project, start a chat session, and click Attach a local agent. Expected: the full command is visible across several lines, with no horizontal scrollbar.
  2. Make the browser window narrow, or use a phone-sized viewport. Expected: the command wraps onto more lines and stays fully visible.
  3. Switch between the Claude, Codex, Cursor and Pi tabs. Expected: each command is fully visible and the dialog does not get wider.
  4. Click the copy button and paste the result somewhere. Expected: the command is on one line, exactly as before.
  5. Open Settings and find VS Code Extension: Manual install and upgrade. Expected: the install command still shows on one line and scrolls sideways as before.

I took the screenshots below from a local page that renders the real dialog in a 420px-wide Chromium window with scrollbars shown. The URL and session ID are placeholders. At 1280px wide, the dialog stayed 384px wide on all four tabs, with no sideways overflow. The existing dialog unit tests and lint pass. I did not test inside a live project.

Related Issue and Pull requests

Closes https://github.com/Shopify/oasis-frontend/issues/773

Type of Change

  • Bug fix

Line Breakdown

Category Added Removed
Production code 16 22
Comments 0 4
Total 16 26

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Before After
Attach an agent dialog before the fix: a grey scrollbar covers the command Attach an agent dialog after the fix: the full command wraps across four lines

Additional Comments

The fixed-height, absolutely positioned wrapper is gone. It existed only so the long command would not widen the dialog, and breaking inside long words does that job now. The contained prop is renamed to wrap to match what it does. The attach dialog was its only user.

🤖 Generated with Claude Code

The command sat in a fixed one-line box that scrolled sideways, so on
systems with always-visible scrollbars the scrollbar covered the text.
It now wraps, breaking inside long tokens so the dialog keeps its width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@camielvs
camielvs requested a review from a team as a code owner November 5, 2026 23:58
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: cvs/attach-agent-command-wrap/805f96c

@camielvs
camielvs merged commit 3511de2 into master Nov 6, 2026
18 checks passed
@camielvs
camielvs deleted the cvs/attach-agent-command-wrap branch November 6, 2026 16:06
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.

2 participants