From ae7fdaac6f867eff1c1fb1cb8bff801231ef43dc Mon Sep 17 00:00:00 2001 From: southseact-3d Date: Tue, 17 Feb 2026 20:01:36 +0000 Subject: [PATCH] fix: use currently selected model when redoing messages When redoing a 'proceed with build' message, the system now uses the currently selected model from the dropdown instead of the original message's model. This allows users to switch models before redoing. --- chat/public/builder.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chat/public/builder.js b/chat/public/builder.js index a5dc83e..8c9400c 100644 --- a/chat/public/builder.js +++ b/chat/public/builder.js @@ -360,7 +360,9 @@ async function redoMessage(msg, session) { } if (planContent) { - await redoProceedWithBuild(planContent, msg.model); + // Use null to force redoProceedWithBuild to use the currently selected model + // instead of the original message's model + await redoProceedWithBuild(planContent, null); } else { setStatus('Cannot redo: plan content not available'); }