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
Plugin-registered api.ui.Dialog windows are not centered (positioned in bottom-right corner) #37621
Plugin-registered TUI dialogs via api.ui.Dialog() are positioned in the bottom-right corner of the terminal instead of being centered. Built-in dialogs (e.g. /models → DialogModel) are correctly centered.
Environment
opencode: 1.18.3
OS: Linux
Plugin: oh-my-opencode-slim 2.2.3
Reproduction
Install a plugin that registers a TUI slash command with a dialog:
There is no position, align, or center field. The plugin cannot control dialog placement. Built-in dialogs like DialogModel (packages/tui/src/component/dialog-model.tsx) presumably handle their own positioning internally, but this logic is not available to plugins through the api.ui.Dialog wrapper.
Request
Either:
Make api.ui.Dialog center by default (matching built-in dialog behavior), or
Add a position / align field to TuiDialogProps so plugins can control placement.
Context
Discovered while developing the oh-my-opencode-slim /preset TUI command. The three-level preset manager works correctly functionally, but all dialogs appear in the bottom-right corner instead of centered. The built-in /models dialog opens correctly centered.
Activity
github-actions commentedon Jul 18, 2026
This issue might be related to existing issues. Please check:
api.ui.Dialog— overlaps significantly with the dialog API gap you've identified, though your issue specifically focuses on the centering/positioning bug rather than command interceptiongithub-actions commentedon Sep 18, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.