From ff38deb470aa97f8a371846d44b0b3f866e2a286 Mon Sep 17 00:00:00 2001 From: dj-oyu <68707227+dj-oyu@users.noreply.github.com> Date: Sun, 22 Feb 2026 06:15:44 +0900 Subject: [PATCH] fix: remove all showAlert dialogs, use visual feedback only Co-Authored-By: Claude Opus 4.6 --- pkg/miniapp/static/index.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkg/miniapp/static/index.html b/pkg/miniapp/static/index.html index 2902fbc50..338dfeb54 100644 --- a/pkg/miniapp/static/index.html +++ b/pkg/miniapp/static/index.html @@ -404,7 +404,6 @@ async function sendCommand(cmd) { if (!res.ok) throw new Error('API error: ' + res.status); return true; } catch (e) { - tg.showAlert('Failed to send command'); return false; } } @@ -414,10 +413,7 @@ async function sendCustomCmd() { const btn = input.nextElementSibling; const cmd = input.value.trim(); if (!cmd) return; - if (!cmd.startsWith('/')) { - tg.showAlert('Command must start with /'); - return; - } + if (!cmd.startsWith('/')) return; const ok = await sendCommand(cmd); if (ok) { input.value = ''; @@ -436,12 +432,13 @@ async function sendSkillCommand() { async function startPlan() { const input = document.getElementById('plan-task'); + const btn = input.nextElementSibling; const task = input.value.trim(); if (!task) return; const ok = await sendCommand('/plan ' + task); if (ok) { input.value = ''; - tg.showAlert('Plan started!'); + flashSent(btn); } }