fix(steer): keep steer button clickable during active task and log injected instruction

This commit is contained in:
zhayujie
2026-07-20 11:22:14 +08:00
parent c4e5d11da9
commit f9e7c07af8
2 changed files with 5 additions and 1 deletions

View File

@@ -1775,10 +1775,13 @@ function resetSendBtnSendMode() {
}
function updateSteerBtnState() {
// Keep the steer button enabled whenever a task is running so users can
// fire successive guidance. Empty-input is guarded in steerActiveTask,
// avoiding a jarring disabled/not-allowed state right after each steer.
const active = sendBtnMode === 'cancel' && !!activeRequestId;
steerBtn.classList.toggle('hidden', !active);
steerBtn.classList.toggle('flex', active);
steerBtn.disabled = !active || uploadingCount > 0 || !chatInput.value.trim();
steerBtn.disabled = !active || uploadingCount > 0;
}
function steerActiveTask() {