ui: fold the composer to one line until it has focus

dsh-Go opens the input into two rows only while focused: the text above, the
model / mode / keys below, folding back when focus leaves. ComposerBox keeps
the field across the two layouts with a GlobalKey and animates the swap.

Model and thinking level are now one control (ModelPill shows "model · effort"
and the sheet offers the level after choosing a model); Build/Plan is a
separate ModeChip. The draft page uses the same box, with its project chip
above it. 0.3.15 (315).
This commit is contained in:
blumia committed 2026-11-21 17:47:04 +08:00
1 parent 7f2f454539
commit ea3b1f0f5e
8 files changed
+553 -430

No files matched your search

+4 -3
View File
@@ -5,7 +5,7 @@ Android first. This branch (`flutter`) is a framework evaluation: the same
feature set as the earlier Asuka/Go and MyGo attempts, reimplemented in
Flutter to compare mobile UI maturity.
Status: 0.3.14 — servers (passwordless / password login, HTTP/HTTPS and
Status: 0.3.15 — servers (passwordless / password login, HTTP/HTTPS and
SOCKS5/socks5h proxy, self-signed certificates and pinning), session list with search and live
events, chat with streaming Markdown and full history paging, tool steps
grouped per turn (icon, one-line summary, foldable run) with image previews, a
@@ -18,8 +18,9 @@ show their progress and can be cancelled. The panel is a tab row with its own
close button, and each tab has its own header row. Starting a session opens a
draft that only creates the session on the first send; the session list is
grouped by project with date captions, pins, archive and swipe actions. The
model and thinking level sit in the composer (revealed while typing), and the
picker groups providers, favourites, recents and context size. A
composer folds to one line when unfocused and opens into two rows on focus (as
in dsh-Go): the model and its thinking level form one pill, the Build/Plan mode
a separate chip. The picker groups providers, favourites, recents and context size. A
phone opens the session list as the left drawer and a wide window (tablet,
desktop) shows it beside the chat. Android 7.0 (API 24)+, plus a Linux desktop
target used for local testing.