Skip to content

fix(gui): let the Combos page scroll past suggested combos - #9105

Merged
lidge-jun merged 3 commits into
lidge-jun:devfrom
shu-chen-dot-ca:fix-9101-combos-scroll
Nov 25, 2026
Merged

lidge-jun merged 3 commits into
lidge-jun:devfrom
shu-chen-dot-ca:fix-9101-combos-scroll

Conversation

@shu-chen-dot-ca

@shu-chen-dot-ca shu-chen-dot-ca commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #9101. On Models -> Combos, when the "Suggested combos" box is shown, the combo workspace below it cannot be scrolled into view: its lower fields and the Save / Remove bar stay off-screen and nothing moves on wheel or trackpad.

The suggestions render inside .combos-workspace-shell-body, above .combos-workspace-root. The grid keeps the body's full height (height/min-height: 100%), so it ends below the viewport by the height of the suggestions, and the body clipped it with overflow: hidden. The rule meant to shrink the grid, .rb-suggest + .combos-workspace-root, never matches, because #8914 wraps the suggestions in fieldset.rb-suggest-policy. Matching it would not be enough either: with "Show all" open the suggestions are taller than the body, and a shrinkable grid collapses to zero height.

The shell body now scrolls vertically (overflow-y: auto, overflow-x stays hidden), and the grid inside it keeps its full height (flex: 0 0 auto). Scrolling first moves the suggestions out of the way, then the grid fills the visible area with its own rail and detail scrolling as before. The dead sibling rule is removed. Without suggestions the body has nothing to scroll, so the layout is unchanged.

Verification

  • New gui/tests/combos-workspace-scroll.test.ts (source-level, same style as viewport-scroll-caps.test.ts): fails on dev (2 fail) and passes with the fix.
  • cd gui && bun test --isolate tests && bun run lint && bun run build: 4831 pass, 0 fail; oxlint 0 warnings, 0 errors; build succeeded.
  • Rendered check, built dashboard served by ocx start with three OpenAI-compatible test providers sharing model names (so suggestions appear), headless Chromium, 40 wheel steps over the workspace, then comparing the grid's bottom edge with the viewport:
    • Before: at 1440x900, 1280x720 and 800x700, with suggestions collapsed and with "Show all", the grid ended 311 to 1542 px below the viewport in every case.
    • After: the grid ends exactly at the viewport bottom in all six cases and keeps its full height (746 / 566 / 526 px). The detail panel scrolls to its last field; at 480x800 the last field is reachable too.
    • No suggestions block: shell body scrollHeight == clientHeight, document not scrollable, same as before.
    • Scrolling back up brings the suggestions back to their original position.
  • Full-suite scope exception: bun run test (root suite) was not run. The change is one GUI stylesheet plus a GUI test; the root suite does not load GUI CSS. The GUI checks above are the ones gui/AGENTS.md asks for before a PR.
  • Current head 4dac387 (dev merges): since 0e04e16, where the checks above ran, the merges add only devlog/ files (docs(devlog): proxy upstream catch-up roadmap #9106) and two root test files (test: stabilize Link preflight and standalone stop checks #9064), nothing under gui/; the diff against dev is unchanged (the same two files). bun test --isolate tests/combos-workspace-scroll.test.ts on 4dac387: 2 pass, 0 fail.

Screenshots (Firefox, 1280x800, scrolled to the bottom):

Before After
before after

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed. (No user-facing workflow changes; none needed.)
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults. (CSS only.)

Review readiness checklist

This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:

  • Required local validation passed; commands, results, and any full-suite exception are documented.

  • I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).

  • I resolved all correct Codex and CodeRabbit findings.

  • My PR is ready for review.

Summary by CodeRabbit

  • Bug Fixes
    • The combos workspace now scrolls vertically when its content exceeds the available space, while continuing to hide horizontal overflow.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

✅ READY

  • all PR quality gates passed; the review readiness checklist is complete.

Review readiness checklist

  • ✅ Required local validation passed; commands, results, and any full-suite exception are documented.
  • ✅ I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
  • ✅ I resolved all correct Codex and CodeRabbit findings.
  • ✅ My PR is ready for review.

✅ 4/4 boxes ticked.

UI screenshot waived by a maintainer comment.
This pull request is already Ready for Review.
The review-ready label marks this PR as ready; review automation runs independently.
Maintainers: @lidge-jun @Ingwannu

Hygiene

✅ Deterministic PR hygiene checks passed.

@github-actions
github-actions Bot marked this pull request as draft November 25, 2026 00:43
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Combos workspace shell body now supports vertical scrolling and hides horizontal overflow. The workspace root uses fixed flex sizing as a direct child. New tests check the relevant CSS declarations using source-text assertions.

Changes: Combos workspace scrolling

Layer / File(s) Summary
Shell body scrolling and validation
gui/src/styles-combos-workspace.css, gui/tests/combos-workspace-scroll.test.ts
The shell body changes from clipped overflow to vertical scrolling with hidden horizontal overflow. The direct workspace-root child receives flex: 0 0 auto. Tests check the overflow and flex declarations and confirm that the former sibling selector is absent.

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

