somora 2026.1106.3 → 2026.1116.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/config.example.yaml +24 -23
  2. package/docs/a2a.md +3 -0
  3. package/docs/agents.md +9 -2
  4. package/docs/api.md +34 -17
  5. package/docs/browser.md +1 -1
  6. package/docs/builder.md +29 -28
  7. package/docs/compaction.md +2 -2
  8. package/docs/decisions.md +25 -4
  9. package/docs/display.md +1 -1
  10. package/docs/external-agents.md +3 -1
  11. package/docs/memory.md +1 -1
  12. package/docs/mobile.md +16 -10
  13. package/docs/models.md +38 -14
  14. package/docs/realtime-voice.md +21 -5
  15. package/docs/security.md +16 -1
  16. package/docs/sentinel.md +2 -1
  17. package/docs/setup.md +5 -3
  18. package/docs/skills.md +2 -1
  19. package/docs/thinking.md +1 -1
  20. package/docs/tmux.md +324 -203
  21. package/docs/tools.md +45 -14
  22. package/docs/voice.md +4 -3
  23. package/docs/web.md +33 -5
  24. package/docs/wiki.md +3 -2
  25. package/package.json +12 -12
  26. package/src/a2a/client.ts +11 -0
  27. package/src/a2a/files.ts +2 -1
  28. package/src/a2a/server.ts +5 -2
  29. package/src/acp/somora-agent.ts +49 -7
  30. package/src/acp/translate.ts +4 -1
  31. package/src/attachments/store.ts +19 -2
  32. package/src/cli/acp.ts +3 -6
  33. package/src/cli/help-args.ts +21 -0
  34. package/src/cli/lsp.ts +1 -1
  35. package/src/cli/server-base.ts +4 -1
  36. package/src/cli/somora.ts +8 -1
  37. package/src/cli/team.ts +1 -1
  38. package/src/cli/tui/app.tsx +9 -2
  39. package/src/cli/tui/commands.ts +3 -0
  40. package/src/cli/tui/stream.ts +1 -0
  41. package/src/cli/tui/types.ts +2 -0
  42. package/src/config/loader.ts +1 -0
  43. package/src/config/reload.ts +1 -0
  44. package/src/config/settings/catalog/agents.ts +15 -0
  45. package/src/config/settings/catalog/engines.ts +2 -2
  46. package/src/config/settings/catalog/models.ts +23 -1
  47. package/src/config/types.ts +50 -0
  48. package/src/decisions/client.ts +92 -21
  49. package/src/decisions/input.ts +1 -1
  50. package/src/dream/deep-actions.ts +3 -2
  51. package/src/dream/deep-runner.ts +5 -4
  52. package/src/dream/deep-worker.ts +9 -4
  53. package/src/dream/lucid-actions.ts +20 -8
  54. package/src/dream/lucid-storage.ts +12 -3
  55. package/src/dream/lucid-worker.ts +9 -4
  56. package/src/dream/scheduler-state.ts +10 -0
  57. package/src/dream/wiki-file.ts +24 -0
  58. package/src/engine/a2a-external.ts +9 -7
  59. package/src/engine/acp-external.ts +1 -1
  60. package/src/engine/claude-cli.ts +56 -10
  61. package/src/engine/codex-app-server-client.ts +9 -1
  62. package/src/engine/codex-cli.ts +34 -9
  63. package/src/engine/codex-thread-config.ts +4 -0
  64. package/src/engine/grok-cli.ts +72 -10
  65. package/src/engine/grok-home.ts +44 -18
  66. package/src/engine/openai-compatible.ts +183 -163
  67. package/src/engine/thinking-params.ts +6 -1
  68. package/src/engine/tool-concurrency.ts +62 -0
  69. package/src/external/connection.ts +64 -37
  70. package/src/external/transport.ts +13 -1
  71. package/src/external/unprompted.ts +1 -1
  72. package/src/lsp/client.ts +8 -1
  73. package/src/mcp/config.ts +7 -12
  74. package/src/mcp/hub/credentials.ts +5 -1
  75. package/src/mcp/server.ts +29 -2
  76. package/src/memory/manager.ts +5 -2
  77. package/src/sentinel/check-store.ts +4 -3
  78. package/src/sentinel/schedule.ts +22 -7
  79. package/src/sentinel/scheduler.ts +31 -4
  80. package/src/sentinel/store.ts +27 -6
  81. package/src/server/async-questions.ts +25 -6
  82. package/src/server/auth-key.ts +11 -1
  83. package/src/server/builder-prompt.ts +35 -48
  84. package/src/server/builder-questions.ts +8 -0
  85. package/src/server/builder-session.ts +8 -6
  86. package/src/server/env-file.ts +82 -1
  87. package/src/server/index.ts +114 -21
  88. package/src/server/logger.ts +39 -0
  89. package/src/server/routes/attachments.ts +5 -1
  90. package/src/server/routes/builder.ts +15 -6
  91. package/src/server/routes/chat.ts +2 -2
  92. package/src/server/routes/external.ts +2 -2
  93. package/src/server/routes/mcp.ts +2 -2
  94. package/src/server/routes/sessions.ts +8 -0
  95. package/src/server/routes/settings.ts +17 -2
  96. package/src/server/routes/terminals.ts +99 -4
  97. package/src/server/run-external-turn.ts +5 -3
  98. package/src/server/run-turn-fallback.ts +46 -2
  99. package/src/server/run-turn.ts +22 -32
  100. package/src/server/session-export.ts +3 -1
  101. package/src/server/session-queue.ts +10 -1
  102. package/src/setup/presets.ts +2 -2
  103. package/src/tmux/attention-watcher.ts +105 -55
  104. package/src/tmux/attention.ts +154 -26
  105. package/src/tmux/detection/engine.ts +415 -0
  106. package/src/tmux/detection/identify.ts +149 -0
  107. package/src/tmux/detection/manifests/LICENSE +201 -0
  108. package/src/tmux/detection/manifests/SOURCE.json +120 -0
  109. package/src/tmux/detection/manifests/agy.json +89 -0
  110. package/src/tmux/detection/manifests/amp.json +139 -0
  111. package/src/tmux/detection/manifests/claude.json +512 -0
  112. package/src/tmux/detection/manifests/cline.json +122 -0
  113. package/src/tmux/detection/manifests/codex.json +294 -0
  114. package/src/tmux/detection/manifests/copilot.json +98 -0
  115. package/src/tmux/detection/manifests/cursor.json +121 -0
  116. package/src/tmux/detection/manifests/devin.json +159 -0
  117. package/src/tmux/detection/manifests/droid.json +93 -0
  118. package/src/tmux/detection/manifests/gemini.json +70 -0
  119. package/src/tmux/detection/manifests/grok.json +207 -0
  120. package/src/tmux/detection/manifests/hermes.json +265 -0
  121. package/src/tmux/detection/manifests/kilo.json +75 -0
  122. package/src/tmux/detection/manifests/kimi.json +180 -0
  123. package/src/tmux/detection/manifests/kiro.json +133 -0
  124. package/src/tmux/detection/manifests/letta.json +139 -0
  125. package/src/tmux/detection/manifests/maki.json +107 -0
  126. package/src/tmux/detection/manifests/muse.json +208 -0
  127. package/src/tmux/detection/manifests/opencode.json +103 -0
  128. package/src/tmux/detection/manifests/pi.json +49 -0
  129. package/src/tmux/detection/manifests/qodercli.json +116 -0
  130. package/src/tmux/detection/manifests/qwen.json +216 -0
  131. package/src/tmux/detection/manifests.ts +157 -0
  132. package/src/tmux/detection/somora-rules/codex.json +50 -0
  133. package/src/tmux/drive.ts +367 -0
  134. package/src/tmux/list.ts +6 -2
  135. package/src/tmux/observe.ts +157 -0
  136. package/src/tmux/origin-store.ts +28 -13
  137. package/src/tmux/tui-markers.ts +6 -158
  138. package/src/tools/agents/ask-result.ts +2 -0
  139. package/src/tools/agents/ask.ts +25 -4
  140. package/src/tools/agents/session-list.ts +2 -0
  141. package/src/tools/agents/status.ts +6 -0
  142. package/src/tools/builder/short-descriptions.ts +3 -4
  143. package/src/tools/builder/tools.ts +12 -2
  144. package/src/tools/docs/tools.ts +4 -0
  145. package/src/tools/dream/tools.ts +9 -3
  146. package/src/tools/exec/job-store.ts +19 -2
  147. package/src/tools/exec/local.ts +10 -2
  148. package/src/tools/exec/systemd-scope.ts +53 -0
  149. package/src/tools/exec/tools.ts +3 -2
  150. package/src/tools/file/analyze.ts +2 -0
  151. package/src/tools/file/remote.ts +32 -8
  152. package/src/tools/file/tools.ts +6 -0
  153. package/src/tools/image/tools.ts +8 -2
  154. package/src/tools/memory/tools.ts +6 -0
  155. package/src/tools/projects/tools.ts +6 -0
  156. package/src/tools/resources/tools.ts +2 -0
  157. package/src/tools/sentinel/tools.ts +3 -1
  158. package/src/tools/skill/tools.ts +4 -0
  159. package/src/tools/time/tools.ts +2 -0
  160. package/src/tools/tmux/local.ts +31 -2
  161. package/src/tools/tmux/remote.ts +9 -1
  162. package/src/tools/tmux/tools.ts +448 -406
  163. package/src/tools/types.ts +9 -0
  164. package/src/tools/video/tools.ts +4 -0
  165. package/src/tools/web/fetch.ts +2 -0
  166. package/src/tools/web/tools.ts +2 -0
  167. package/src/types/events.ts +3 -0
  168. package/src/voice/realtime/call.ts +167 -16
  169. package/src/voice/realtime/manager.ts +100 -17
  170. package/src/voice/realtime/openai-provider.ts +4 -1
  171. package/src/voice/realtime/persona.ts +6 -0
  172. package/templates/skills/coding-team/SKILL.md +114 -0
  173. package/templates/skills/coding-team/assets/AGENTS.md +38 -0
  174. package/web/dist/assets/index-BVhnDi0K.css +1 -0
  175. package/web/dist/assets/index-D5acQA-P.js +72 -0
  176. package/web/dist/assets/index-D5acQA-P.js.map +1 -0
  177. package/web/dist/index.html +2 -2
  178. package/web-mobile/dist/assets/index-DPTi-G6u.js +50 -0
  179. package/web-mobile/dist/assets/index-DPTi-G6u.js.map +1 -0
  180. package/web-mobile/dist/assets/{index-DiO_w3fL.css → index-DbeY-LMP.css} +1 -1
  181. package/web-mobile/dist/index.html +2 -2
  182. package/web/dist/assets/index-BVoxGfbc.js +0 -68
  183. package/web/dist/assets/index-BVoxGfbc.js.map +0 -1
  184. package/web/dist/assets/index-X7Hrih2o.css +0 -1
  185. package/web-mobile/dist/assets/index-KDmfPamH.js +0 -47
  186. package/web-mobile/dist/assets/index-KDmfPamH.js.map +0 -1
