Skip to content

Commit 543b732

Browse files
authored
fix(picker): restore picker_width=false opt-out in session picker (#410)
The cross-project session list (#403) added an `or 100` fallback when passing picker_width to base_picker.pick(). This silently converts `picker_width = false` into 100, bypassing the opt-out path that lets the picker backend use its own default window size.
1 parent f598a35 commit 543b732

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/opencode/ui/session_picker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ function M.pick(sessions, callback, opts)
347347
actions = actions,
348348
callback = callback,
349349
title = (opts and opts.scope == 'global') and 'Select A Session (all projects)' or 'Select A Session',
350-
width = config.ui.picker_width or 100,
350+
width = config.ui.picker_width,
351351
layout_opts = config.ui.picker,
352352
preview = 'custom',
353353
---@param session table

0 commit comments

Comments
 (0)