- loopback dev-server URLs are no longer opened on the phone's network: the
panel binds a local 127.0.0.1 TCP listener and pipes each connection over
an authenticated WebSocket to the host's /api/dev-tunnel, which dials its
own loopback port; the WebView keeps the original address in the bar while
the page, absolute URLs, cookies and HMR sockets use the tunneled origin
- the empty state lists /api/dev-servers results for the project (only ports
that answered with a web page), with title, URL and command; tapping one
opens it through the tunnel
- relay transports mint oc_url_token themselves; a direct connection mints
and caches /auth/url-token and also sends the bearer
- a new loopback port opened from a tunnelled page gets its own tunnel
- version 0.7.1+701; tests cover the URL mapping and tunnel helpers
- resuming from the background can fail the first relay request (DNS not
ready yet) while a later session read and the event stream work; the
banner stayed because only the exact "Connection lost, reconnecting…"
text was ever cleared, and a successful session read did not clear it
- transport errors (connect, session list/search/more, archive, active,
permissions, chat settings, projects, fs home, models) are now marked as
such and cleared by any successful read or by an event arriving on the
restarted stream; a pin/archive action error is left for the next action
- the sidebar Retry now reconnects the stored connection when there is no
client, otherwise re-reads the session list and clears the stale error
- version 0.6.4+604; tests cover the stale-error clearing and rollback
- OpenChamber keeps filesViewShowGitignored in its profile settings (the web
UI's "Display gitignored files"); the client now reads it in
refreshChatSettings instead of starting from a local false, so a server
that shows ignored files shows them here too
- toggling "Show git-ignored files" writes the same key back through
PUT /api/config/settings (surface=mobile) and reloads the listing; a
failed save restores the previous value and reports the error
- while the panel is open, a change to the setting from another client
reloads the list with the new filter
- version 0.6.3+603; tests cover reading, writing and rollback
- the project picker has an "Add project" action: a folder browser starts
at the server user's home, navigates (typed path, up, new folder) and
adds the chosen folder through POST /api/openchamber/directory; the new
project becomes the draft's target at once
- refreshProjects merges settings-only projects (newest added first), so a
project added before its first session still appears in the picker; the
first session moves it into /api/project as usual
- usageReading no longer hides the composer's context ring when the
session's model has left the server catalog: a 200K window is assumed,
the percentage is prefixed with "~", and the usage sheet says the window
is estimated. A failed model fetch at connect is retried when a chat
opens, so a normal session shows the real percentage
- tests: the add-project browser flow, settings-only projects, and the
estimated/known context readings
- source strings are English again; Chinese comes from lib/l10n/zh.dart
through tr()/trArgs() and AppText, and a language without a table
(Spanish, ...) reads English instead of Chinese
- server and user data (titles, messages, file names, notes, task names)
is drawn with plain Text, so it is never looked up in the table
- SelectionArea moved from the whole message list to the messages, the
answer text, an opened tool call's details and the turn footer; status
lines and folded tool rows no longer start a selection
- a message the transcript does not know (its start event was lost while
the stream was down) fetches the tail once, so a turn continued from
another client comes in with its prompt
- bump to 0.5.3
- settings → general → language picks system, Chinese or English; the
choice is stored on the device and read before the first frame
- our Chinese strings are translated through tr()/trArgs() and AppText,
with the English in lib/l10n/en_*.dart; a missing entry falls back to
Chinese and a test checks that every literal in lib has one
- AppText rebuilds on a language change (it depends on the resolved
locale), so const text and whole pages switch at once; the built-in
date/time pickers and selection menu follow the same language
- server and user data (titles, messages, prompts, paths) is never
translated
- the chat list sits in a SelectionArea: long-press selects message text
and shows the copy/select-all menu
- bump to 0.5.2
- 常规 now holds two pages: 通用 (the agent's tools and what it may know,
as the web client's General page) and 聊天 (the follow-up behavior)
- 通用 covers diagrams/prototypes, images with their model, secrets,
notifications, memory with its background tidying (model and thinking
level), project knowledge and usage limits
- every switch reads and writes /api/config/settings, the same keys the
web UI uses; keys the server does not store take its defaults
- image models come from /api/model?types=image and the tidying model
from the chat model list, both chosen in a sheet and clearable
- bump to 0.5.0
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"
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).
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 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).
- POST /api/session/:id/model takes the reference under `model`; sending it
at the top level was rejected with "Missing key at [model]".
- The chat now shows the model/agent row above the input (revealed while
typing or running, as dsh-Go does) instead of in the app bar; the draft
keeps the same row, with its project chip first.
- Thinking levels: /api/model's variants become a 思考 chip and sheet; the
choice travels as ModelRef.variant on the switch or the create, and the
last level per model is remembered on the device.
- The model picker groups providers, adds 收藏 and 最近 (device-local), shows
each model's context size and reasoning mark, and collapses sections.
- The `/` palette is shared by the chat and the draft (new slash_palette
widget); the draft lists commands and skills but not the client-local
/compact, which needs an existing session.
- 0.3.14 (314).
- Starting a session opens NewSessionScreen instead of a title sheet: a
project chip (GET /api/project, one row per canonical), a model/agent
chip, attachments and the composer. Nothing is created on the server
until the first send, which posts the session with its directory, model
and agent and then sends that message.
- The draft lives in AppState (memory only): leaving it keeps it; the
sidebar shows a draft row with its first line and a discard button; a
failed create stays on the draft with its text.
- The session list groups by project (chat folders under 聊天), dates the
rows (今天/昨天/本周早些时候/更早), pins through
session.metadata.openchamber.pinned, archives on demand, pages with
"载入更多", and swipes to pin/archive/delete (flutter_slidable).
- Child sessions are hidden; a parent's row shows its children's activity.
- The chat app bar follows the live session list, so the title the server
generates from the first message appears at once.
- Attachments and the model picker move to shared widgets, used by the
chat and the draft.
- 0.3.13 (313).
- lib/api/terminal.dart: the PTY protocol (create/resize/restart/close, and
the /api/terminal/ws binary control frames) with a reconnecting socket
that replays the server snapshot at the size it was drawn for.
- lib/terminal_state.dart: an xterm model plus that socket, kept per
workspace on AppState, so closing the panel or switching tabs keeps the
shell; the app reattaches when it returns from the background.
- lib/screens/terminal_panel.dart: TerminalView, a status bar (keyboard,
restart, clear, close) and a Termux-style key bar whose CTRL/ALT/SHIFT
modifiers also apply to what the phone keyboard types.
- lib/screens/knowledge_panel.dart: notes, todos and plans from
/api/project-context, searchable, with a full page for a plan's Markdown
and its raw editor.
- Downloads stream with a progress dialog (bytes, total, percent) and a
cancel that aborts the request; the save dialog only opens on success.
The request asks for `accept-encoding: identity` so Content-Length exists.
- MarkdownView renders task lists as ✅/⬜ instead of material_ui's
Checkbox, which wants a material_ui Material ancestor the app lacks.
- Dialogs own their TextEditingControllers, so closing one no longer
trips a framework assertion in debug builds.
- 0.3.11 (311).
- lib/api/transport.dart: TransportRequest/TransportResponse/Transport, with
DirectTransport holding the old behaviour (HTTP CONNECT, SOCKS5/socks5h,
self-signed and pinned certificates). Client goes through it, so a relay
tunnel only adds an implementation.
- User rows decode the server's inline attachment data and open the shared
image preview on tap; the local path stays the fallback.
- The agent's native forms: models from @opencode/client, the form list,
replies and cancels, form.* events, and a dock above the composer with
when-rules and required-field validation (a switch must be on).
- HomeScreen: the session list is the phone's left drawer and a persistent
column from 840 px, the chat beside it; the newest session opens on start.
- 0.3.10 (310).
- The chat's top-right menu only repeated the per-turn menu. It now opens a
files sidebar that slides in from the right, the way the official client's
right panel does: browse the session directory with a breadcrumb and an up
key, filter the current directory, search its subdirectories (bounded,
skipping .git/node_modules/build and friends), preview text/code/Markdown/
images, edit and save text files, create files and folders, and download
any file through the system save dialog.
- The panel's "..." menu carries the official client's "显示被 git 忽略的文件"
toggle (the listing asks the server to respect gitignore by default) and a
refresh. 项目知识 and 终端 have their tabs, marked as coming later.
- Thinking blocks are Markdown too (headings, lists, inline code), rendered
with the shared MarkdownView at a smaller, quieter size.
- The reconnect banner stayed forever: the stream loop sets it when the SSE
connection drops and nothing cleared it. Any event proves the stream is
back (the server greets every connection with server.connected), so it now
clears the message then.
- Markdown rendering moved to lib/widgets/markdown_view.dart, shared by
messages, thinking, compaction summaries and file previews.
Version 0.3.9 (code 309).
- /compact is not one of the directory's commands: OpenChamber's own
client supplies it and runs POST /api/session/:id/compact. The palette now
starts with that local command (压缩), so picking it compacts without the
model seeing anything.
- A compaction message (status running/completed/failed, reason, summary,
tokens) is part of the timeline. It now shows as the official client's
row: a scissors glyph and "正在压缩对话" / "对话已压缩", a 显示摘要 toggle,
and the summary as Markdown (revealed with the same height animation as
the other folds). Failed compactions keep the error block.
- Live compaction events are subscribed: started adds the running record
(or refreshes the tail when it names no id), delta appends the streaming
summary, ended/failed fetch the server's settled record.
- Version 0.3.8 (code 308).
List responses ask the server to elide large tool output
(`x-openchamber-part-shells: v1`): the part comes back as an empty text
plus an `openchamberContentShell` marker, and the full text is fetched
when a step is expanded. Every tail refresh (a turn starting, the app
returning) then replaced the loaded message with that shell again, so an
expanded step fell back to "无输出" — the more the session was used, the
more it looked like shell steps never had output.
reloadTail now keeps an already-loaded tool part when the server's copy of
that part is a shell (matched by position and call id), and the pending
state reads "输出较大,正在载入…" instead of claiming there was no output.
Version 0.3.7 (code 307).
- Typing `/` opens a palette above the composer, dsh-Go's shape: icon, the
first-party Chinese label, /name, a one-line description, the first match
highlighted and a return hint. It lists the directory's commands
(/api/command) and skills (/api/skill), filters by name, label or
description, and keeps the field focused while it opens.
- Picking completes `/name ` when the command takes arguments (its
description shows a `[...]` form) and runs argument-free commands at once;
skills complete and ride the next prompt as a `skills` attachment. Enter
picks the highlighted row, arrows move, Esc closes.
- Sends route by name: commands go through POST /api/session/:id/command so
the server expands the template (and writes the user message), skills go
through the normal prompt with their id attached, anything else stays a
plain message. A failed command keeps the draft for a retry.
- A failed turn now says so in the transcript: the last step's error is
rendered under it as a quiet red block with the 中文 reading (auth, retry,
stopped, send failure) and the provider's raw response behind 显示详情.
Failed compactions and idle errors not already carried by the step are
shown too; an error that a later step recovered from is not the turn's
outcome and stays hidden.
- The tail is refetched when a turn starts, so a command's server-written
user message (or another client's) appears without reopening the session;
a successful send clears the stale error banner.
Version 0.3.6 (code 306).
- Rebuilt the fold after dsh-Go's ExpandReveal/_holdHeader: the body grows
from its top edge and fades in over 280ms (easeInOutCubic), and every
frame reports the height it adds or removes *before layout*, so the list
can scroll by exactly that much and keep the header under the finger.
Folds nobody can see take their new size without animating or dragging
the view.
- Finished runs now fold to their summary line, as in dsh-Go; running ones
stay open. A tap overrides either default and is remembered.
- Streamed tool parts only carry an id and input, never the tool name, so
live steps showed a generic "工具" label. Each step now swaps in the
server's copy of its message when it ends, which brings the name, the
full input and the attachments (and with them the right icon, label and
image handling).
- getMessage read the message from the response envelope directly and
would have thrown; it now unpacks `data`.
Version 0.3.5 (code 305).
- gpt_markdown renders through its own Material port, whose Theme.of falls
back to a light theme: code panels stayed light and their text black in
the dark theme. The chat now wraps markdown in a matching `mui.Theme`.
- Folding a run changed the height below its header and threw the header
out of view. The toggle remembers the header's screen position, corrects
the scroll offset, and parks the header at the top when the run is
longer than the viewport.
- Step details show what a tool actually did: the command and its output
for shell steps, the remaining inputs and the result for the rest, in
monospace; toolOutput falls back to metadata. A read/write/edit of an
image is no longer foldable — its path opens the preview.
- The event stream now times out without a heartbeat, so a half-open
connection is noticed and reopened; returning to the foreground restarts
the stream, refreshes the session list and the open chat, and reloadTail
merges the newest page instead of dropping loaded history.
- A page shorter than the limit means there is nothing older, so short
sessions no longer offer "load earlier".
- Version 0.3.4 (code 304).
- The chat loaded only one page of history: a desc page's older side is
cursor.next, not previous, and the server rejects a cursor combined
with order (InvalidCursorError). The first page stores `next`, later
pages pass only `cursor`. tool/history_probe.dart walks a 1698-message
session down to the oldest message with no gaps.
- The message list is now reversed (newest at offset 0), so older pages
grow above and the viewport stays put; near the top it loads by itself
and a "load earlier" row remains as a fallback.
- The agent picker filtered only on mode, so Compaction/Title/Summary
(primary but hidden) showed up. Filter `hidden` too, and mark the
current model or agent with a check.
- The usage ring's sheet was guarded by a flag nothing ever set; the
ring now opens the context detail sheet.
- Tool image previews use a self-loading dialog and Image.memory: no
temp file and no path_provider, whose Android implementation throws
ClassNotFoundException: Landroid/content/Context; on the emulator.
- "Add server" in the connected server sheet now opens the form and
returns to the session list once connected.
- Add a Linux desktop target for fast local UI checks, plus the probe
that pages history.
- Version 0.3.2 (code 302).
- SOCKS5 had been fed to HttpClient.findProxy, which supports only HTTP
proxies ("Invalid proxy configuration"), and socks5h was treated as an
HTTP proxy ("Invalid request method"). HTTP/HTTPS proxies stay on
findProxy; socks5/socks5h tunnel through socks5_proxy, which resolves
names at the proxy; user:pass in the proxy URL is passed along.
- Saving moved to the successful path: a failed attempt stays in the form
with a short reason, and the server list keeps no duplicates.
- package net.blumia.openchamber.flutter (namespace, applicationId,
MainActivity, iOS bundle id), version 0.3.1 (code 301).
- show the proxy in the instance and server lists; clearer connect errors.
- tool/proxy_probe.dart checks direct, socks5, socks5h and HTTP proxies
(requests and SSE) against a live server.
- render assistant Markdown with gpt_markdown (the same renderer dsh-Go
uses): streaming, syntax-highlighted code with copy, tables, LaTeX and
task lists, replacing flutter_markdown
- fix the event stream: Dart's Map collapsed the repeated `types` query
into one value, so only one event type was subscribed and chats never
updated; build the query by hand
- keep the optimistic prompt on failure out of the transcript and put the
text back for a retry
- clamp negative turn durations
- build: Aliyun Maven mirrors, pre-seeded Gradle 9.5.0, and a complete
NDK 28.2 install to avoid multi-hour downloads
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.