@@ -320,7 +320,8 @@ providers:
320
320
  # apiKey: <key> # leave out without authentication
321
321
  # model: clef
322
322
  # capabilities: [text, image] # image: the tool takes up to four images
323
- # # maxInputTokens: 16000 # optional; the lower of this and the server's limit applies
323
+ # # maxInputTokens: 16000 # optional; the lower of this and the server's limit applies.
324
+ # # A Flide server (OneJev) reports no limit: set it there.
324
325
  # # timeoutMs: 90000 # default
325
326
 
326
327
  # Image generation — text-to-image via an OpenAI-shaped image endpoint
@@ -433,7 +434,7 @@ providers:
433
434
  # allowPrivate: [] # LAN hosts/CIDRs agents may open,
434
435
  # # e.g. ["192.0.2.0/24", "nas.local"]
435
436
  # deny: [] # hostnames never opened, e.g. ["*.bank.at"]
436
- # profiles: {} # shared profiles: { firma: { agents: [a, b] } }
437
+ # profiles: {} # shared profiles: { team: { agents: [a, b] } }
437
438
 
438
439
  # videoGen:
439
440
  # enabled: true
@@ -501,19 +502,19 @@ providers:
501
502
  # the agent knows which paths matter for this conversation.
502
503
  #
503
504
  # `entities` is a CONTROLLED VOCABULARY — projects belong to one
504
- # entity (e.g. "privat", "acme"), and the agent picks FROM this list
505
+ # entity (e.g. "personal", "acme"), and the agent picks FROM this list
505
506
  # at create time. Prevents STT mishearings from inventing phantom
506
507
  # entities ("enofhom" silently becoming a new category). Only edited
507
508
  # here — agents cannot extend it via tools.
508
509
  # projects:
509
510
  # enabled: true
510
511
  # entities:
511
- # - slug: privat
512
- # label: Privat
512
+ # - slug: personal
513
+ # label: Personal
513
514
  # - slug: acme
514
- # label: acme GmbH
515
- # - slug: firma2
516
- # label: Firma Zwei
515
+ # label: Acme Inc.
516
+ # - slug: other-co
517
+ # label: Other Co
517
518
 
518
519
  # Compaction tunables. All optional — built-in defaults apply
519
520
  # when omitted. SOMORA_COMPACTION_* env vars override these for ops/CI.
@@ -632,6 +633,13 @@ providers:
632
633
  # # the background (capped by its own
633
634
  # # agentLoop.maxRounds), so this is
634
635
  # # really just a per-call ceiling.
636
+ # # Raise for exceptionally slow setups
637
+ # # (CPU-only inference, huge models).
638
+ # # claudeCli.mcpToolTimeoutMs and
639
+ # # codexCli.toolTimeoutSec MUST be ≥
640
+ # # this — the CLI's MCP layer sits
641
+ # # above us and will cut us off
642
+ # # otherwise.
635
643
  #
