Skip to content

Add toggle to collapse/hide workspace files sidebar in WebChat/Control UI #92041

Closed as not planned

Description

@Alyx-Learbott

Description

The 2026.6.1 release introduced a workspace files panel in the chat sidebar that shows the directory tree. On normal screen sizes, this panel takes up a significant portion of the chat window with no way to collapse or hide it.

The panel does auto-collapse on narrow viewports via responsive breakpoints, but there's no user-facing toggle — no close button, no config option, no way to reclaim that space on wider screens.

Why it matters

For daily chat use, the workspace file tree is lower priority than the conversation. Having it permanently visible on the right side reduces the chat area by roughly a third, which is especially impactful on laptop screens or when running alongside other tools.

Suggested solution

Add a close/collapse button (chevron or X) to the panel header
Persist the collapsed/expanded state per session or per user
Optionally, add a config option (e.g., controlUi.showWorkspaceFiles) for users who never want it visible

Environment

OpenClaw 2026.6.1+ (stable, first appeared in 2026.6.1, still present in 2026.6.5)
WebChat / Control UI
Observed on Linux (Ubuntu), Firefox and Chrome

Activity

  1. clawsweeper commented on Jun 10, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

    Close: this duplicates the older WebChat Workspace Files rail report, which remains open and already has a proof-positive narrow fix PR; current main and v2026.6.5 still lack the requested toggle, so the remaining work should stay on the canonical thread.

    Canonical path: Keep #90359 as the canonical report and review or land a single rail-toggle PR such as #90380.

    So I’m closing this here and keeping the remaining discussion on #90359 and #90380.

    Review details

    Best possible solution:

    Keep #90359 as the canonical report and review or land a single rail-toggle PR such as #90380.

    Do we have a high-confidence way to reproduce the issue?

    Yes for the observed layout state by source inspection: current main and v2026.6.5 render the desktop Workspace Files rail without a user collapse control. This is not a strict bug reproduction because the requested fix is a new user-facing affordance.

    Is this the best way to solve the issue?

    Yes, duplicate close is the best handling because the older canonical issue and its open proof-positive PR already cover the same remaining user problem. A separate issue would split maintainer review without adding a distinct root cause or platform-specific fix.

    Security review:

    Security review: No patch is under review and the issue does not report a security-sensitive problem.

    AGENTS.md: found and applied where relevant.

    What I checked:

    • Repository policy read: Read the full root AGENTS.md and scoped UI guide; the Control UI and config-surface guidance affected the review outcome. (AGENTS.md:1, c692fabeba07)
    • Current main still has no rail toggle: Current main's Workspace Files rail renders whenever workspaceFiles is present and its header exposes refresh only, not a close/collapse action. (ui/src/ui/views/chat.ts:1025, c692fabeba07)
    • Current main always supplies the rail props: The chat render path passes a workspaceFiles object into renderChat, so the prop-based escape hatch is not exposed as a user setting. (ui/src/ui/app-render.ts:3536, c692fabeba07)
    • Desktop layout reserves rail space: The desktop workbench grid reserves a 230px-280px rail column and only hides the rail under the 1120px responsive breakpoint. (ui/src/styles/chat/sidebar.css:2, c692fabeba07)
    • Latest release has the same behavior: The v2026.6.5 tag still contains the Workspace Files rail, desktop rail column, and narrow-viewport-only hide rule, so the requested behavior is not already shipped. (ui/src/styles/chat/sidebar.css:2, 5181e4f7c82b)
    • Canonical issue owns the remaining work: The older open issue reports the same v2026.6.1 WebChat Workspace Files rail problem and has linked closing PRs, including a proof-positive narrow PR.

    Likely related people:

    • BunsDev: GitHub commit search for the exact chat-workspace-rail symbol points to the dashboard-v2 UI refactor that added the chat/app-render rail surface. (role: introduced rail/layout surface; confidence: high; commits: f76a3c5225bb, a710366e9ece; files: ui/src/ui/views/chat.ts, ui/src/ui/app-render.ts, ui/src/styles/chat/sidebar.css)
    • vincentkoc: Current checkout blame maps the rail render/wiring lines to a recent main snapshot, and GitHub path history shows repeated recent Control UI chat/app-render work. (role: recent area contributor; confidence: medium; commits: b4aa520b0765, 439d2a9404ca, b3c946999d71; files: ui/src/ui/views/chat.ts, ui/src/ui/app-render.ts)
    • steipete: Recent history shows chat composer-control and Control UI source documentation work near the toolbar/settings pattern likely relevant to the rail toggle decision. (role: adjacent UI contributor; confidence: medium; commits: d328a0d7a0da, 2b30951b8090, 12a56d4d46dd; files: ui/src/ui/views/chat.ts, ui/src/ui/app-render.ts, ui/src/ui/storage.ts)

    Codex review notes: model internal, reasoning high; reviewed against c692fabeba07.

  2. added
    P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.
    impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.
    on Jun 13, 2026
  3. locked as resolved and limited conversation to collaborators on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions