From 89557cb4ed385249f3a4c8f41625b73484171ba9 Mon Sep 17 00:00:00 2001 From: OpenCode Dev Date: Tue, 10 Feb 2026 10:39:40 +0000 Subject: [PATCH] Fix plan message UI: always show model selector and make proceed with build send message directly --- chat/public/builder.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/chat/public/builder.js b/chat/public/builder.js index bd61b0a..6730332 100644 --- a/chat/public/builder.js +++ b/chat/public/builder.js @@ -94,9 +94,9 @@ function updateBuildModeUI(modeOverride) { } } - // Hide provider box (model-select-wrap) for plan messages + // Always show model selector above message input for both plan and build modes if (el.modelSelectWrap) { - el.modelSelectWrap.style.display = mode === 'build' ? 'inline-flex' : 'none'; + el.modelSelectWrap.style.display = 'inline-flex'; } if (typeof window.updateUsageProgressBar === 'function') { @@ -108,19 +108,13 @@ async function proceedWithBuild(planContent) { if (!planContent) return; pendingPlanContent = planContent; - // Show model selector when build confirmation modal opens - // This allows user to choose their model before starting the build + // Always ensure model selector is visible if (el.modelSelectWrap) { el.modelSelectWrap.style.display = 'inline-flex'; } - if (el.confirmBuildModal) { - el.confirmBuildModal.style.display = 'flex'; - } else { - // Fallback to confirm if modal not found for some reason - const confirmBuild = confirm("Are you sure you want to proceed with this plan? This will start the build process."); - if (confirmBuild) executeBuild(planContent); - } + // Directly execute the build without showing confirmation modal + await executeBuild(planContent); } async function executeBuild(planContent) {