636
644
  # wakeGraceMs: 3000 # 3 sec — when work an agent started and
637
645
  # # walked away from finishes (a late
@@ -642,13 +650,6 @@ providers:
642
650
  # # (agent_ask_result, subagent_result,
643
651
  # # video_status) within this grace.
644
652
  # # 0..60000.
645
- # # Raise for exceptionally slow setups
646
- # # (CPU-only inference, huge models).
647
- # # claudeCli.mcpToolTimeoutMs and
648
- # # codexCli.toolTimeoutSec MUST be ≥
649
- # # this — the CLI's MCP layer sits
650
- # # above us and will cut us off
651
- # # otherwise.
652
653
 
653
654
 
654
655
  # Engine watchdog — idle-event timeout per engine. If an engine produces
@@ -690,14 +691,14 @@ providers:
690
691
  # h2PingIntervalMs: 30000 # HTTP/2 PING per client session (TLS listener) …
691
692
  # h2PingTimeoutMs: 30000 # … no ACK within this time → session destroyed (tab closed, Wi-Fi gone)
692
693
  # keepAliveDelayMs: 30000 # TCP keepalive on every socket (kernel probes on top)
693
- # tmux attention watcher — somora watches its own tmux sessions that were
694
- # created with kind "claude-code" or "codex" and detects when the CLI in
695
- # the pane goes from running to ready (finished OR waiting for input).
696
- # If the agent that started the session missed that moment (its wait_idle
697
- # timed out and its turn ended), somora dispatches a wake turn: "session X
698
- # became ready — read the output and continue". If the agent observed the
699
- # completion itself (capture/wait_idle after the event), NO wake fires.
700
- # One wake per completion, never repeated when ignored.
694
+ # tmux attention watcher — somora watches the tmux sessions it created
695
+ # that hold a coding agent it recognises (docs/tmux.md) and notices when
696
+ # the agent stops working and is idle, or stops at a dialog. If the agent
697
+ # that started the session missed that moment (its turn ended), somora
698
+ # starts a wake turn: "session X (codex) stopped working and is idle
699
+ # after 6 min" or "… needs an answer: it stopped at a dialog". If the
700
+ # agent looked at the session itself after that, no wake fires. One wake
701
+ # per event, never repeated when ignored.
701
702
  # tmux:
702
703
  # attention:
703
704
  # enabled: true # watcher + needs_attention metadata/badge
package/docs/a2a.md CHANGED
@@ -551,6 +551,9 @@ logged as `a2a.inbound_refused`.
551
551
  minute. A right token always passes. The cards are public, as the standard wants: anyone who
552
552
  reaches the server sees which agents are switched on and their
553
553
  descriptions.
554
+ - **Tokens go only where they belong.** somora sends a peer's token
555
+ only to an endpoint on the same host as the peer's agent card, the
556
+ `a2a.url` you configured. A card that names another host is refused.
554
557
  - **The login key stays apart.** A peer's token opens the A2A endpoint
555
558
  and nothing else in somora. The A2A paths are the only ones the login
556
559
  key does not guard, and they check the peer tokens themselves.
package/docs/agents.md CHANGED
@@ -230,7 +230,7 @@ be deleted. In the TUI:
230
230
  | `/session <slug-or-id>` | Switches to a session. |
231
231
  | `/new <slug>` | Creates a session and switches to it. |
232
232
  | `/main` | Back to the main session. |
233
- | `/reset YES` | Archives the current session and starts it fresh. The archive can be resumed with `/session <id>`. |
233
+ | `/reset YES` | Archives the current session and starts it fresh. `/unarchive <id>` brings the archive back. |
234
234
  | `/model` | Shows the model in use. |
235
235
  | `/model <alias>` | Uses that model for this session only. |
236
236
  | `/model default` | Drops the override. |
@@ -397,6 +397,11 @@ circle, even through three or more agents, is refused with an error
397
397
  that says so. Sub-agents waiting on their parents are part of the same
398
398
  check.
399
399
 
400
+ An agent answering a question does not `agent_ask` the asker back: its
401
+ reply already goes there. Such a call to the session the question came
402
+ from is refused, also when the asker did not wait. Another session of
403
+ the same agent is another conversation and can be asked as usual.
404
+
400
405
  ## Sub-agents
401
406
 
402
407
  `spawn_subagent` delegates a sealed task. The sub runs in a fresh
@@ -730,7 +735,7 @@ How the fallback chain works:
730
735
  | `steering` | boolean | `false` | Default for a message typed in the web client while a turn runs. `true` hands it into the running turn before its next step. `false` queues it as its own turn. The toggle next to Send flips it per message. Steering works on every engine: `openai-compatible`, `claude-cli`, `codex-cli` and `grok-cli`. |
731
736
  | `imageReview` | `never`, `always` | `never` | `always` feeds each generated image back to the agent so it can judge it, about 2k tokens per image. Not a lock: the agent can set `return_image` per call either way. |
732
737
  | `agentLoop.maxRounds` | integer | server value (8) | Rounds per turn on the `openai-compatible` engine. Builders have none unless set. |
733
- | `agentLoop.maxToolCallsPerTurn` | integer | server value (30) | Tool calls per turn, across all rounds. Builders default to 2000. |
738
+ | `agentLoop.maxToolCallsPerTurn` | integer | server value (30) | Tool calls per turn, across all rounds. Builders default to 2000. A hard limit: calls in a reply beyond it are refused, not run, and the model is asked to answer. |
734
739
  | `agentLoop.maxTurnMs` | integer | none | Time limit per turn in milliseconds. Builders default to 8 hours. |
735
740
 
736
741
  ### Workspace and visibility
@@ -813,6 +818,8 @@ an `openai-compatible` provider.
813
818
  | `fallback.retryUnavailableMinutes` | `60` | How long an unreachable model is skipped. 1 to 1440. |
814
819
  | `agentLoop.maxRounds` | `8` | Rounds per turn, `openai-compatible` engine. |
815
820
  | `agentLoop.maxToolCallsPerTurn` | `30` | Tool calls per turn. |
