LiveAgent icon indicating copy to clipboard operation
LiveAgent copied to clipboard

[Bug] WebUI 轨迹详情长内容被裁剪且无法滚动

Open Owlbay opened this issue 3 months ago • 0 comments

Affected area

Desktop UI (agent-gui / React) — Gateway WebUI trajectory surface

Version or commit

main@dbca2cd1e0e0c7f060f9b8a30b8aabbd7eeeb178

Environment

OS: macOS (Apple Silicon) Deployment: Gateway WebUI Browser: Chromium

Steps to reproduce

  1. Open a conversation in Gateway WebUI.
  2. Switch from the conversation view to the trajectory view.
  3. Select a tool/message record whose Rendered, Raw, Input, Output, or Schema tab contains content taller than the available details panel.
  4. Move the pointer over the right-side details content and scroll vertically.

Expected behavior

The details body should stay within the trajectory viewport, expose a vertical scrollbar when its content overflows, and respond to wheel/trackpad scrolling independently of the trajectory table.

Actual behavior

The long details body is clipped by the trajectory stage. No usable vertical scrollbar appears and wheel/trackpad scrolling does not move the details content.

Root cause

GatewayAppView mounts the shared TrajectoryView directly inside .gateway-transcript-stage. The stage is a flex item but is not itself a flex container. TrajectoryView only declares flex-1; without an explicit full-height constraint, that declaration has no effect in the WebUI host and the view takes its content height.

The stage then clips the oversized view with overflow: hidden. Although the inner details body already declares overflow-y-auto, it expands to the full content height, so the browser sees no overflow at that node and cannot scroll it.

A Chromium layout reproduction using the same size chain measured:

  • current: stage 506px, trajectory view 1799px, details clientHeight = scrollHeight = 1624px;
  • with a full-height trajectory root: stage/view 506px, details clientHeight 331px, scrollHeight 1624px.

This is a WebUI host sizing-contract bug, not a Markdown renderer, wheel-event, or scrollbar-theme failure.

Acceptance criteria

  • Long content in every trajectory details tab can scroll vertically in Gateway WebUI.
  • The details header and tab strip remain fixed while only the details body scrolls.
  • The left trajectory table keeps its independent scroll owner.
  • Desktop trajectory layout and narrow-container resizing remain unchanged.
  • Regression coverage asserts that the shared trajectory root is height-bounded and the details body remains the vertical scroll owner.

Logs / screenshots

The reporter supplied a screenshot showing long Rendered content clipped at the bottom of the WebUI trajectory details panel. No application error is logged; this is a CSS layout failure.

Pre-submit checklist

  • [x] I searched existing issues and pull requests and found no duplicates.
  • [x] This is not a security vulnerability (report those privately via Security Advisories).

Owlbay avatar Aug 28 '26 19:08 Owlbay