You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
api.ui.dialog.replace() resets size to medium #44754
api.ui.dialog.setSize("large") and setSize("xlarge") do not survive the next replace().
Host replace() always writes size back to "medium" before swapping the stack. Plugins that size first, then replace, always get the medium width (60) instead of large (88) or xlarge (116).
@tarquinen/opencode-dcp does exactly that for /dcp: setSize("xlarge") then replace(). The xlarge request is discarded.
setSize should persist across replace(), or replace should take the size so callers do not have to win a race against the reset.
Related: #44755 (host Dialog pins tall panels at height / 4 instead of vertical center).
Plugins
@tarquinen/opencode-dcp (repro via /dcp). Any plugin that calls setSize then replace.
OpenCode version
1.18.22
Steps to reproduce
In a TUI plugin:
api.ui.dialog.setSize("xlarge")api.ui.dialog.replace(()=>/* any panel */)
Measure the panel width.
It is 60 (medium), not 116 (xlarge).
Screenshot and/or share link
Operating System
Linux
Terminal
Not terminal-specific. Confirmed in 1.18.22 replace(): it always setStore("size", "medium").
Activity
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