821
+ | `agentLoop.maxParallelTools` | `8` | Calls of one reply that run at the same time, for tools that change nothing. See [Tools](tools.md#results-limits-and-timeouts). |
822
+ | `agentLoop.parallelToolHint` | `false` | Tells a model with `parallelToolCalls: true` that independent calls can go in one reply. |
816
823
  | `agentLoop.longTaskDefaultTimeoutMs` | `300000` | Default wait of `agent_ask` and the result tools. |
817
824
  | `agentLoop.longTaskMaxTimeoutMs` | `1800000` | Longest wait. |
818
825
  | `agentLoop.wakeGraceMs` | `3000` | Delay before a wake turn. 0 to 60000. |
package/docs/api.md CHANGED
@@ -64,7 +64,7 @@ the turn and returns the reply in the response.
64
64
  | Base URL | `https://<your-host>.<your-tailnet>.ts.net:18737` with HTTPS set up, else `http://127.0.0.1:18737`. The web client is under `/web/`, the mobile app under `/mobile/`. |
65
65
  | Bodies | JSON in, JSON out (`Content-Type: application/json`), unless a route says otherwise. Uploads are raw bytes or `multipart/form-data`, as noted per route. |
66
66
  | Errors | A non-2xx response carries `{ "error": "<message>" }`. The message is written for a person. Some routes add fields, noted per route. |
67
- | Unknown agent or session | `404` on every route that takes one, except `POST /chat/abort` and `POST /server/restart`. |
67
+ | Unknown agent or session | `404` on every route that takes one, except `POST /chat/abort`. |
68
68
  | Agent being renamed | `409` with `error: "agent '<name>' is being renamed — try again in a moment"` on every route under `/agents/:agent/` except reads (`GET`), and on `POST /chat/send` and `POST /chat/send-sync`, for the old and the new name. Retry in a moment. |
69
69
  | Times | Epoch milliseconds as numbers, or ISO 8601 strings. The examples show which. |
70
70
  | Streams | Server-Sent Events with named events. `data` is always JSON. |
@@ -214,7 +214,7 @@ the day, a `subagents.tools.deny` entry that names no tool).
214
214
  | Field | Meaning |
215
215
  |---|---|
216
216
  | `key` | Stable per thing, e.g. `update:<version>`, `news:<hash>`, `config`, `login:claude-cli`, `login:openai-compatible:<provider>`, `login:mcp:<server>`, `tls`, `rem:<agent>`, `deep:<agent>/<slug>`, `lucid`, `mcp:<server>`, `model:<provider/id>`, `sentinel:<triggerId>`, `config:subagents-deny`, `config:rem-model` (agents that dream without a REM model), `dream:switch` (the one-time rewrite to the dreams switch). |
217
- | `kind` | `update`, `news`, `config`, `login`, `tls`, `dream`, `mcp`, `model`, `sentinel`. |
217
+ | `kind` | `update`, `news`, `config`, `login`, `tls`, `dream`, `mcp`, `model`, `sentinel`, `a2a`. |
218
218
  | `level` | `info`, `warning`, `important`. |
219
219
  | `title`, `text`, `url?` | Plain text. `url` is `https://` only. |
220
220
  | `firstSeen`, `lastSeen`, `count` | Epoch ms; `count` counts events, a checked state stays `1`. |
@@ -536,9 +536,11 @@ stay. Before writing, the file is saved to `~/.somora/config-backups/`
536
536
 
537
537
  #### `POST /settings/restore`
538
538
 
539
- Body `{name, hash}`. Writes that backup back after checking it, keeps
540
- the current file as a backup too, and reloads. `400` for a name that
541
- is not a backup or a version that does not validate, `404` for a backup
539
+ Body `{name, hash}`, both required. Writes that backup back after the
540
+ same checks as `apply`, keeps the current file as a backup too, and
541
+ reloads. `400` for a missing hash, a name that is not a backup, a
542
+ version that does not validate, or one that would change a locked
543
+ setting or remove a model or provider still in use; `404` for a backup
542
544
  that is not there, `409` as above.
543
545
 
544
546
  ### `POST /server/restart`
@@ -979,7 +981,7 @@ All events:
979
981
  | `builder_state` | A builder session's mode, phase or plan file changed | `{mode, phase, planPath}` |
980
982
  | `todo_updated` | A builder replaced its task list | `{todos: [{content, status, priority?}], by?}` |
981
983
  | `acceptance_updated` | A builder wrote its acceptance list, an item was reviewed, or the list became required or optional | `{items: [{id, requirement, status, evidence?, updatedAt, review?}], required, by?}`. `by` is the builder, `person` or the reviewing agent; absent when only `required` changed. |
982
- | `question_asked` | An agent asks the person | `{questionId, question, header?, options, multiple, expiresAt, kind?, from?, async?, parts?, source?}`. `kind: "permission"` and `from: "external"` mark an external agent asking to run something; each option's `description` is then its kind (`allow_once`, `reject_once`, …). `async: true` marks a question that does not wait (`expiresAt` is `0`); `parts` lists several questions asked at once, `source` is `ask_user`, or `codex` for Codex's own question tool. |
984
+ | `question_asked` | An agent asks the person | `{questionId, question, header?, options, multiple, expiresAt, kind?, from?, async?, parts?, source?, details?}`. `kind: "permission"` and `from: "external"` mark an external agent asking to run something; each option's `description` is then its kind (`allow_once`, `reject_once`, …). `async: true` marks a question that does not wait (`expiresAt` is `0`); `parts` lists several questions asked at once, `source` is `ask_user`, or `codex` for Codex's own question tool. `details` is what the person decides on, in full (markdown), shown on the card. |
983
985
  | `question_answered` | The open question was answered, replaced or ran out of time | `{questionId?, answered, choice?, by?}`. `by: "message"`: a question that does not wait, answered by writing something else. |
984
986
 
985
987
  Details where the table is not enough:
