- the settings screen is now an index: 通用 → 聊天, 外观 → 主题 / 宠物,
帮助与关于 → 关于; each row opens its own page, the controls moved
there unchanged
- 关于 shows the app version, the server's OpenCode (/api/info) and
OpenChamber (/api/version) versions with a refresh, and the open-source
licenses, listed per package with their full text on tap
- the app version is read from the platform at startup
(package_info_plus), so pubspec.yaml is the only place it is written;
the pairing/relay handshake now sends it too instead of a constant that
had drifted
A turn that starts or ends while the app is in the background leaves no
event behind, so the activity strip kept its old state (stayed visible
after the turn ended) and the sidebar's running marks went stale too.
- on return, read the server's active set and the transcript tail once
and settle both the open chat's strip and the sidebar from them
- do the same on the first event after the stream reconnects, since a
silent drop loses the same events without leaving the app
- opening a chat whose turn is already under way asks once, so the strip
is right from the first frame
- when the server cannot answer, the tail decides (an assistant message
without a completion time is a live turn); a failed request is never
read as "everything is idle"
- draw the task bar in the activity strip's capsule (8px margins, 14px
padding, 36px min height, stadium radius) so the two read as one stack
- drop the stop button from the bar: its padding pushed the clock off the
right edge shared with the strip above; the row opens the sheet instead
- in the sheet, show only the clock while running, a stop button with a
stop icon, and "已结束" once the command ends; no "运行中" label and no
close x (the drag handle and the scrim already close it)
- say "读取输出…" while the first page loads instead of claiming the
command has printed nothing
- rest the pet's feet on the status capsule's edge (4px top margin)
instead of sinking 2px into it
A command the agent detached keeps running after its tool call returns;
the chat now shows it above the composer: one row per command with its
clock and a stop, folded under "正在执行 N 条命令" when there are
several, with a subagent tag for a child session's command.
Tapping a row opens the live output in a sheet (a page a second from
shell.output, tail kept), following the tail with a way back to the
newest line. The tool row that started it carries a 后台 tag and shows
the same output when expanded, falling back to the completion note once
the shell is gone; a command stopped from the app says so instead of
showing the Shell.NotFoundError it leaves behind.
The list comes from opencode's own shell jobs (experimental/job,
descendants included), so a foreground command never appears, and an
older server falls back to the shell list narrowed by the detached
calls in the transcript. Stopping confirms, removes the shell, and
leaves the model a note that the stop was the user's, as the
first-party client does.
0.4.14 (414).
A file tool's row keeps only the part of the path under the session's
directory (lib/screens/chat_screen.dart instead of the whole absolute
path), as the first-party client does, so a phone still shows the file
name; the diff card's file headings drop the same prefix.
A finished openchamber_image call is lifted out of the folded run and
drawn as the picture it saved, in place, as ShownToolCard does through
GeneratedImages: tap opens the full-screen preview, and the card and
preview share an in-memory cache of the bytes.
0.4.13 (413).
Expanding an edit, write or patch call now renders the change as tinted
diff lines instead of an old/new text blob: added lines green, removed
lines red, @@ hunk headers marked, and file header noise hidden. The
patch comes from the server's metadata.files[].patch; older servers fall
back to a line diff of the edit's old/new strings, and a write with only
content shows as added lines.
The tool row also shows +N −M for these calls, as dsh-Go does, and a
phone-sized preview stops at 600 lines.
0.4.12 (412).
The project band no longer adds inner padding, so its folder chevron and +
sit on the same two vertical lines as the session rows' subagent chevron
and ⋮. Every session row now reserves the same 18px chevron column, so a
session without subagents starts its title exactly where a parent does,
and the compact left/right insets leave the title more width.
0.4.11 (411).
Subagent sessions now render as a collapsed tree in the sidebar: parents with
workers get an expand/collapse chevron, expanded child rows sit behind a guide
line, and the parent keeps its worker count. The parent of the open subagent
expands once so its child is visible.
Subagent tool rows in the parent chat (subagent or task) are labeled 子代理,
show the description and open the child session on tap; a child outside the
loaded page is fetched by id first.
Subagent chats are read-only by default with the first-party notice;
allowPromptingSubagentSessions permits ordinary subagents, while a Lead's
operator-child worker stays read-only until takeover.
0.4.10 (410).
Sessions with a parentID were filtered out of the sidebar, so a subagent's
conversation was unreachable. They now render indented under the session that
started them (robot marker, "子代理 ·" subtitle), the parent shows its worker
count, and tapping one opens its full chat. Opening a parent also fetches its
children with parentID=<id>, so older workers missing from the loaded page
appear.
A subagent's app bar gets a back arrow to its parent session.
Builds now produce a universal APK plus per-ABI arm64/armv7/x86_64 splits; the
packaging preference is kept in project memory.
0.4.9 (409).
Sessions under the server's managed chats root (chats/<date>/session-…) were
grouped per directory, so each one appeared as its own session-xxxxx band.
GET /api/fs/home now supplies the chats root plus its canonical and legacy
aliases; every chat folder becomes the single 聊天 group. The new-session
picker can target 聊天 too: the first send creates a fresh chat directory
before creating the session, and a new session started from an existing chat
gets a new one instead of sharing its folder.
Projects merge their OpenChamber settings row (label, icon key, colour,
iconBackground and uploaded/auto icon image) with /api/project. Group
headers, the picker and the draft chip draw the chosen icon in its colour,
and custom images are fetched through the client transport (SVG included)
with a themed fallback to the glyph. The chat group uses a chat bubble rather
than a folder.
0.4.8 (408).
The scanner read frames at 480p, which is thin for the web UI's dense
pairing QR (1024px, low error correction, a two-module quiet zone), and it
rejected a Y plane whose last row has no padding even though some cameras
return exactly rowStride * (height - 1) + width bytes — on those devices
every frame was dropped, so nothing ever reacted.
Frames are now requested at 720p and fall back to 480p only when the device
refuses the higher analysis size; a stream that fails to start reports an
error instead of leaving a silent preview. Decoding runs with zxing's
tryHarder hint and retries an inverted frame for light-on-dark codes.
The screen also reports what it sees: resolution/format and a live
"frames scanned / decode attempts" line, a one-time log of the first frame's
planes, row stride and byte count, a no-frames hint after four seconds, and a
"move closer" hint when frames decode but no QR is found.
0.4.6 (406).
The pairing dialog gained a "扫码" button: a full-screen scanner points the
back camera at the QR that OpenChamber's connect-a-device dialog shows, and a
decoded pairing link connects straight away.
Frames are decoded with zxing2 (pure Dart, no ML Kit or Play services): the
YUV420 Y plane is already luminance, BGRA frames are converted green-weighted,
and each frame is decoded in a background isolate so camera frames never block
the UI. Only an openchamber://connect payload ends the scan; any other QR code
shows a short hint and scanning continues. A torch button, a denied-permission
message with retry, and camera-less devices are handled.
The recorder audio permission the camera plugin declares for video is removed
from the merged manifest: the scanner reads frames only.
0.4.5 (405).
A server can now be added by pasting an openchamber://connect pairing link.
The one-time secret is redeemed over the first reachable candidate (direct
addresses first, then the relay), and the device token is stored with the
connection, so later launches reconnect without the link.
The relay candidate carries the relay WebSocket URL, the host's routing id
and its P-256 public key. The new transport opens one encrypted tunnel to the
relay: P-256 ECDH + HKDF-SHA256 derive one AES-256-GCM key per direction;
frames carry a version, a 12-byte IV and the GCM tag; a small mux carries
HTTP, SSE and WebSocket sub-streams with fragmentation and ping/pong. Every
request and the terminal socket ride it; WebSocket upgrades first mint the
short-lived oc_url_token over the tunnel, since upgrades cannot send headers.
Only the host's legacy path is negotiated (no batching, downstream flow
control or body gzip). Pairing while connected switches servers like picking
one in the list, which exposed and fixes a ChatScreen crash when app.chat is
cleared during the switch.
0.4.4 (404).
A directory now has a TerminalWorkspace holding a list of tabs instead of a
single session. The status bar's left side became a dropdown: it shows the
active tab and its state ("终端 2 · 运行中") and lists the other tabs (the
active one checked) plus "新建终端". New tabs take the smallest free number,
so closing one frees its name.
Only the active tab keeps a socket: switching detaches the old tab and
attaches the new one, whose screen is replayed from the server snapshot; the
shell itself keeps running. The tab's model stays in memory, so switching
back is immediate.
The tab list (ids, labels, active one) is saved per connection and directory.
On the first open the server's sessions for the directory are reconciled with
it: saved labels and order are kept for sessions that still exist, sessions
opened elsewhere (web UI) are appended in creation order, and tabs whose
session is gone are dropped. Project-action command runners are not shown as
tabs. The 0.4.2 single-session value is read as one tab.
0.4.3 (403).
The terminal session id lived only in memory, so the first time the panel
opened after a launch it always created another PTY. The old shell stayed on
the server (unattached shells live for half an hour) but the client could no
longer find it.
The id is now remembered per connection and directory. On first open the
panel lists /api/terminal/sessions?cwd=<dir> and attaches to the remembered
session while the server still has it, showing its replayed history. Without
that id it adopts the newest running session of the directory, and only when
the directory has nothing does it create one. An explicit "close terminal"
forgets the id and forces a fresh shell, and a fatal SESSION_NOT_FOUND clears
it and recovers, so a server restart cannot leave a dead panel.
The panel is still one terminal per project, not a tab strip.
0.4.2 (402).
The pet used to sit in the column above the composer, reserving a strip of
its own: the message list ended there, which read as an opaque band cutting
off the last row. It is now a layer over the message area, so the list keeps
its full height and shows through around the sprite. Only the body of the
sheet takes touches (contentBox, 4dp out); taps and drags on the transparent
canvas still reach the messages underneath.
Dragging the body moves the pet along the composer's top edge (or the
activity cap's) with a small lift while held and the pack's drag reaction.
The spot is stored as a fraction of the width in pet.x.v1, so a restart or a
change in width puts it back in the same place. Taps now react on tap-up so a
drag does not fire a left/right reaction.
0.4.1 (401).
Nothing is built in: Settings → 宠物 shows "尚未导入宠物" until a zip is
picked. The zip holds a dsh-Go pack.json and PNG sheets; it is validated
(pack.json, every named sheet) and unpacked under the app's private files
directory, with enable, size (40/52/64) and remove kept on the device.
A pack's canvas, anchor, per-animation box and frame list drive rendering:
PetSlot reserves the area above the baseline and stands the sprite on the
composer's top edge (or on the activity cap while a turn runs). Idle,
thinking, working and error follow the chat's state, and a tap plays the
pack's react-left/react-right. Only one sheet is decoded at a time.
path_provider's JNI binding does not load on this engine, so MainActivity
exposes the files directory over a tiny method channel instead.
dist/deepy-whale-pet.zip is the Deepy whale for testing. Tests cover the
real pack manifest, frame/state mapping and zip import.
0.4.0 (400).
Both the project band and the session rows are dense 56px list tiles now
(measured 54), down from 72. Session titles are 14 and project names 14.5,
so the list stays readable while the hierarchy keeps its tinted band. The
project + and the session ⋮ still share one vertical line.
0.3.21 (321).
- The project header is a ListTile now, like a session row: both are 72 high
(title + subtitle). A Material 3 list tile ends at 24, so the band's 8px
inset gets 16 more, putting the project + and the session ⋮ on one line
(a widget test asserts both the heights and the x centres).
- The running status is a full-width stadium like dsh-Go's activity strip:
title and current-step summary on the left, a tabular m:ss clock on the
right, translucent surface, 36 minimum height. The spinner inside is gone;
the cap's top edge is where the future input-box pet will perch.
- 0.3.20 (320).
- The folded composer aligns to its bottom edge, so the 16px usage ring sat
below the 36px keys; a 10px bottom padding puts it on their centre line (the
two-row layout was already centred).
- A running turn no longer shows the finished turn's footer (model · mode ·
time, with its copy/fork menu). Above the input there is now an activity
strip like dsh-Go's: "思考中 / 正在回复 / 正在读取 · …" with the current
step's summary and a clock that ticks each second.
- Project headers in the sidebar are tinted bands at least a session row tall,
with a folder icon, a bolder name and the path beneath, so the project and
its sessions read as different levels.
- Project names take the last path segment with either separator, and path
comparisons unify `\`/`/` (case-insensitively for drive-letter paths); the
grouping key does too, so a Windows server no longer shows a full path or
splits one project in two.
- 0.3.19 (319).
The form only rendered the password field when editing a saved server
(!_editNew). Adding a password-protected instance therefore failed with
"需要密码或已保存的凭据" and offered nowhere to type it. The field is now
always shown ("密码(如果需要)", empty for a passwordless server); a failed
connect that asks for a password focuses it, and a rejected password reads
as "密码错误,请重试".
Adds test/servers_form_test.dart. 0.3.18 (318).
- The sidebar's server switch moves to a footer bar: the connected server's
name on the left (tap for the server sheet) and a settings key on the
right, matching the first-party phone layout.
- Settings has three groups: 外观 (theme mode and seed colour, stored on the
device only in shared_preferences), 聊天 (the server's followUpBehavior:
steer or queue) and a 宠物 placeholder. The app theme now reads the seed
and mode.
- The chat's short send while a turn runs uses the configured follow-up
behaviour; the long-press sheet offers both and marks the default. The
value is read from GET /api/config/settings?surface=mobile on connect, on
resume and when the page opens, and written back with PUT.
- Tests: settings page groups and choice, sidebar footer naming the server
and opening settings, follow-up normalization.
- 0.3.17 (317).
- A send while a turn runs joins it (delivery "steer") on a short press; a
long press offers steer or queue. Queue/steer prompts wait in the server's
inbox and show as a pending bubble at the end of the transcript, with
改为排队/转为转向 and 撤回 (which puts the text back into the composer).
The inbox is read on open and resume and kept current by the
session.inbox.* events; delivery reloads the tail.
- The send key is stop only while running with an empty draft; with text it
sends (as dsh-Go does), leaving the long press for the delivery choice.
- The composer also folds to one line when the phone's back gesture closes
the keyboard while the field keeps focus: the page passes the keyboard
height (a Scaffold strips the bottom inset from its body) and the composer
treats a fall below half the peak as a dismissal.
- The Build/Plan chip now opens a bottom sheet with icons, hints and a check,
instead of a popup menu.
- Tests: composer_box_test (focus opens, IME dismissal folds, typing reopens)
and inbox_item_test (list items, enqueued events, delivery changes).
- 0.3.16 (316).
Replace the MyGo/Go app with a Flutter client that keeps the feature set:
- servers: saved servers, passwordless and password login, HTTP/SOCKS5
proxy via dart:io, self-signed certificates and pinning, tokens in
flutter_secure_storage (Keystore)
- sessions: list with live events, search, new/rename/archive/delete,
instance sheet
- chat: streaming Markdown (flutter_markdown), reasoning and tool rows,
image previews, context usage ring and sheet, model/agent switching,
fork/revert, attachments (file_picker), permissions
- Android 7.0 (API 24)+, plain http:// works in release (Dart dials
sockets directly)
- build: China mirrors for Gradle/NDK, Aliyun Maven repositories, and the
Gradle distribution pre-seeded; release signed with the test keystore
Read-aloud is dropped as requested. Version 0.3.0.