Skip to content

fix(web): keep wizard Cancel/Next visible when the content is taller than the dialog - #49393

Merged
juliusmarminge merged 2 commits into
mainfrom
factory/issue-29336-a29357
Dec 5, 2026
Merged

juliusmarminge merged 2 commits into
mainfrom
factory/issue-29336-a29357

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

In Settings → Providers → Add provider, expanding the provider list and the ACP Registry made the wizard taller than the window. That pushed Cancel/Next out of the dialog until you scrolled the whole dialog. Wizards now scroll only their content panel, as other dialogs do, so the header and footer stay in place. This applies to every wizard built on WizardPopup.

  • WizardPopup no longer wraps its children in a scroll area; it only clips sideways, as before.
  • WizardPanel shrinks to the space left and scrolls its own content. A caller's className, such as a minimum height, now applies to that scrolled content, so a step with a minimum height still fits short windows.

Fixes #29336

Reproduction on main

Commit 00599a7 (origin/main). Ran the Linux desktop app: T3CODE_DEV_SEED=0 T3CODE_DESKTOP_REMOTE_DEBUGGING_PORT=9337 headless-desktop vp run dev:desktop (fresh database, Xvfb), then drove it over CDP with Playwright. Steps: viewport set to 1745 wide (about 1920 at 110%); Settings → Providers → Add provider; select OpenCode; click 'Show more', which reveals fx and Kiro and the 'Or choose from ACP Registry' list. Measured the wizard popup and footer.

Evidence

On both commits: fresh synthetic project and replay thread; Chromium on Linux, light theme, 1745×800 viewport. Open Settings → Providers → Add provider, select OpenCode, click Show more, and capture without scrolling the dialog.

Scenario: Expanded provider list keeps Cancel and Next visible

Proven: the scenario fails on base 2fe9f93296 and passes on head bc83459fc9.

Base 2fe9f93296 Head bc83459fc9
Result ❌ failed
ASSERTION_FAILED: expected [{"label":"Cancel","visible":false},{"label":"Next","visible":false}] to equal [{"label":"Cancel","visible":true},{"label":"Next","visible":true}]
✅ passed
expanded provider list 1745x800 Base 2fe9f93296: expanded provider list 1745x800 Head bc83459fc9: expanded provider list 1745x800
failure Base 2fe9f93296: failure

Before recording · After recording (trimmed to the provider expansion).

Scenario source

Not shown:

  • The 1745×940 viewport and Electron shell were not separately exercised; this proof covers the shared web dialog at the reported shorter 1745×800 viewport.

Tests

  • vp test run src/components/settings/AddProviderInstanceDialog.environment.browser.test.tsx (apps/web): 3 passed
  • vp run check:changed: format, lint, knip, i18n, typecheck (2 packages), react compiler all pass
  • Real web app with a Playwright driver, Add provider step 0 with 'Show more' at 1745x800/940/600: footer clipped or off-screen on main, inside the popup with the fix. The dialog is pixel-identical to main when nothing overflows (1745x1100).
  • Real web app, ACP Registry identity step (min-h-72) at 1745x450: footer inside the popup with the panel scrolling. Pixel-identical at 1745x1100.

Not in this change

  • The ACP Registry list keeps its own inner scroller (256px) inside the now-scrolling panel, so the panel has a nested scroll area; left unchanged.
  • No scroll fade was added to the wizard panel, although DialogPanel has one, to avoid a visual change beyond the fix.

Who did the work

  • Written by Claude Opus 5.5, in Claude Code
  • Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
  • Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5

Run by the t3code factory in T3 Code.

juliusmarminge and others added 2 commits December 5, 2026 12:20
…than the dialog

WizardPopup wrapped the header, panel and footer in one ScrollArea, so a
tall step (Add provider with the ACP Registry list shown) pushed the footer
below the dialog's max height. Scroll only WizardPanel, as DialogPanel does,
and keep the header and footer fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ndows

The caller's className (min-h-72 on the Authentication and ACP identity
steps) landed on the panel's flex item and overrode min-h-0, so in short
windows the footer was pushed below the screen with nothing to scroll.
Apply it to the scrolled content instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Dec 5, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at bc83459

