From cec79df982c1bf3baaa3cd44c54495066af4d91a Mon Sep 17 00:00:00 2001 From: Its My Work Date: Tue, 15 Sep 2026 00:58:55 +0000 Subject: [PATCH] fix(ui): sync the engine chips when the mobile settings sheet opens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit syncMobSheetFromDesktop() re-derives each mobile chip's highlighted state from the in-memory cur* variables, but its if/else chain only covered mode/agent/model — engine was never assigned, so `cur` stayed empty and both the API and Subscription chips lost their `.on` class every time the sheet opened, even though curEngine (and the ★ default star, which is synced separately) were correct underneath. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_011E2bJQ2sL9LgEWosjvydTR --- public/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/public/index.html b/public/index.html index 7964e5e..6d82d4d 100644 --- a/public/index.html +++ b/public/index.html @@ -16858,6 +16858,7 @@

Delegate to Agent

if (group === 'mode') cur = curMode; else if (group === 'agent') cur = curAgent; else if (group === 'model') cur = curModel; + else if (group === 'engine') cur = curEngine; chip.classList.toggle('on', v === cur); }); // Sync turns