Skip to content

fix(ui): keep Hub chat input from overlapping SessionInsights on paste#6719

Merged
zanesq merged 2 commits intoblock:mainfrom
Abhijay007:fix/cutOffChat
Feb 6, 2026
Merged

fix(ui): keep Hub chat input from overlapping SessionInsights on paste#6719
zanesq merged 2 commits intoblock:mainfrom
Abhijay007:fix/cutOffChat

Conversation

@Abhijay007
Copy link
Collaborator

@Abhijay007 Abhijay007 commented Jan 26, 2026

closes: #6673

Summary

Type of Change

  • Bug fix

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Screenshots/Demos (for UX changes)

Before:

After:

…g paste

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Copilot AI review requested due to automatic review settings January 26, 2026 18:14
@Abhijay007 Abhijay007 marked this pull request as draft January 26, 2026 18:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a Hub layout issue where pasting/typing long text in the ChatInput could push other UI (e.g., bottom menu / SessionInsights content) off-screen or cause overlap.

Changes:

  • Tightens flexbox sizing/overflow behavior across the sidebar/app layout to allow proper shrinking (min-h-0, overflow-hidden, h-svh).
  • Caps Recent Chats list height in SessionInsights to prevent vertical growth.
  • Adjusts Hub layout to constrain ChatInput and prevent it from taking over the full screen; moves ChatInput action buttons to bottom-right and increases right padding.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ui/desktop/src/components/ui/sidebar.tsx Updates wrapper/inset flex sizing (min-h-0) and constrains overflow to prevent layout blowouts.
ui/desktop/src/components/sessions/SessionsInsights.tsx Adds max height + hidden overflow for Recent Chats list to limit vertical expansion.
ui/desktop/src/components/Layout/AppLayout.tsx Adds min-h-0 to ensure nested flex children can shrink correctly.
ui/desktop/src/components/Hub.tsx Reworks Hub column layout and constrains ChatInput section height/overflow.
ui/desktop/src/components/ChatInput.tsx Repositions inline action buttons and adjusts textarea right padding to avoid overlap with buttons.

toolCount={0}
onWorkingDirChange={setWorkingDir}
/>
<div className="flex-shrink-0 max-h-[50vh] min-h-0 overflow-hidden flex flex-col">
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrapping ChatInput in a max-h-[50vh] overflow-hidden container can clip ChatInput’s bottom controls (dir switcher / menus) on shorter window heights with no way to scroll to them. Consider using overflow-y-auto (or overflow-auto) for this wrapper, or removing the overflow constraint and relying on the textarea’s internal max-height/scrolling.

Suggested change
<div className="flex-shrink-0 max-h-[50vh] min-h-0 overflow-hidden flex flex-col">
<div className="flex-shrink-0 max-h-[50vh] min-h-0 overflow-y-auto flex flex-col">

Copilot uses AI. Check for mistakes.
@zanesq
Copy link
Collaborator

zanesq commented Jan 28, 2026

@Abhijay007 is this ready for review?

@Abhijay007
Copy link
Collaborator Author

@Abhijay007 is this ready for review?

No @zanesq, it’s only partially solved. I was able to fix the chat input size issue, but it’s still kind of overlapping with the sessionInsights section.

Could you please take a look and help review why this is happening? I tried a few CSS tweaks, but they’re not working as expected, its still overlap there a bit, and it doesn’t look good from a UX perspective.

I think if we can just eliminate the extra gap between the chat input and the session insights, especially for long text, this PR should be good to go.

@zanesq
Copy link
Collaborator

zanesq commented Jan 28, 2026

@Abhijay007 np will take a look!

@sheikhlimon
Copy link
Contributor

sheikhlimon commented Jan 28, 2026

@Abhijay007 Thanks for jumping on this, really appreciate the progress.

I reviewed it a bit and agree on the UX perspective. I didn’t open a PR earlier since I wasn’t sure about the UX call given how the layout is structured.

@zanesq Maybe worth considering collapsing or hiding the upper section / sessionInsights while typing? Feels non-essential in that state and could avoid the overlap.

@Abhijay007 Abhijay007 marked this pull request as ready for review January 28, 2026 18:21
@Abhijay007 Abhijay007 requested a review from zanesq January 30, 2026 12:14
@zanesq
Copy link
Collaborator

zanesq commented Feb 4, 2026

Sorry been too busy to pick this up will take a look asap @Abhijay007 when you get a chance can you merge in main and resolve conflicts?

@Abhijay007
Copy link
Collaborator Author

Sorry been too busy to pick this up will take a look asap @Abhijay007 when you get a chance can you merge in main and resolve conflicts?

Most probably tomorrow I resolve most of my Prs

Copy link
Collaborator

@zanesq zanesq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Verified working locally

@zanesq zanesq enabled auto-merge February 5, 2026 23:52
@zanesq zanesq added this pull request to the merge queue Feb 5, 2026
Merged via the queue into block:main with commit edde10a Feb 6, 2026
18 checks passed
katzdave added a commit that referenced this pull request Feb 6, 2026
…webtoken-10.3.0

* origin/main: (54 commits)
  Switch tetrate tool filtering back to supports_computer_use (#7024)
  feat(ui): add inline rename for chat sessions in sidebar (#6995)
  fix: handle toolnames without underscores (#7015)
  feat(claude-code): use stream-json protocol for persistent sessions (#7029)
  test(providers): add model listing to live provider suite (#7038)
  Agent added too much (#7036)
  fix(deps): bump tree-sitter to 0.26 and set sqlx default-features=false to fix RUSTSEC advisories (#7031)
  feat: add image support and improve error resilience for Codex (#7033)
  fix(providers): Azure OpenAI model listing 404 during configure (#7034)
  fix(deps): bump bat to 0.26.1 to resolve RUSTSEC-2026-0008 (#7021)
  Don't swallow Tetrate errors  (#6998)
  docs: remove hardcoded_stuff links (#7016)
  fix(ui): keep Hub chat input from overlapping SessionInsights on paste (#6719)
  Clean up css (#6944)
  docs: aws bedrock bearer token auth (#6990)
  docs: extended custom provider headers support (#7012)
  feat(cli): add type-to-search filtering to select/multiselect dialogs (#6862)
  feat(ci): add cargo-audit workflow for scanning rust vulnerabilities (#6351)
  feat: add User-Agent header to MCP HTTP requests (#6988)
  chore(deps-dev): bump webpack from 5.102.1 to 5.105.0 in /ui/desktop (#6996)
  ...

# Conflicts:
#	Cargo.lock
kuccello pushed a commit to kuccello/goose that referenced this pull request Feb 7, 2026
block#6719)

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Co-authored-by: Zane Staggs <zane@squareup.com>
Tyler-Hardin pushed a commit to Tyler-Hardin/goose that referenced this pull request Feb 11, 2026
block#6719)

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Co-authored-by: Zane Staggs <zane@squareup.com>
Tyler-Hardin pushed a commit to Tyler-Hardin/goose that referenced this pull request Feb 11, 2026
block#6719)

Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Co-authored-by: Zane Staggs <zane@squareup.com>
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.

On Home bottom menu and buttons gets pushed below off-screen when pasting or typing long text

3 participants