Change: Bug fix · Severity of issue fixed: Medium

Possibly related PRs

  • lidge-jun/opencodex#8739: This PR adds the Suggested combos panel on the same page. The scrolling changes concern access to lower content when that panel is shown.

Suggested labels: bug

Merge Risk: Minimal · up to 0e04e

This change makes the Models → Combos page scrollable when suggestions are shown, so lower fields and the Save / Remove bar can be reached. The change is limited to CSS plus a test, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(gui): let the Combos page scroll past suggested combos" matches the main change. The PR makes the shell body the vertical scroll container when suggested combos are shown, so users can …
Linked Issues check Passed Linked issue #9101 requires the Models → Combos page to scroll so lower combo content and the Save / Remove bar are reachable by wheel or trackpad. The reviewed head changes `.combos-workspace-shell-b…
Out of Scope Changes check Passed The PR touches only gui/src/styles-combos-workspace.css and adds gui/tests/combos-workspace-scroll.test.ts. Every stylesheet change targets the shell body, the grid child, or the removed sibling selec…
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "fix(gui): let the Combos page scroll past suggested combos" matches the main change. The PR makes the shell body the vertical scroll container when suggested combos are shown, so users can scroll past suggestions to reach lower combo fields and the Save / Remove bar. The raw summary confirms the CSS changes in gui/src/styles-combos-workspace.css and the new scroll test. The title is concise, specific, and follows a conventional commit style.

Full details: Linked Issues check

Explanation

Linked issue #9101 requires the Models → Combos page to scroll so lower combo content and the Save / Remove bar are reachable by wheel or trackpad. The reviewed head changes .combos-workspace-shell-body in gui/src/styles-combos-workspace.css to overflow-y: auto and overflow-x: hidden (previously overflow: hidden). The grid child .combos-workspace-shell-body > .combos-workspace-root gets flex: 0 0 auto, so it keeps its full height and the body scrolls past the suggestions. The dead .rb-suggest + .combos-workspace-root rule is gone from the head file. The issue allows either document or inner-panel scrolling, so an inner-panel scroll container meets it. Source evidence at head matches the PR description. The rendered geometry results (grid bottom at viewport bottom at six sizes, no-suggestion layout unchanged) are author-reported; I did not re-run them. New test gui/tests/combos-workspace-scroll.test.ts asserts the overflow-y, flex, and removed-selector rules. Note: the diff tool was unavailable for this PR, so I compared the head file contents and the PR description rather than a text diff against the merge base.

Full details: Out of Scope Changes check

Explanation

The PR touches only gui/src/styles-combos-workspace.css and adds gui/tests/combos-workspace-scroll.test.ts. Every stylesheet change targets the shell body, the grid child, or the removed sibling selector that caused the #9101 clipping, and the test checks those same rules. No unrelated selectors or components were changed as far as the head file and PR summary show. The rendered-check and full-suite results are author-reported and were not independently re-run. Scope conclusion relies on the summary and head file contents, since a text diff against the merge base was unavailable.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9e0e298 and 0e04e16.

Files selected for processing: 2

  • gui/src/styles-combos-workspace.css
  • gui/tests/combos-workspace-scroll.test.ts

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

@github-actions
github-actions Bot marked this pull request as ready for review November 25, 2026 00:49
@github-actions
github-actions Bot marked this pull request as draft November 25, 2026 01:13
@github-actions
github-actions Bot marked this pull request as ready for review November 25, 2026 01:18
@github-actions
github-actions Bot marked this pull request as draft November 25, 2026 01:34
@lidge-jun

lidge-jun commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Maintainer integration into dev (MAINTAINERS.md, maintainer-integration path).

  • Exact head: 4dac387e4e50b7cb6fdd3a7e34558d2d78f956a3, which contains current dev 9c3ddc4f5656fb69c60670cf09fe369d24784838.
  • PR checks passing on that head: enforce / enforce-target, enforce / resolve-pr, hygiene / hygiene, label / label, ci, npm-global ubuntu-latest, test changed, docker smoke, gates, api usage, storage policy, react-doctor, changes, select windows runner. Skipped jobs are not counted as passing.
  • Local: after merging dev: bun run typecheck passed; cd gui && bun test tests/combos-workspace-scroll.test.ts 2 pass (the root test:changed selects no tests for gui/ files; the hosted test changed job passed).
  • Independent review (gpt-6.1-terra): APPROVE, no findings. The new test fails on dev CSS (2 expected failures); focused GUI tests 63 pass; gui build passes.
  • scripts/ci/assert-mergeable-review.sh --maintainer-integration 9105: OK.

@lidge-jun
lidge-jun marked this pull request as ready for review November 25, 2026 01:42
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T01:44:55.487382Z 4dac387 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lidge-jun
lidge-jun merged commit 394af78 into lidge-jun:dev Nov 25, 2026
36 checks passed
@shu-chen-dot-ca
shu-chen-dot-ca deleted the fix-9101-combos-scroll branch November 25, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working review-ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Models → Combos page cannot be scrolled; lower content is unreachable

2 participants