Skip to content

fix(web): Open subagent in Background work looks like a button - #38317

Merged
shivamhwp merged 2 commits into
mainfrom
issue-watch/38287
Nov 24, 2026
Merged

shivamhwp merged 2 commits into
mainfrom
issue-watch/38287

Conversation

@shivamhwp

@shivamhwp shivamhwp commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #38287

"Open subagent" in the Background work dialog used the plain inline text style, so it sat under the task like another line of text. With no hover on touch devices it never read as a control. It now uses the shared outline button at small size, the same way other dialog actions are styled. The click handler is unchanged.

Before: "Open subagent" is plain text under the task.

Before: Open subagent is plain text

After: "Open subagent" is an outlined button.

After: Open subagent is an outlined button

Tested:

  • vp run check:changed (format, lint, knip, typecheck, tests, React Compiler coverage) passes at 496ceb8d93 on macOS.
  • Both captures are headless Chromium runs of the Background work dialog at 1280×800 in the web test harness, at the base 2df750e0c94 and with this fix. The branch was later rebased onto main at 439c96550c; those four commits change only server files, not the dialog or the button.

In the Linux Chromium web app on this head (496ceb8d93ac783fd2f3c02f211f568e5f454929), vp run dev with a real Codex subagent, from maria-rcks's verification (#38317 (comment)):

Before, on main at 37e9217b5696f33f347cdd282830e897a04c10ab: "Open subagent" is plain text in the live dialog.

Before: plain-text Open subagent in the live dialog on main

After, on this head: "Open subagent" is an outlined button in the live dialog.

After: outlined Open subagent in the live dialog on this head

Click-through: open Details, then Open subagent, which closes the dialog and opens the child thread. Then back to the parent through "Subagent of", and reopen and dismiss Details.

open-subagent-web.mp4

Mobile isn't affected: it shows background work in its own sheet (ThreadBackgroundWorkSheet.tsx), where each subagent row is the tap target.

Not shown: the Windows desktop app the issue was reported from. The test VM failed to start on both attempts, so the app did not run.

The web run also verified child navigation at 390 × 844 in Chromium.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 17, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 4a0ff2f

Macroscope's review found this PR approvable — Makes “Open subagent” appear as a small outlined button while preserving its existing navigation behavior. The change is presentation-only with no material risk identified.

No code changes detected at de40ae3. Prior analysis still applies.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Background work dialog now displays “Open subagent” as a small outlined button instead of an inline text button. Its click handler still closes the dialog and opens the child thread.

Changes: Background work action

Layer / File(s) Summary
Update the subagent action
apps/web/src/components/chat/BackgroundWorkDetails.tsx
The “Open subagent” control now uses a small outlined Button. Its click behavior is unchanged.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related PRs

Suggested reviewers: yash-singh1

Merge Risk: Minimal · up to de40a

