Skip to content

Agent Detail: Chat tab content width jumps when switching to/from any other tab #954

Description

@vybe

Summary

On the Agent Detail page, switching between the Chat tab and any other tab (Overview, Info, Tasks, Logs, Schedules, …) causes a visible horizontal jump — the content area changes width when you land on Chat and snaps back when you leave it. The max-w-[1400px] constraint is identical across tabs, but the Chat tab renders its content in a different layout mode and at a different inner width, so the content shifts left/right on every switch.

History / scope change: Originally filed covering both the Chat and Session tabs. Since #1112 merged Session into Chat (Session is now a mode toggle inside the single Chat tab, not its own tab), this bug is scoped to the Chat tab only. A first fix (#956, scrollbar-gutter: stable) shipped and removed the ~15px body-scrollbar shift, but the jump still happens, so the issue was closed prematurely. Reopened, refocused on the Chat tab, raised to P1.

Context

src/frontend/src/views/AgentDetail.vue:358 flags the Chat tab as "fullscreen":

const isFullscreenTab = computed(() => activeTab.value === 'chat')

When isFullscreenTab is true the page wrapper switches layout modes:

  • Root (:2): min-h-screen → h-screen overflow-hidden flex flex-col
  • <main> (:5): overflow-visible → flex-1 flex flex-col overflow-hidden
  • Inner padded wrapper (:6): overflow-visible → flex-1 flex flex-col overflow-hidden
  • Agent block (:25): adds flex-1 flex flex-col min-h-0
  • Panel card (:73): adds flex-1 flex flex-col overflow-hidden

Two contributors:

  1. Body scrollbar gutter — ADDRESSED (fix(ui): reserve scrollbar gutter on html (#954) #956). Non-Chat tabs are min-h-screen and can scroll (scrollbar reserved); Chat is h-screen overflow-hidden (no scrollbar). scrollbar-gutter: stable (src/frontend/src/style.css:9) now reserves the gutter in both modes, so this ~15px shift is gone. Re-verify it's still in effect and sufficient — if the jump persists this may have regressed or be insufficient on some browsers.

  2. Inner-content padding mismatch — NOT ADDRESSED (likely the residual cause). Every other tab wraps its content in class="p-6" (Overview :78, Info :83, Tasks :88, …), inset 24px on each side inside the panel card. The Chat tab wraps in class="flex-1 overflow-hidden flex flex-col" (:94) with no horizontal padding — content runs flush to the card edge. That's a 48px inner-width difference, so the message thread / composer aligns differently from the body content of Info/Overview, reading as a horizontal jump on every switch.

Acceptance Criteria

  • Switching between the Chat tab and any other tab (Chat ↔ Overview, Chat ↔ Info, Chat ↔ Tasks, …) does not visibly shift the content area left/right or change its width
  • Confirm the scrollbar-gutter: stable fix (fix(ui): reserve scrollbar gutter on html (#954) #956) is still in effect and sufficient; repair it if not
  • Chat-tab inner content aligns horizontally with the body content of the other tabs (Info / Overview), OR any intentional difference is animated smoothly rather than snapping
  • Works in both light and dark themes
  • Works at common breakpoints (sm, lg, and wider than max-w-[1400px])

Technical Notes

Activity

  1. added
    priority-p3
    type-bug
    priority-p2
    and removed
    priority-p3
    on May 26, 2026
  2. self-assigned this
    on May 29, 2026
  3. vybe commented on Jun 1, 2026

    @vybe
    ContributorAuthor

    Fixed by #956 (merged to dev as 74ee275). html { scrollbar-gutter: stable; } reserves the gutter at the document level, eliminating the horizontal panel jerk when switching to/from Chat/Session tabs.

  4. vybe commented on Jun 1, 2026

    @vybe
    ContributorAuthor

    Reopening — merged to dev (74ee275) but not yet released to main. Moving to in-dev until the release cut.

  5. reopened this on Jun 1, 2026
  6. added
    complexity-low
    status-ready
    on Jun 12, 2026
  7. reopened this on Jun 29, 2026
  8. changed the title [-]Agent Detail panel width jerks when switching to/from Chat or Session tab[/-] [+]Agent Detail: Chat tab content width jumps when switching to/from any other tab[/+] on Jun 29, 2026
  9. added
    priority-p1
    and removed
    priority-p2
    on Jun 29, 2026
  10. added
    status-in-dev
    and removed
    status-ready
    on Jul 2, 2026
  11. removed
    status-in-dev
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-lowpriority-p1theme-ui-uxtype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions