opencode icon indicating copy to clipboard operation
opencode copied to clipboard

desktop: session column capped at 744px on wide monitors, clipping diagrams and tables

Open mufflegyro opened this issue 1 month ago • 4 comments

Summary

The desktop app's session column is hard-capped at 744px on all md and larger viewports, so on a modern wide monitor the conversation and composer use only a fraction of the window. The cap was reduced from 1000px to 744px in v2.0.27. Wide content (large Mermaid diagrams, wide tables, long code lines) is clipped at 744px and pushed behind a horizontal scrollbar instead of using the available width.

The width cap should bound the layout only when the window is resized down (narrow widths); the column should fill the available space on large monitors. Alternatively/additionally the column width should be user-adjustable by dragging a handle.

Environment

  • OpenCode version: 2.0.27 (OpenCode Desktop, Electron; app bundle /Applications/OpenCode.app, CFBundleShortVersionString = 2.0.27)
  • OS: macOS 26.6.2 (Darwin 25.6.0, arm64)
  • Terminal: N/A (desktop app, not the TUI)
  • Shell: /bin/zsh
  • Install/channel: latest (desktop release)
  • Active plugins: ollama-usage, opencode-session-recall (neither is GUI/session-layout related)
  • Display: 2560×1440 (QHD/WQHD), UI looks like 2560×1440

Reproduction

  1. Open OpenCode Desktop 2.0.27 on a wide monitor (e.g. 2560px), maximised or with a wide window.
  2. Open any session.
  3. Observe the message timeline and the composer stop at a fixed ~744px column, leaving most of the window empty.
  4. Paste or receive content wider than 744px — a large Mermaid diagram, a wide Markdown table, or long code lines — and observe it is clipped at the column edge and becomes horizontally scrollable rather than using the available window width.

Reproducible consistently.

Expected Behavior

  • The session column fills the available width on large displays, and the max-width cap only applies when the window is narrow (resizing down), not when it is wide.
  • Wide diagrams/tables/code render at the available width without being clipped and hidden behind a horizontal scrollbar on a large monitor.
  • Ideally the column width is user-adjustable with a drag handle.

Actual Behavior

  • The session column is capped at 744px for every md+ viewport, so it does not grow with the window on a 2560px display.
  • Content wider than 744px is cut off at the column boundary and requires horizontal scrolling, even though the window has ample free space.

Additional Context

Likely introduced by #54020 ("feat(app): match the session column to the design and use pretty text wrapping", commit f9e892dc, 2026-10-09; first shipped in v2.0.27).

That PR replaced the previous cap max-w-[1000px] with a new shared token md:max-w-session, defined in packages/ui/src/styles/tailwind/index.css:

/* Shared by the session timeline, composer dock, and drop target so their edges stay aligned.
   The composer dock's 12px gutter leaves the design's 720px composer. */
--container-session: 744px;

Applied across:

  • packages/app/src/session/route.tsx (md:max-w-session, padding also changed md:px-5 → md:px-6)
  • packages/app/src/session/timeline/message-timeline.tsx
  • packages/app/src/session/composer/session-composer-region.tsx
  • packages/app/src/session/preparing-composer.tsx
  • packages/app/src/composer/dropzone.tsx (was md:max-w-200 2xl:max-w-[1000px])
  • packages/session-ui/src/timeline/session-timeline-row.tsx

So the previous behaviour did grow to 1000px (and 2xl:max-w-[1000px]), and the new token locks every breakpoint to 744px.

Note: the global text-wrap-style: pretty added in the same PR (packages/ui/src/styles/base.css) also changes where lines break, which can amplify the perception of a narrower column, but the hard 744px cap is the core issue.

Requested change: make the cap a minimum-window guard rather than a universal ceiling — i.e. let the column expand on large monitors, only clamping below some narrow threshold — or make the column width draggable.

(No screenshot included; can attach one if useful.)

mufflegyro avatar Oct 12 '26 11:10 mufflegyro

Thanks for the detailed write-up and for tracing it to #54020.

The 744px width (--container-session) was a deliberate change in #54020 to match the updated design, so we're treating this as a feature request: let the session column use the available width on wide monitors, with the cap only for narrow windows, and/or make it drag-resizable so wide diagrams, tables and code aren't clipped. Maintainers will consider it.

Related issues:

  • #53382: open request for a drag-to-resize session column in Desktop/Web, with the width saved
  • #29408: earlier request for a full-width "wide mode" in Desktop (closed after inactivity)
  • #50353: earlier PR adding a content max-width slider, closed because it targeted the old pre-v2 app layout

Feel free to attach a screenshot of the clipped diagram or table on your 2560px display. It helps show the problem.

opencode-agent[bot] avatar Oct 12 '26 11:10 opencode-agent[bot]

+1,too narrow

WhiteGiverMa avatar Oct 13 '26 14:10 WhiteGiverMa

Until a resizable width lands, I published a small plugin that makes the built-in Wide option fill the whole window (OpenCode Desktop 2.x): opencode plugin add opencode-wide-chat → https://github.com/LorenzoServolini/opencode-wide-chat

LorenzoServolini avatar Nov 11 '26 23:11 LorenzoServolini

Closing as a duplicate of #53382: the content width cap is tracked there. Please follow that issue for updates and add any extra details there.

neriousy avatar Nov 23 '26 11:11 neriousy