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.
This commit is contained in:
southseact-3d
2026-02-17 20:01:36 +00:00
parent d46515d49a
commit ae7fdaac6f

View File

@@ -360,7 +360,9 @@ async function redoMessage(msg, session) {
} }
if (planContent) { 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 { } else {
setStatus('Cannot redo: plan content not available'); setStatus('Cannot redo: plan content not available');
} }