Skip to content

About

Drag to resize conversations in OpenCode Desktop.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

OpenCode Conversation Width

English · 简体中文

Drag either side of the message column to make an OpenCode Desktop conversation wider or narrower. Messages and the input box resize together and stay centered. Your preferred width is saved across conversations and windows.

Quick start

Tested on OpenCode Desktop 2.4.3 for Windows. Run this in a terminal:

opencode plugin add "github:LeakDog/opencode-conversation-width#main"

In OpenCode Desktop, open Settings → Extensions → Plugins and check that opencode-conversation-width is enabled. Then open a conversation and look for the short vertical handles in the left and right margins of the message column.

Controls

What you want to do How
Resize and save Drag either handle outward to widen or inward to narrow, then release.
Cancel a drag Press Esc before releasing.
Restore OpenCode's width preset Double-click either handle, or focus it and press Enter.
Resize with the keyboard Press Tab to focus a handle, then use ← / →. Press Home for the narrowest width or End for the widest.

The handles hide when the window or conversation pane gets too narrow. Your saved width comes back when there's enough room.

Right sidebar width

Drag the divider next to the right sidebar to set a shared width for all linked conversations. The lock icon in the right sidebar's tab strip links or unlinks only the current conversation. Unlinked conversations use OpenCode's own width controls.

Settings → General → Right sidebar width controls whether conversations without their own choice are linked by default. This is on initially. The shared width and each conversation's choice are saved separately.

Install from a local directory

Use this method if the CLI reports git dep preparation failed, or if you prefer to load a local checkout. No build is needed: the repository already includes dist/gui-experimental.cjs.

git clone https://github.com/LeakDog/opencode-conversation-width.git

Add the clone's absolute path to the plugins array in your global ~/.config/opencode/opencode.json(c). Replace the example path with yours and keep any existing entries:

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": ["C:/Projects/opencode-conversation-width"]
}

Troubleshooting

  • The plugin is missing or failed to load: Select OpenCode Desktop's own server, then check Settings → Extensions → Plugins. If the plugin shows a load error, use Reload there.
  • The plugin is enabled, but there are no handles: Make the window wider or close the side panel to give the conversation more room.
  • After a Desktop upgrade: The plugin uses OpenCode's experimental GUI SDK and depends on the conversation layout. A newer Desktop version may need a plugin update.

Build from source

Run these commands from the repository root (tested with Node.js 26):

npm ci
npm run typecheck
npm run build:gui

Keep the script named build:gui: naming it build makes npm run Git dependency preparation even though the bundle is already in the repository.

About

Drag to resize conversations in OpenCode Desktop.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages