From c29de3682d179ecf5635a67fc1bcf2fc291dd8d1 Mon Sep 17 00:00:00 2001 From: Sergii Demianchuk Date: Sat, 25 Jul 2026 20:07:53 -0400 Subject: [PATCH 1/2] feat(ai): finished-plan auto-collapse + dismiss; drop the footer "LevelCode Cloud" chip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two chat-UI cosmetics (both in media/chat.html, non-overlapping regions). Plan bar — a completed checklist used to sit fully expanded (up to 38vh) long after the run ended, with no way to clear it. Now, matching how Claude Code / Cursor handle a finished plan: - auto-collapse to the (green) header the moment it first hits N/N — rising-edge latch, so a manual re-expand of a done plan sticks on later re-renders, and the state resets when the plan is cleared (agentStart / newChat / dismiss); - a dismiss (×) in the header closes it outright — reveals on header hover, stays visible once the plan is done (its primary use), and also clears a plan stranded by an aborted/errored run. stopPropagation so it doesn't also toggle the collapse. The × is a styled literal, not codicon('close') — 'close' isn't in the webview's codicon subset (it would render as text). Footer — removed the st-local item (home icon + "LevelCode Cloud" / "Local" / "Direct"). The st-key chip already conveys the mode + plan ("Gateway · Pro+", "BYO key", "Direct · no key"), so st-local was redundant; renderRouting now drives st-key only. Updated the three comments that referenced st-local. Verified: every