The "Open subagent" action in the Background work dialog now appears as an outlined button, which makes it recognizable as clickable without hover. Its behavior is unchanged, and no actionable merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(web): Open subagent in Background work looks like a button" matches the changeset. The raw summary says BackgroundWorkDetails now uses the outlined, small Button variant for the "Open s…
Description check Passed The description covers the problem, the change, scope, and verification. It links issue #38287 and explains that the plain inline text did not read as a control on touch devices. It states the change …
Linked Issues check Passed Issue #38287 asks that "Open subagent" in the Background work dialog look like a clickable control, including on touch devices without hover. The whole-PR diff (merge base 0c13b2b to head de40ae3) c…
Out of Scope Changes check Passed The whole-PR diff against the merge base touches one file: BackgroundWorkDetails.tsx. The change adds Button to the existing import from ../ui/button, keeps InlineButton (still imported and used elsew…
Full details: Title check

Explanation

The title "fix(web): Open subagent in Background work looks like a button" matches the changeset. The raw summary says BackgroundWorkDetails now uses the outlined, small Button variant for the "Open subagent" action instead of InlineButton, and the objectives describe the same restyling. It follows the conventional commit format from the template and names the component area and the user-visible change.

Full details: Description check

Explanation

The description covers the problem, the change, scope, and verification. It links issue #38287 and explains that the plain inline text did not read as a control on touch devices. It states the change is a style swap to the shared outline button at small size, with the click handler unchanged. Verification includes before/after screenshots, a passing check:changed run, a Linux live-app run with a real Codex subagent, a click-through recording, and notes on what was not tested (Windows desktop app). It has no explicit template headings, but all required information is present and well organized.

Full details: Linked Issues check

Explanation

Issue #38287 asks that "Open subagent" in the Background work dialog look like a clickable control, including on touch devices without hover. The whole-PR diff (merge base 0c13b2b to head de40ae3) changes only apps/web/src/components/chat/BackgroundWorkDetails.tsx. At head, the action renders as <Button size="sm" variant="outline">, replacing the default-tone InlineButton. The outline variant gives the control a border and button styling at rest, which meets the visual objective. The onClick handler (setOpen(false), then props.onOpenThread(childThreadId)) is unchanged, which matches the issue, since it states the click already works. The head commit is a merge of main; it does not alter this file's diff against the merge base. Narrow-width and Windows desktop rendering were not verified by this assessment; the issue does not require a specific viewport. The author's screenshots and check run are not independent evidence; this verdict rests on the reviewed file diff.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff against the merge base touches one file: BackgroundWorkDetails.tsx. The change adds Button to the existing import from ../ui/button, keeps InlineButton (still imported and used elsewhere in the file), and swaps only the subagent action's component and props. No exported declarations change. The change connects directly to objective #38287. The head commit's merge of main brings in unrelated server and web commits, but those are ancestors of the merge base or outside this whole-PR diff, so they are not changes introduced by this PR.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 496ceb8 and de40ae3.

Files selected for processing: 1

  • apps/web/src/components/chat/BackgroundWorkDetails.tsx
Files skipped from review as they are similar to previous changes: 1

  • apps/web/src/components/chat/BackgroundWorkDetails.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 17, 2026
@juliusmarminge juliusmarminge added takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 17, 2026
The "Open subagent" action in the Background work dialog used the plain inline text style, so it read as another line of text. It now uses the shared outline button at small size, matching other dialog actions. The click handler is unchanged.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@maria-rcks

maria-rcks commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Written by gpt-6.1-sol on behalf of Maria

Verified in a real dev environment

Verified head 496ceb8d93ac783fd2f3c02f211f568e5f454929 as-is on Linux, using repository Playwright and /usr/bin/google-chrome against vp run dev.

  • Reproduced on github/main at 37e9217b56: "Open subagent" appeared as plain text without a border or background.
  • Created the project and thread through the web app against a real git repository. Ran Codex gpt-6.1-sol through the local proxy and had it launch a real asynchronous Codex subagent. No mocks, fixtures, or demo data.
  • On the PR head, Background work > Details shows the small outlined button. Clicking it dismisses the dialog and opens the correct live child thread. Returning through "Subagent of" opens the parent. Escape dismisses the dialog, and reopening it works.
  • Checked light and dark desktop rendering at 1280 x 800 and navigation at 390 x 844. The narrow dialog retains its button and running status.
  • The neighboring Stop action stopped the real delegated task and removed the waiting controls.
  • vp run check:changed HEAD^ passed through Blacksmith: format, lint, both knip checks, affected typechecks, the selected browser test, and React Compiler coverage. The explicit parent ref was necessary because the worker starts with a shallow source snapshot. Installed its missing Chromium dependency before the passing run.

Before on main, with the same task description:

before: plain-text open subagent in the live main dialog

After on the PR head:

after: outlined open subagent in the live PR dialog

Real interaction: open Details, open the child, return to the parent, reopen and dismiss Details. Inspected the recording and verified uploaded playback and seeking.

live codex subagent navigation and dialog dismissal

Not verified

Windows/macOS desktop shells and native iOS/Android clients were not run on this Linux VM. Phone width was checked in Chrome, not a native client or physical touchscreen. Remote relay/tunnel connections and providers other than Codex were not exercised.

No source changes were needed.

@shivamhwp
shivamhwp merged commit 7c42bb1 into main Nov 24, 2026
37 checks passed
@shivamhwp
shivamhwp deleted the issue-watch/38287 branch November 24, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Open subagent" in the Background work dialog looks like plain text, not a button

3 participants