13 Commits
Author SHA1 Message Date
blumia 2fb4a8ea79 feat: context usage ring and tool image previews
- the composer shows a context ring and percentage from the last
  token-bearing assistant message, toned at 75% and 90%; tapping opens a
  sheet with the model, used tokens, limits, output reserve and turn cost
- images a tool call names (read attachments as data URLs, input paths,
  and image paths in output text) get a link under the tool row; tapping
  previews it from the data URL or /api/fs/raw, allowing paths outside
  the workspace
- directory-scoped requests now send x-opencode-directory-encoding: uri,
  which scoped routes such as /api/fs/raw need to decode the header
- ocprobe gains a raw file command for checking previews

Bump version to 0.2.2 (build 16).
2026-11-18 02:15:11 +08:00
blumia dc3730eba7 feat: inline image previews, revert, and the official icon
- sent images keep a local copy and render as rounded thumbnails in the
  message, surviving later page reloads
- a prompt's menu can revert it and everything after it: confirm, then
  stage and commit the server-side revert
- the app icon is OpenChamber's own (packages/mobile/assets/icon-only.png)
- document a terminal assessment (native view vs Go ANSI vs xterm.js in
  a WebView) for the next decision

Bump version to 0.2.1 (build 15).
2026-11-17 23:46:06 +08:00
blumia 72119b73e8 feat: search sessions, attach files, read aloud, jump to latest
Reach the first-party mobile client's everyday features:

- sessions: a search button opens a field; typing asks the server with
  its search parameter (350 ms settle) and clearing restores the list
- composer: attach photos or files (up to five, 10 MB each) as data
  URLs with the prompt; attachments show as removable chips and are
  named under the sent message
- turn menu: read the answer aloud with the system voice, or stop it
- chat: a "latest" button appears after scrolling up and returns to the
  end of the conversation
- reset a live search when a connection ends

Bump version to 0.2.0 (build 14).
2026-11-17 21:52:06 +08:00
blumia 4c6fcf4cbe fix: skip a late tool event that has no name
A terminal tool event can arrive without its starting one; adding a
blank row for it is worse than waiting for the next page read.

Bump version to 0.1.12 (build 13).
2026-11-16 20:11:14 +08:00
blumia e67490e768 perf: open long sessions without re-reading every tool result
A chat page carried every finished tool result, and the app fetched it
twice when opening a chat, with a 20 second deadline. On a slow link a
long session (this one was ~530 KB per page) timed out.

- ask for shelled pages (x-openchamber-part-shells: v1), which drops
  finished tool results: ~180 KB for the same page
- fetch one message by id when its tool row is opened
- keep tool and step updates local from events instead of re-reading
  the page on every step, and only resync after a real disconnect
- 60 second deadline with a retry button

Bump version to 0.1.11 (build 12).
2026-11-16 20:04:42 +08:00
blumia 0e34d82a06 feat: actions under user messages, and a dependable footer icon
Every prompt now carries a row with its time, a copy button and a menu
(copy message, fork before this prompt), matching the first-party
client. The turn footer's sparkles became an inline SVG: the platform
symbol table left an empty square on some devices.

Bump version to 0.1.10 (build 11).
2026-11-16 19:55:05 +08:00
blumia d3e92f036a feat: open the turn actions in a bottom sheet
The footer's "more" button now opens a sheet with the completion time
above the actions, matching the first-party client; the platform action
sheet dropped the time. Copy answer and fork from here are listed, and
a back gesture dismisses it.

Bump version to 0.1.9 (build 10).
2026-11-16 18:34:32 +08:00
blumia a471c026f1 fix: measure a turn's duration when its prompt is not loaded
A long turn's prompt can fall before the loaded message page. Measure
from the first record of the run then, so historical turns still show a
duration in the footer.

Bump version to 0.1.8 (build 9).
2026-11-16 18:19:27 +08:00
blumia 8268bdecc2 feat: show a model, agent and duration footer after each turn
Match the first-party chat footer on touch screens: after a turn ends,
its last assistant message gets a row with the model name (resolved
from /api/model with the id as fallback), the agent and how long the
turn took, plus a "more" menu. The menu shows the completion timestamp
and offers copy answer and fork from here; forking copies history
before the next prompt (or the whole history at the end) and opens the
new session.

Bump version to 0.1.7 (build 8).
2026-11-16 18:05:15 +08:00
blumia e240a33e31 feat: one server button, and only primary agents to pick
The session screen now has a single server icon that opens the instance
list; picking an instance drops the live connection and connects to it,
and disconnecting moved into that list. A custom SVG rack stands in for
the missing server symbol on Android.

The agent sheet lists primary agents only: a session cannot run a
subagent (General, Explore) as its own agent.

Bump version to 0.1.5 (build 6).
2026-11-16 13:21:20 +08:00
blumia 13aca21d99 feat: save several servers and pick one to connect
Match the first-party mobile client's connection screen:

- the first screen lists saved servers, the one last used leading with
  its connect button or connected state, the others below, and adding
  is one tap
- servers can be added, edited (name, address, proxy, self-signed) and
  deleted; deleting the live or last one returns to the list
- a password sheet prompts only when the server asks for one, keeps the
  error and the typed password for a retry
- while connected, the instances sheet switches servers
- proxy and self-signed options stay per server (the native app's own)
- the single-server record and its token migrate automatically
- permission cards read a plain signal, fixing a flaky update
- bump version to 0.1.2 (build 3)
2026-11-16 11:52:38 +08:00
blumia 23f72fc46d feat: switch model or agent and start new sessions
- chat: a searchable sheet picks the model or agent for the session; the
  choice is applied through the server and mirrored in the session list
- sessions: a new-session sheet with a title and a working directory
  (the server's default plus the directories already listed); creating
  one opens its chat
- ocapi: list models with their display names and read the server's
  default location
- bump version to 0.1.1 (build 2)
2026-11-16 10:31:20 +08:00
blumia 254d08b1bd feat: bootstrap OpenChamber native Android client
Add a Go client for OpenChamber built with Asuka's native widgets.

- internal/ocapi: health, password-to-device-token auth, session and
  message paging, prompt/interrupt/model/agent, permissions, SSE events,
  HTTP/SOCKS5 proxies and certificate pinning
- internal/storage: connection settings plus a device token in the
  platform keystore, with a per-install id for server-side dedupe
- internal/appui: connect, session list and chat screens with streaming
  Markdown, reasoning/tool folding, permission cards and session actions
- netcfg: native module that enables cleartext HTTP in release builds
- cmd/ocprobe: terminal probe for the API
- headless UI tests (uitest) and the research/plan document
2026-11-16 09:09:09 +08:00