Skip to content

fix(layout): keep the composer on screen when session tabs are open - #579

Open
frankfnord wants to merge 1 commit into
ompweb-dev:mainfrom
frankfnord:fix/composer-clipped-by-session-tabs
Open

frankfnord wants to merge 1 commit into
ompweb-dev:mainfrom
frankfnord:fix/composer-clipped-by-session-tabs

Conversation

@frankfnord

@frankfnord frankfnord commented Nov 26, 2026 •

Copy link
Copy Markdown

With session tabs open, the bottom ~37px of the chat (model picker, send button) are cut off and can't be scrolled into view.

Cause: in AppShell, the chat content container is a plain block that holds both SessionTabs and ChatWindow. ChatWindow's root uses h-full, so it takes the container's full height but starts below the tab strip, and overflows it by the tab height. The container's overflow: hidden clips exactly that strip.

Measured in the browser (viewport 1231px): container bottom 1232, ChatWindow root top 73 / bottom 1269 / height = container height.

Fix:

  • AppShell.tsx: chat content container becomes a flex column (display: flex; flex-direction: column; min-height: 0).
  • ChatWindow.tsx: root uses flex-1 min-h-0 instead of h-full, so it fills only the space below the tabs. SessionTabs already has flex-shrink: 0.

Repro: open two or more sessions so the tab strip shows, then look at the bottom of the composer.

Verified: tsc --noEmit clean, eslint 0 errors (5 pre-existing warnings in untouched lines of AppShell.tsx), 672 tests pass in ./components, checked in the browser with tabs open.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Improved the chat layout so it flexibly uses the available space beneath the session tabs. The chat window now adapts more reliably to its container while keeping content within the established layout boundaries.

ChatWindow used h-full inside a block container that also holds
SessionTabs, so it took the full height and started below the ~37px
tab strip. The bottom 37px (model picker, send button) were clipped by
the parent overflow:hidden.

Make the chat content container a flex column and let ChatWindow fill
the remaining space with flex-1 min-h-0 instead of h-full.

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

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The chat content and ChatWindow containers now use flexible sizing and minimum-height constraints.

Changes: Chat layout

Layer / File(s) Summary
Chat container sizing
components/AppShell.tsx, components/ChatWindow.tsx
AppShell adds flex-column display and minHeight: 0 to the chat content container. ChatWindow replaces h-full with min-h-0 flex-1.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: kahme247, andrebrait

Merge Risk: Minimal · up to 6373e

This change keeps the composer controls visible when session tabs are open by switching the chat area to flexible sizing. It touches only layout styling and has no observed adverse impact, so the merge risk is minimal.

Security architecture risk: Minimal · up to 6373e

The change keeps the chat composer visible when session tabs are open without changing how sessions are selected or how chat inputs are handled.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: a layout fix that keeps the composer visible when session tabs are open. The changeset makes the AppShell chat container a flex column and changes the ChatWindow root …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a layout fix that keeps the composer visible when session tabs are open. The changeset makes the AppShell chat container a flex column and changes the ChatWindow root from h-full to flex-1 min-h-0 so chat content fills the space below SessionTabs, which matches the objective of preventing the composer's bottom controls from being clipped. The title is specific and uses the conventional fix(layout) prefix.

Finishing Touches

Generate unit tests (beta)

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

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1d2f95e1-2bfe-4c20-80e0-ba73436a01e1
Commits

Reviewing files that changed from the base of the PR and between 4be697c and 6373e87.

Files selected for processing: 2

  • components/AppShell.tsx
  • components/ChatWindow.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.

@frankfnord

Copy link
Copy Markdown
Author

The red Verify (macos-latest) check is unrelated to this change: a single test, UNC directory authorization and Git diff preserve the share … in lib/hosts/workspace-unc.test.mjs, hit the 30s timeout (also on the automatic retry). All other tests passed, and Ubuntu and Windows are green. This PR only touches layout in AppShell.tsx and ChatWindow.tsx.

It looks like the same macOS timeout flake seen in other lib/hosts runs. I can't rerun the job without admin rights, so could a maintainer rerun the failed job (run 45891383320)? Thanks!

This branch has not been deployed

No deployments
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