Macroscope's review found this PR approvable — Wizard content now scrolls independently so header and footer controls remain visible in tall dialogs. The change is limited to shared layout styling and does not alter setup actions or product defaults.

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

@coderabbitai

coderabbitai Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

WizardPopup now clips horizontal overflow around its children. WizardPanel places its padded, animated content inside a ScrollArea and moves its background and ring styling to an outer container.

Changes: Wizard layout

Layer / File(s) Summary
Wizard content and scrolling
apps/web/src/components/ui/wizard.tsx
WizardPopup uses a clipped flex container. WizardPanel moves background and ring styles to an outer flex container and wraps its padded, animated content in a ScrollArea.

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

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: chenxin-yan

Merge Risk: Minimal · up to bc834

This change keeps the wizard header and footer visible while only the panel content scrolls. No concrete merge-blocking risk was found, and the change is easy to roll back.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change and its scope. The raw summary shows WizardPopup stops wrapping children in a ScrollArea and WizardPanel takes over scrolling, so only the content panel scrolls and the Canc…
Linked Issues check Passed [#29336] The issue asks that the Add Provider wizard keep Next visible while provider and ACP Registry content scrolls. At head, WizardPopup (apps/web/src/components/ui/wizard.tsx) no longer wraps c…
Out of Scope Changes check Passed The whole-PR diff against the merge base 2fe9f93 touches only apps/web/src/components/ui/wizard.tsx, within the WizardPopup and WizardPanel functions. Every change serves the layout fix in #293…
Description check Passed The description is thorough and follows the repository template closely. It has a clear Problem (the wizard grows taller than the window, pushing Cancel and Next out of view), a Change section (Wizard…
Full details: Title check

Explanation

The title names the change and its scope. The raw summary shows WizardPopup stops wrapping children in a ScrollArea and WizardPanel takes over scrolling, so only the content panel scrolls and the Cancel/Next footer stays visible. The title matches the main change in the changeset and the linked objective. It uses the conventional commit format and is specific. It also does not describe the implementation details, which is acceptable.

Full details: Linked Issues check

Explanation

[#29336] The issue asks that the Add Provider wizard keep Next visible while provider and ACP Registry content scrolls. At head, WizardPopup (apps/web/src/components/ui/wizard.tsx) no longer wraps children in a ScrollArea. It renders a flex min-h-0 flex-col overflow-x-clip container, so the header and footer are not inside a scroll viewport. WizardPanel is now a flex min-h-0 min-w-0 flex-col element with its own ScrollArea around the padded content. This makes the panel shrink and scroll, while the footer stays in the dialog. The caller className moves to the scrolled content wrapper, so a minimum height on a step still applies. This matches the expected behavior. The PR description reports Playwright checks at short and tall viewports and a passing browser test for the Add Provider dialog. I did not re-run those checks. The diff also removes space-y-4 from the panel's outer element. I infer this has no visible effect, because the outer element wraps a single AnimatedHeight child. I did not verify AnimatedHeight output or the caller classes, so this is an inference.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff against the merge base 2fe9f93 touches only apps/web/src/components/ui/wizard.tsx, within the WizardPopup and WizardPanel functions. Every change serves the layout fix in #29336: removing the scroll wrapper from the popup, adding a scroll area to the panel, and moving className to the scrolled content. The PR description also reports a browser test and layout checks, which support the change. The PR description notes that the nested ACP Registry scroller and the missing scroll fade remain unchanged, and the diff shows no changes to those areas. No unrelated change was found in the diff.

Full details: Description check

Explanation

The description is thorough and follows the repository template closely. It has a clear Problem (the wizard grows taller than the window, pushing Cancel and Next out of view), a Change section (WizardPopup stops wrapping children in a scroll area, and WizardPanel scrolls its own content, with caller className applied to that content), a Scope section that links issue #29336 as the bug, and a Verification section. Verification includes a reproduction on main with the Linux desktop app, a Playwright scenario with before/after results and screenshots, unit test results (3 passed), check:changed results, and pixel-identical checks at a non-overflow size. It also lists what was not checked, namely the 1745x940 viewport and the Electron shell. The template asks for the model and harness at the end, and the author provides that. The Problem section does not state the expected behavior explicitly, but the context makes it clear. Minor gaps only, so the check passes.

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 0ac6e29 and bc83459.

Files selected for processing: 1

  • apps/web/src/components/ui/wizard.tsx

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

@juliusmarminge
juliusmarminge merged commit 5456da8 into main Dec 5, 2026
39 checks passed
@juliusmarminge
juliusmarminge deleted the factory/issue-29336-a29357 branch December 5, 2026 12:54
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Dec 5, 2026
**v0.1.14-nightly.20261205.5772** · 24 changes from 9 contributors

- **Claude task lists.** Claude and the Agent tasks panel now keep the same task list after /clear.
- **Claude background work.** Long-running Claude subagents and background tasks no longer lose their work to idle cleanup.
- **Faster force stop.** Force stop is faster on long threads.

### Plus 19 more bug fixes and performance improvements.

<details>
<summary>Full changelog</summary>

## What's Changed
* fix(web): hide stale HTML source truncation notice in rendered preview by @only21mil in pingdotgg/t3code#49370
* fix(client-runtime): hiding skills from / also hides Claude's skill commands by @juliusmarminge in pingdotgg/t3code#49382
* fix(web): keep wizard Cancel/Next visible when the content is taller than the dialog by @juliusmarminge in pingdotgg/t3code#49393
* fix(web,mobile): memory warning names the machine first by @t3dotgg in pingdotgg/t3code#49406
* test(web): thread-structure leak test waits for pending work before failing by @t3dotgg in pingdotgg/t3code#49410
* fix(server): cancelling a new project no longer leaves its folder behind by @only21mil in pingdotgg/t3code#49391
* fix(server): an unsettle in the same turn cancels a pending self-settle by @fe-franco in pingdotgg/t3code#49379
* fix(web): model and skill mentions in markdown table cells render as chips by @juliusmarminge in pingdotgg/t3code#49403
* fix(server): a PR watch reports a pass once per head through reruns by @juliusmarminge in pingdotgg/t3code#49395
* fix(desktop): mute hidden browser previews by @Yash-Singh1 in pingdotgg/t3code#49425
* fix(server): ignore rolled-back runs in stopped delegated-task notices by @only21mil in pingdotgg/t3code#49392
* fix(web): download the HEIC decoder once for previews and attachments by @juliusmarminge in pingdotgg/t3code#49412
* fix(server): keep Claude's task list across /clear in the same thread by @juliusmarminge in pingdotgg/t3code#49420
* fix(server): preview file chooser no longer drops JSON file uploads by @taogezhizun in pingdotgg/t3code#49416
* fix(web): ignore modified arrow and space chords in environments map by @only21mil in pingdotgg/t3code#49418
* perf(server): limit history reads for force stop by @juliusmarminge in pingdotgg/t3code#49384
* perf(server): limit reads when stopping delegated tasks by @UtkarshUsername in pingdotgg/t3code#49375
* test(mobile-nitro): Ctrl+C cancels a split paste held at a startup prompt by @StiensWout in pingdotgg/t3code#49399
* fix(server): PR creates and pushes after a heredoc opener are no longer missed by @only21mil in pingdotgg/t3code#49381
* fix(mobile): keep the reading position when the chat column changes width by @juliusmarminge in pingdotgg/t3code#49434
* fix(client-runtime): show the new project icon when it is too large to cache by @only21mil in pingdotgg/t3code#49436
* fix(server): idle cleanup no longer kills Claude background work after four hours by @juliusmarminge in pingdotgg/t3code#49438
* fix(acp): clear background work on runtime exit and settled-turn Stop by @snwchd71 in pingdotgg/t3code#49409
* fix(desktop): Linux payload validation rejects missing or wrong-arch natives by @juliusmarminge in pingdotgg/t3code#49429

## New Contributors
* @taogezhizun made their first contribution in pingdotgg/t3code#49416
* @snwchd71 made their first contribution in pingdotgg/t3code#49409

**Full Changelog**: pingdotgg/t3code@v0.1.14-nightly.20261205.5766...v0.1.14-nightly.20261205.5772

</details>


Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.14-nightly.20261205.5772
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). 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.

Add provider dialog hides the Next button below the scrollable provider list

1 participant