@@ -1052,12 +1054,12 @@ HTTPS the connection is also pinged (`sse.h2PingIntervalMs`,
1052
1054
  |---|---|
1053
1055
  | `text` | The message as it is kept: what a person typed, what an agent asked, what a trigger's prompt says, or the one-line statement of a wake-up. |
1054
1056
  | `ts` | Epoch ms. |
1055
- | `turnId` | The id from `POST /chat/send`. Match it to the bubble you drew. |
1057
+ | `turnId` | Live event only. The id from `POST /chat/send`. Match it to the bubble you drew. |
1056
1058
  | `origin` | Where the turn came from. See below. |
1057
1059
  | `input` | `{modality?: "text"\|"voice", source?: "stt"\|"realtime"}` when the turn was not typed. `stt` is dictation, `realtime` a sentence from a call. |
1058
1060
  | `steer`, `steer_id` | `steer: true` marks a message that went into the running turn `turnId`. `steer_id` matches the `steer_queued` event. |
1059
1061
  | `from_agent`, `from_session`, `agent_ask_call_id` | Older fields, derived from an `agent` origin. |
1060
- | `attachments` | `{hash, name, mime, size}` of the files sent with the message. |
1062
+ | `attachments` | Stored row only. `{hash, name, mime, size}` of the files sent with the message. |
1061
1063
  | `attachment_descriptions` | Stored row only. The vision worker's description of each attachment the model could not see, one string per file. |
1062
1064
  | `from_system` | Older field, derived from the origin: `sentinel`, `tmux`, `browser`, `voice`, `peer`, or for a wake its `about` (`a2a`, `subagent`, `job`, `system`). The shipped clients draw these as a divider, not as a bubble. |
1063
1065
 
@@ -1081,7 +1083,7 @@ origin?:
1081
1083
  | `human` | A person typing (`chat`) or dictating (`voice-stt`). |
1082
1084
  | `agent` | Another agent's question, or its follow-up on one (`callId` is the original call). |
1083
1085
  | `subagent` | A brief running in its own `sub-…` session. |
1084
- | `sentinel`, `tmux`, `browser`, `voice` | A trigger, a tmux session that became ready, a browser window handed back, a question from a voice call. |
1086
+ | `sentinel`, `tmux`, `browser`, `voice` | A trigger, a coding agent in tmux that finished or stopped at a dialog, a browser window handed back, a question from a voice call. |
1085
1087
  | `wake` | Something the agent started earlier has finished: a late answer (`about: "a2a"`, `ref` is the call id), a sub-agent (`subagent`, task id) or a video (`job`, job id). |
1086
1088
  | `peer` | A task from another agent system over A2A ([A2A](a2a.md#taking-work-in)). |
1087
1089
  | `wake` with `about: "system"` | somora itself speaks. `cause` names the occasion. Today that is `restart`, and the text begins `[system: restart]`. |
@@ -1200,7 +1202,7 @@ The sessions of one agent.
1200
1202
 
1201
1203
  | Field | Meaning |
1202
1204
  |---|---|
1203
- | `dreamCoverageTs`, `dreamLagEvents` | How far REM has read this session, and how many events it has not read yet. `null` when it never ran. |
1205
+ | `dreamCoverageTs`, `dreamLagEvents` | How far REM has read this session, and how many events it has not read yet. `dreamCoverageTs` is `null` when REM never ran; `dreamLagEvents` is always a number (then all of the session's events). |
1204
1206
  | `unreadAt`, `seenAt` | Unread state, see `GET /activity/stream`. |
1205
1207
  | `archivedAt`, `archiveReason` | Present on archived sessions. |
1206
1208
  | `projectSlug` | Present when a project is pinned. |
@@ -2038,6 +2040,7 @@ turn a person started does not block: it returns at once with
2038
2040
  | `options` | yes | 2 to 6 of `{label, description?}`. |
2039
2041
  | `header` | no | A short title, at most 40 characters. |
2040
2042
  | `multiple` | no | `true` allows several answers. |
2043
+ | `details` | no | What the person decides on, in full (markdown, at most 8000 characters): the text to approve, the drafts to pick from. Shown on the card; blank is left out. |
2041
2044
  | `timeout_ms` | no | Default 30 minutes for a builder, 10 for a chat agent; at most 4 hours. |
2042
2045
 
2043
2046
  Returns `{answered, answers: string[], text?}`. A second question on
@@ -2551,7 +2554,9 @@ upload in `attachments` on `POST /chat/send` or `POST /chat/send-sync`.
2551
2554
  ### `POST /attachments`
2552
2555
 
2553
2556
  Uploads one file as the raw request body. The file name goes into the
2554
- `X-Somora-Filename` header, URL-encoded.
2557
+ `X-Somora-Filename` header, URL-encoded. An upload larger than the
2558
+ largest accepted file (50 MB, the size an image may have before it is
2559
+ scaled) is stopped while it streams, with `400`.
2555
2560
 
2556
2561
  ```bash
2557
2562
  curl -H "Authorization: Bearer $KEY" -X POST $BASE/attachments \
@@ -2845,7 +2850,8 @@ route did not use is listed in `job.warnings` as `ignored: <field>`.
2845
2850
  ## Voice
2846
2851
 
2847
2852
  Dictation and spoken replies. Each route answers `503` when its part,
2848
- `stt` or `tts`, is not enabled in the config.
2853
+ `stt` or `tts`, is not enabled in the config, except `GET /stt/config`
2854
+ and `GET /tts/config`, which answer `{enabled: false}`.
2849
2855
 
2850
2856
  ### `GET /stt/config`
2851
2857
 
@@ -3035,19 +3041,22 @@ The tmux sessions on the server.
3035
3041
  curl -H "Authorization: Bearer $KEY" $BASE/tmux/sessions
3036
3042
  ```
3037
3043
 
3038
- Returns `{sessions: [{name, windows, activeCommand, activeTitle, createdEpoch, lastActivityEpoch, origin?}]}`.
3044
+ Returns `{sessions: [{name, windows, activeCommand, activeTitle, createdEpoch, lastActivityEpoch, sessionId, origin?}]}`.
3039
3045
  The two `…Epoch` fields are in seconds. `origin` says which agent and
3040
3046
  session created the tmux session, when somora did.
3041
3047
 
3042
3048
  ### `WS /tmux/attach?session=<name>`
3043
3049
 
3044
- A WebSocket to `tmux attach-session -d -t <name>`.
3050
+ A WebSocket to `tmux attach-session -d -t <name>`. A session somora
3051
+ created is attached with `-f ignore-size`, so the viewer never changes
3052
+ its size.
3045
3053
 
3046
3054
  | Direction | Frame | Meaning |
3047
3055
  |---|---|---|
3048
3056
  | server to client | binary | Terminal output. |
3049
3057
  | client to server | binary | Keyboard input. |
3050
- | client to server | text `{"type":"resize","cols":N,"rows":N}` | The terminal's size changed. |
3058
+ | client to server | text `{"type":"resize","cols":N,"rows":N}` | The terminal's size. Send it on open and when it changes; one sent before the server's terminal is up is applied when it starts. |
3059
+ | server to client | text `{"type":"attached","sessionId":"$N","createdEpoch":N,"fixedCols":N,"fixedRows":N}` | Attached; names the session (tmux's id and start second), so a client can tell a session started anew under the same name. `fixedCols` and `fixedRows` come for a session somora created: show exactly that size, the window plus its status line. |
3051
3060
  | server to client | text `{"type":"ping"}` | Sent every 25 seconds. |
3052
3061
 
3053
3062
  Any message from the client counts as a sign of life. After 80 seconds
@@ -3550,6 +3559,8 @@ question that does not wait. That last kind carries `async: true` and
3550
3559
  `expiresAt: 0`, and with several questions asked at once `parts`
3551
3560
  (`[{question, header?, options, multiple}]`, the first repeated at the
3552
3561
  top). It stays open between turns, after a reload and a restart.
3562
+ `details`, when the agent gave it, is what the person decides on, in
3563
+ full (markdown).
3553
3564
 
3554
3565
  ```json
3555
3566
  { "question": { "id": "…", "question": "claw asks for permission: exec: rm -rf /tmp/x",
@@ -3570,8 +3581,14 @@ A question that does not wait takes the same body, or `parts` with one
3570
3581
  `{answers?, text?}` per question. The answer is sent as the person's
3571
3582
  next message, the way `POST /chat/send` sends a typed one: the chosen
3572
3583
  labels for one question, each question with its answer for several.
3573
- Returns `{ ok: true, sent: true, turnId, text }`; `400` when nothing
3574
- was chosen or typed. Any message the person sends to the session with
3584
+ `400` when nothing was chosen or typed.
3585
+
3586
+ While a turn of the session is running, usually the one that asked,
3587
+ the answer goes into that turn the way a steered message does (`POST /chat/send` with `steer:
3588
+ true`): every client gets `steer_queued`, and the response is
3589
+ `{ ok: true, sent: true, steered: true, steerId, turnId, text }` with
3590
+ the running turn's id. Otherwise it starts a turn of its own: `{ ok:
3591
+ true, sent: true, steered: false, turnId, text }`. Any message the person sends to the session with
3575
3592
  `POST /chat/send` answers such a question too and removes it.
3576
3593
 
3577
3594
  ## External MCP servers
package/docs/browser.md CHANGED
@@ -359,7 +359,7 @@ browser:
359
359
  | `browser.viewport` | `1280` x `800` | Page size. Minimum 320 x 240. |
360
360
  | `browser.stream.quality` | `60` | JPEG quality of the live picture, 10 to 100. |
361
361
  | `browser.stream.maxFps` | `15` | Frames per second of the live picture, 1 to 30. The stream never sends more than 20. |
362
- | `browser.allowPrivate` | `[]` | Private hosts or ranges agents may open, for example `["192.0.2.0/24", "nas.local"]`. |
362
+ | `browser.allowPrivate` | `[]` | Private hosts or ranges agents may open, for example `["192.0.2.0/24", "nas.local"]`. `[localhost, 127.0.0.1, "::1"]` lets agents check dev servers and test builds on the somora machine and nothing else of your network. |
363
363
  | `browser.deny` | `[]` | Hosts never opened, for example `["*.exampleco.com"]`. |
364
364
  | `browser.profiles` | `{}` | Shared profiles: `<name>: { agents: [...] }`. Names use lowercase letters, digits, `-` and `_`. |
365
365
 
package/docs/builder.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # Builder agents
2
2
 
3
3
  A builder is an agent made for writing software. It works in a
4
- repository on the machine somora runs on: it reads the code, makes a
5
- plan, waits for your Go, then edits, runs and tests until the job is
6
- done. You talk to it in the chat like to any other agent, and another
4
+ repository on the machine somora runs on: it reads the code, edits,
5
+ runs and tests until the job is done, and looks at what it built. You talk to it in the chat like to any other agent, and another
7
6
  agent can hand it an order.
8
7
 
9
8
  ## What you get
10
9
 
11
- - **Plan first, then build.** The builder writes a plan file and stops.
12
- Nothing in the repository changes until you press Go.
10
+ - **Builds straight away, plans when you ask.** A new session starts
11
+ building. Switch on the plan phase in the task panel and the builder
12
+ writes a plan file and waits for your Go.
13
13
  - **A task panel beside the chat.** You see the task list, how long the
14
14
  turn has been running and what it is doing right now.
15
15
  - **Questions with buttons.** At a real fork the builder asks you and
@@ -74,15 +74,16 @@ them any time in the task panel.
74
74
  |---|---|---|---|
75
75
  | Mode | **attended** | a person opened the session | `ask_user` is offered. The builder asks at a real fork in the road. |
76
76
  | Mode | **unattended** | an agent handed over an order | `ask_user` is hidden. The builder decides itself, notes each decision in its report and never waits. |
77
- | Phase | **plan** | a person opened the session | The builder reads, searches, runs read-only commands and asks. The only file it writes is the plan. |
78
- | Phase | **build** | an agent handed over an order | The builder edits, runs, tests and reports. A plan file, if there is one, counts as approved. |
77
+ | Phase | **build** | always, unless a plan is asked for | The builder edits, runs, tests and reports. A plan file, if there is one, counts as approved. |
78
+ | Phase | **plan** | you switch it on in the task panel, or an order asks for it (`phase: "plan"`) | The builder reads, searches, runs read-only commands and asks. The only file it writes is the plan. |
79
79
 
80
80
  In the plan phase these tools are hidden: `file_write`, `file_patch`,
81
81
  `process`, `spawn_subagent` and `subagent_result`. The builder ends the
82
82
  phase by saying "Plan ready" and stopping.
83
83
 
84
84
  **Go** switches the phase to build and sends the builder a message: the
85
- plan is approved, execute it, keep the task list, end with the report.
85
+ plan is approved, execute it, end with the report. A reply in the chat
86
+ does not end the plan phase; press Go.
86
87
  So a project can start directly with the builder, with no other agent
87
88
  in between.
88
89
 
@@ -178,8 +179,8 @@ green test suite are not an accepted build.
178
179
  compaction carries the list word for word. After a compaction before
179
180
  a turn, the builder reads it with `acceptance_write` and no items.
180
181
 
181
- At most 60 items. A requirement is cut at 500 characters, evidence and
182
- review notes at 1000.
182
+ At most 60 items. A requirement may have 500 characters, evidence and
183
+ review notes 1000; the tool refuses a longer one (the HTTP route cuts it).
183
184
 
184
185
  ### Reviewing the list
185
186
 
@@ -438,17 +439,25 @@ byte. In order:
438
439
  1. **Identity and environment.** One line who it is, then working
439
440
  directory, whether that is a git repository, platform, model, date
440
441
  and language servers.
441
- 2. **Harness rules.** How to work: everything through tools, read
442
- before patching, search before assuming, verify after every change
443
- with the repository's own build and test commands, the smallest
444
- correct change, git only when asked, no secrets. A fix covers the
445
- cause and the sibling code paths. Every response either makes
446
- progress with a tool call or is the final report.
447
- 3. **Done and messages.** Done means every requirement checked, test
448
- output read, the diff looked at, nothing still running, nothing
449
- invented. A `[somora]` message is a notice from the harness, or a
450
- message someone sent during the turn. Then what the final report
442
+ 2. **Harness rules.** Short rules for the tools: everything through
443
+ tools, read a file before changing it (unless the builder just wrote
444
+ it), file tools instead of shell commands for files, check every exit
445
+ code, do not repeat a failing call. Git only when asked, no secrets.
446
+ Every response either makes progress or is the final report.
447
+
448
+ The builder verifies by running its work: the project's own tests
449
+ and build, and for a web page or a game a screenshot it looks at.
450
+ Background jobs are not polled.
451
+ 3. **Done and messages.** Done means every requirement checked and
452
+ nothing invented. A `[somora]` message is a notice from the harness,
453
+ or a message someone sent during the turn. Then what the final report
451
454
  contains.
455
+
456
+ The rules are kept short on purpose. On the same model a prompt of
457
+ tool rules alone did every task of a five-task comparison at least as
458
+ well as an earlier, much longer prompt that also prescribed a method
459
+ (tests as proof, evidence for every claim, a task list kept every few
460
+ rounds), and better on the hardest task.
452
461
  4. **Team, compact.** The principal and the colleagues it can consult
453
462
  with `agent_ask`, one line each, plus the team rules.
454
463
  5. **Rules for this builder.** The body of its `AGENTS.md`.
@@ -499,14 +508,6 @@ The session file keeps every record, and the chat shows an
499
508
  `engine_meta` row `context_compacted`. When no compaction worker
500
509
  answers, old tool results are shortened as for chat agents.
501
510
 
502
- **A stale task list.** After twelve tool rounds without `todo_write`
503
- while items are open, the builder gets one line asking for an update.
504
- The list is what you watch.
505
-
506
- **Checkpoints.** Every 100 tool rounds the builder is told to refresh
507
- its task list and append a short status to its report file, so a crash
508
- late in a long build loses minutes.
509
-
510
511
  **No round cap.** A builder has no `maxRounds` unless its `agent.yaml`
511
512
  sets one. A round count says nothing about progress. The brakes are the tool-call
512
513
  budget (2000), the time cap (8 hours) and the loop guard below. A number
@@ -361,7 +361,7 @@ enforces:
361
361
 
362
362
  | Engine | Set `contextWindow` to | Why |
363
363
  |---|---|---|
364
- | `codex-cli` | 258400 | Codex runs every session against its own window, which is smaller than the model's API window. |
364
+ | `codex-cli` | 258400 (475000 for `gpt-6.1-terra`) | Codex runs every session against its own window, which is smaller than the model's API window. |
365
365
  | `claude-cli` | the model's real window | Claude Code sessions run against it: 1M for the Claude 5 family, 200k for Haiku 4.5. |
366
366
  | `openai-compatible` | the server's limit | Use vLLM `--max-model-len`, SGLang `--context-length` or oMLX's configured length, not the number on the model card. |
367
367
 
@@ -418,7 +418,7 @@ fallback:
418
418
  | `compaction.builderTargetRatio` | 0.6 | Builders only: the share of the input budget a turn may start with. 0.2 to 0.9. `openai-compatible` only. See [Builder turns](#builder-turns). |
419
419
  | `compaction.workers` | unset | Models that may summarise, in the order they are tried. Unset means automatic choice. |
420
420
  | `compaction.preferSessionModel` | false | Ask the session's own model before the workers. |
421
- | `compaction.modelOverride` | unset | One model that is always asked first. |
421
+ | `compaction.modelOverride` | unset | One model that is always asked first. The compaction inside a builder turn does not use it; it asks `compaction.workers` (and the session's model with `preferSessionModel`). |
422
422
  | `fallback.retryUnavailableMinutes` | 60 | How long an unreachable model is skipped by chat, REM and compaction. 1 to 1440. |
423
423
 
424
424
  Environment variables override the file:
package/docs/decisions.md CHANGED
@@ -59,8 +59,27 @@ models page lists the decision models somora was run with.
59
59
  | Model | Where it runs | Images | Checked with somora |
60
60
  |---|---|---|---|
61
61
  | Clef | Self-hosted, Cloudflare's open decision model | yes | yes |
62
+ | OneJev | Self-hosted on a Flide server | yes | yes |
62
63
  | Jev | TypeSafe AI, hosted | no, text only | no |
63
64
 
65
+ Text questions look the same on every server; images do not. Clef
66
+ takes them as an `images` list. A Flide server (OneJev and the other
67
+ models Flide serves) takes them as `media`, each named once in the state
68
+ by a `<image:N>` marker, and quietly ignores an `images` list.
69
+
70
+ somora tells the two apart by the server's `GET <baseUrl>/v1/models`
71
+ (Flide lists `models` with a `name`, Clef `data` with an `id`; a server
72
+ without that route counts as Clef) and sends the form that server reads. For Flide it adds the markers itself: an
73
+ object state gets an `images` list of them, a text state gets them
74
+ appended, and a state with an `images` key of its own is wrapped as
75
+ `{state, images}`.
76
+
77
+ When the list cannot be read and the server's form is not known yet, a
78
+ call with images is refused as `transport` and nothing is sent.
79
+
80
+ Flide's models list carries no input limit, so set `maxInputTokens` for
81
+ a model there. An input over Flide's own limit comes back as `too-long`.
82
+
64
83
  Jev was not tested with somora. By its public description it speaks the
65
84
  same API, so the same block with Jev's address, key and model name
66
85
  should work. Treat it as untested.
@@ -126,8 +145,10 @@ neither, the server decides. somora reads the server's value at most
126
145
  every ten minutes, so a change there takes effect without a restart.
127
146
 
128
147
  Before sending, somora estimates the size and refuses a clearly too long
129
- input. A server that rejects an input as too long (HTTP 413) passes its
130
- error message on, or the limit when it sends none. A server that cuts
148
+ input.
149
+
150
+ A server that rejects an input as too long (HTTP 413, or Flide's HTTP
151
+ 422 naming its limit) passes its error message on, or the limit when it sends none. A server that cuts
131
152
  the input off silently is caught too: when it reports exactly its limit
132
153
  as the tokens read, the answers are discarded. When the server allows
133
154
  more than your `maxInputTokens`, its exact count is checked against
@@ -170,8 +191,8 @@ A result is either `ok` or `unavailable`. An unavailable result names a
170
191
  | `authentication` | The server rejected the key. |
171
192
  | `rate-limited` | The server asks to slow down. |
172
193
  | `not-ready` | The server is up but the model is not, for example not loaded right now. |
173
- | `transport` | The server could not be reached, or answered with an unexpected HTTP error. |
174
- | `too-long` | The input exceeds the limit. Nothing was sent, or the server's answers were discarded because its exact count was above your `maxInputTokens`. |
194
+ | `transport` | The server could not be reached, answered with an unexpected HTTP error, or its image form is unknown for a call with images. |
195
+ | `too-long` | The input exceeds the limit. Nothing was sent, the server refused it as too long, or the server's answers were discarded because its exact count was above your `maxInputTokens`. |
175
196
  | `truncated` | The server cut the input off. The answers were discarded. |
176
197
  | `unsupported-input` | The request was rejected, or an image could not be used. |
177
198
  | `invalid-response` | The answers did not match the questions. |
package/docs/display.md CHANGED
@@ -241,7 +241,7 @@ A path only works after the format word.
241
241
  | `/new <slug>` | Creates a session and switches to it. |
242
242
  | `/main` | Returns to the `main` session. |
243
243
  | `/compact [what to keep]` | Compacts this session now and the conversation goes on. The sentence is the focus of the summary. See [Compact by hand](compaction.md#compact-by-hand). |
244
- | `/reset [YES]` | Without `YES`: explains what would happen. With `YES`: archives the current session and starts it fresh. `/unarchive` brings the archive back. |
244
+ | `/reset [YES]` | Without `YES`: explains what would happen. With `YES`: archives the current session and starts it fresh; an open question of the archived conversation goes away. `/unarchive` brings the archive back. |
245
245
  | `/models` | Lists the configured models with alias, engine, context size and capabilities. |
246
246
  | `/model [<alias>\|default]` | No argument: shows the model in effect and where it comes from. An alias or `provider/id`: sets it for this session. `default` or `-`: back to the agent's own model. |
247
247
  | `/show [memory\|tools] [on\|off]` | Line visibility, see "The two switches". |
@@ -27,7 +27,9 @@ over that command's input and output.
27
27
  options numbered.
28
28
  - **Stop.** The stop button cancels the agent's turn on its side. It
29
29
  also works while the connection is still starting: the turn ends at
30
- once and nothing is sent.
30
+ once and nothing is sent. An agent that ignores the cancel gets ten
31
+ seconds; then somora closes the connection and the turn ends as
32
+ stopped. The next message starts the agent again.
31
33
  - **Messages it sends on its own.** Some agents write again after their
32
34
  turn ended, for example when a sub-task they started finishes. somora
33
35
  keeps listening, see
package/docs/memory.md CHANGED
@@ -391,7 +391,7 @@ Ask the index directly. Replace `<name>` with the agent.
391
391
  curl -H "Authorization: Bearer $(somora key)" 'http://127.0.0.1:18737/agents/<name>/memory/notes' | jq '.count'
392
392
 
393
393
  # State of the shared vault and wiki index: building | ready
394
- curl -H "Authorization: Bearer $(somora key)" 'http://127.0.0.1:18737/health' | jq '.sharedIndex'
394
+ curl -H "Authorization: Bearer $(somora key)" 'http://127.0.0.1:18737/health' | jq '.sharedIndex.state'
395
395
 
396
396
  # Is the embedding model loaded? "failed" means words-only search
397
397
  curl -H "Authorization: Bearer $(somora key)" 'http://127.0.0.1:18737/health' | jq '.memoryEmbedder'
package/docs/mobile.md CHANGED
@@ -66,7 +66,9 @@ Otherwise the link points at `127.0.0.1`, which the phone cannot open.
66
66
 
67
67
  | Part | What it does |
68
68
  |---|---|
69
- | **Header** | Shows `agent · session ▾ model`. Tap it to switch session or model. On the right: the work badge, the **tools** switch (a wrench; on a wide screen with its name), in a builder session the **builder** button (a clipboard, with the number of open tasks), the screen-awake toggle, the voice toggle and, with realtime voice, the **call** button (a phone). |
69
+ | **Header** | Shows `agent · session ▾ model`. Tap it to switch session or model. On the right: the work badge, in a builder session the **builder** button (a clipboard, with the number of open tasks), with realtime voice the **call** button (a phone), and the **settings** button (sliders). |
70
+ | **Settings** | The sliders button opens a sheet with the settings of the chat on screen: tool activity, recalled notes and reading replies aloud, each where it applies. A dot on the button means at least one of them is not as it starts out. |
71
+ | **This phone** | Where the browser can keep the screen awake, the koala in the top-left corner opens the settings of the phone itself, whatever chat is open: keeping the screen awake. A dot on the koala means it is on. Elsewhere the koala is only the logo. |
70
72
  | **Avatar row** | One tile per agent. Tap to switch. The app remembers the last agent. Long-press a tile to change the order, see below. |
71
73
  | **Chat** | The history of the open session, newest first loaded. Scroll to the top, or tap **Load older messages**, for the next older part. Replies are rendered as Markdown. A wide code block scrolls sideways. |
72
74
  | **Input bar** | Paperclip, microphone, text field, Send. Enter sends, Shift+Enter starts a new line. |
@@ -169,6 +171,9 @@ message, or write anything else, which answers it too. A card with
169
171
  several questions, or one that allows several answers, has a **Send**
170
172
  button.
171
173
 
174
+ The question stays in the chat with its options after the card
175
+ closes, also with the tools switch off.
176
+
172
177
  A question that waits, such as an external agent's permission request,
173
178
  shows how long it still waits. The card is read again after
174
179
  a reload or a dropped connection.
@@ -202,9 +207,9 @@ again and the transcript lands in the text field for you to check. It
202
207
  is never sent by itself. The button is greyed out when `stt.enabled` is
203
208
  off or the browser cannot record.
204
209
 
205
- **Spoken replies.** With text-to-speech configured, the header shows a
206
- `🔊`/`🔇` toggle. When it is on and you sent the message by voice, the
207
- reply is also played. The toggle is remembered per agent. Replies with
210
+ **Spoken replies.** With text-to-speech configured, the settings sheet
211
+ has a **Read replies aloud** switch. When it is on and you sent the message by voice, the
212
+ reply is also played. The switch is remembered per agent. Replies with
208
213
  audio get a Play button. Details are in the [voice guide](voice.md).
209
214
 
210
215
  ### Calling an agent
@@ -233,12 +238,12 @@ the screen follows. After a call ends: **call again** or **close**.
233
238
 
234
239
  ### Keeping the screen awake
235
240
 
236
- The `☀️`/`🌙` toggle in the header keeps the display on while the app
237
- is open. It is off by default and remembered per browser.
241
+ **Keep screen awake** keeps the display on while the app is open. Tap
242
+ the koala in the top-left corner to find it. It is off by default and remembered per browser.
238
243
 
239
244
  > **Note:** On an iPhone this needs iOS 18.4 or newer. Older versions
240
- > accept the request and let the screen sleep anyway. The toggle still
241
- > switches there, and its tooltip says so.
245
+ > accept the request and let the screen sleep anyway. The switch still
246
+ > works there, and the line under it says so.
242
247
 
243
248
  ## What the chat shows
244
249
 
@@ -250,6 +255,7 @@ is open. It is off by default and remembered per browser.
250
255
  | `memory · N notes` line | The notes recalled for the turn, see "Recalled notes" below. Only with the memory switch on. |
251
256
  | `⇄ fallback · <model>` | A backup model answered. The tooltip names the models that failed and why. |
252
257
  | **⚠** block | The turn ended in an error. |
258
+ | Question row | A question the agent asked you, with its options. Hidden only while its card is open. |
253
259
  | `◌ history compacted …` divider | The history was compacted: before a turn, by hand, or by the engine itself. When somora compacted, the line says by how much. |
254
260
  | Media line | The reply produced a picture or video. The phone shows a line naming it. Open the web client to see it. |
255
261
  | `Image from <host>` with **Show** and **Always show** | A picture from another website, held back until you allow it. See [Security](security.md#pictures-from-other-websites). |
@@ -259,7 +265,7 @@ The thinking row only exists when the server captures reasoning.
259
265
 
260
266
  ### Tool activity
261
267
 
262
- The **tools** switch in the header shows what the agent does between
268
+ **Tool activity in chat** in the settings sheet shows what the agent does between
263
269
  its messages. A builder writes almost no text while it works, so
264
270
  without it a build of several hours shows an empty chat.
265
271
 
@@ -294,7 +300,7 @@ agents, off by default.
294
300
 
295
301
  ### Recalled notes
296
302
 
297
- The **memory** switch in the header shows which notes somora gave the
303
+ **Recalled notes in chat** in the settings sheet shows which notes somora gave the
298
304
  agent before a turn. A line stands above the reply:
299
305
 
300
306
  ```text