Skip to content

Commit e1dcbd2

Browse files
committed
Merge remote-tracking branch 'upstream/main' into fix/canvas-document-head-content-length
2 parents e29c481 + 85e4094 commit e1dcbd2

68 files changed

Lines changed: 2621 additions & 1773 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎config/max-lines-baseline.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,6 @@ src/status/status-message.ts
934934
src/system-agent/chat-engine.test.ts
935935
src/system-agent/chat-engine.ts
936936
src/system-agent/setup-inference.test.ts
937-
src/system-agent/verified-inference.test.ts
938937
src/system-agent/verified-inference.ts
939938
src/tasks/task-executor.test.ts
940939
src/tasks/task-flow-registry.ts

‎docs/cli/infer.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ openclaw infer tts status --json
224224
Notes:
225225

226226
- `tts status` only supports `--gateway` (it reflects gateway-managed TTS state).
227+
- Local and loopback-Gateway `tts convert --output` copies stage beside the destination and replace it only after success; a failed copy leaves an existing file unchanged.
227228
- Use `tts convert --provider <id>` when selecting a provider without overriding its model.
228229
- Use `tts providers`, `tts voices`, `tts personas`, `tts set-provider`, and `tts set-persona` to inspect and configure TTS behavior.
229230

‎docs/cli/wiki.md‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,22 @@ openclaw wiki obsidian daily
5555
## Agent selection
5656

5757
When `plugins.entries.memory-wiki.config.vault.scope` is `agent`, select the
58-
vault with the top-level `--agent <id>` option:
58+
vault with the command's `--agent <id>` option:
5959

6060
```bash
61-
openclaw wiki --agent support status
62-
openclaw wiki --agent support search "refund policy"
63-
openclaw wiki --agent marketing ingest ./campaign-notes.md
61+
openclaw wiki status --agent support
62+
openclaw wiki search "refund policy" --agent support
63+
openclaw wiki ingest ./campaign-notes.md --agent marketing
6464
```
6565

66-
In a setup with multiple configured agents, `--agent` is required for CLI
67-
operations so a command cannot read or write an arbitrary default vault. If
68-
only one agent is configured, that agent remains the default. Unknown agent ids
69-
fail before the vault operation starts. The option does not change the selected
70-
path when `vault.scope` is `global`.
66+
When `--agent` is omitted, CLI operations use the configured default agent,
67+
matching other agent-scoped CLI families. Pass the flag to select a different
68+
agent. Unknown agent ids fail before the vault operation starts. If no default
69+
can be resolved, the error tells you to pass `--agent <id>` or configure an
70+
agent. The option does not change the selected path when `vault.scope` is
71+
`global`.
7172

72-
Gateway clients follow the same rule: pass `agentId` on vault-backed `wiki.*`
73+
Gateway clients remain explicit: pass `agentId` on vault-backed `wiki.*`
7374
requests in an agent-scoped multi-agent setup. A missing or unknown id is an
7475
error. Agent turns, wiki tools, memory corpus supplements, and compiled prompt
7576
digests already carry the active runtime agent context.

‎docs/plugins/memory-wiki.md‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,9 @@ the existing `~/.openclaw/wiki/main` path.
438438

439439
Agent tools, compiled prompt digests, and the wiki supplement exposed through
440440
`memory_search` / `memory_get` resolve the vault from the active agent context.
441-
For CLI and Gateway calls in a setup with multiple configured agents, provide
442-
the agent explicitly with `openclaw wiki --agent <agentId> ...` or the Gateway
443-
request's `agentId`. A single configured agent remains the default when no id is
444-
provided.
441+
CLI calls use the configured default agent unless the command passes
442+
`--agent <agentId>`. Gateway calls in a multi-agent setup still require the
443+
request's `agentId`.
445444

446445
In bridge mode, agent-scoped imports accept a public memory artifact only when
447446
its `agentIds` includes the selected agent. Artifacts owned by another agent,

‎docs/web/control-ui.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ Capability toggles stay disabled until the Gateway, session, and runtime config
451451
- Chat uploads accept images plus non-video files. Images keep the native image path; other files are stored as managed media and shown in history as attachment links.
452452
- Re-sending with the same `idempotencyKey` returns `{ status: "in_flight" }` while running, and `{ status: "ok" }` after completion.
453453
- `chat.history` responses are size-bounded for UI safety. When transcript entries are too large, Gateway may truncate long text fields, omit heavy metadata blocks, and replace oversized messages with a placeholder (`[chat.history omitted: message too large]`).
454-
- When a visible assistant message was truncated in `chat.history`, the side reader can fetch the full display-normalized transcript entry on demand through `chat.message.get` by `sessionKey`, active `agentId` when needed, and transcript `messageId`. If the Gateway still cannot return more, the reader shows an explicit unavailable state instead of silently repeating the truncated preview.
454+
- When a visible assistant message was truncated in `chat.history`, **Show more** fetches the full display-normalized transcript entry inline through `chat.message.get` by `sessionKey`, active `agentId` when needed, and transcript `messageId`. **Show less** restores the preview without discarding the fetched content. If the Gateway cannot return more, the message shows an explicit retryable error instead of silently repeating the truncated preview.
455455
- Assistant/generated images are persisted as managed media references. New clients resolve their stable artifact ids through authenticated `artifacts.download` and receive short-lived, exact-resource media URLs, so reloads do not depend on raw base64 payloads or reusable credentials in image URLs.
456456
- When rendering `chat.history`, the Control UI strips display-only inline directive tags from visible assistant text (for example `[[reply_to_*]]` and `[[audio_as_voice]]`), plain-text tool-call XML payloads (including `<tool_call>...</tool_call>`, `<function_call>...</function_call>`, `<tool_calls>...</tool_calls>`, `<function_calls>...</function_calls>`, and truncated tool-call blocks), and leaked ASCII/full-width model control tokens. It omits assistant entries whose whole visible text is only the exact silent token `NO_REPLY` / `no_reply` or the heartbeat acknowledgement token `HEARTBEAT_OK`.
457457
- During an active send and the final history refresh, the chat view keeps local optimistic user/assistant messages visible if `chat.history` briefly returns an older snapshot; the canonical transcript replaces those local messages once the Gateway history catches up.

‎docs/web/webchat.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Status: the macOS/iOS SwiftUI chat UI talks directly to the Gateway WebSocket. N
2424

2525
- The UI connects to the Gateway WebSocket and uses the `chat.history`, `chat.send`, `chat.inject`, and `chat.message.get` RPC methods.
2626
- `chat.history` is bounded for stability: Gateway may truncate long text fields, omit heavy metadata, and replace oversized entries with `[chat.history omitted: message too large]`. API clients can send a per-request `maxChars` to override the default limit for one call.
27-
- When a visible assistant message was truncated in `chat.history`, Control UI can open a side reader and fetch the full display-normalized entry on demand through `chat.message.get`, without increasing the default history payload. `chat.message.get` uses the same transcript branch and display rules as `chat.history`, but targets one entry by `messageId` and returns an honest unavailable reason when the full content can no longer be returned.
27+
- When a visible assistant message was truncated in `chat.history`, **Show more** fetches the full display-normalized entry inline through `chat.message.get`, without increasing the default history payload. **Show less** restores the truncated preview and reuses the fetched content on the next expansion. `chat.message.get` uses the same transcript branch and display rules as `chat.history`, but targets one entry by `messageId` and returns an honest unavailable reason when the full content can no longer be returned.
2828
- `chat.history` follows the active transcript branch for append-only session files, so abandoned rewrite branches and superseded prompt copies are not rendered in WebChat.
2929
- Compaction entries render as a "Compacted history" divider explaining that the compacted transcript is preserved as a checkpoint, with an action to open session checkpoints (branch or restore, when permissions allow).
3030
- Control UI remembers the backing Gateway `sessionId` returned by `chat.history` and includes it on follow-up `chat.send` calls, so reconnects and page refreshes continue the same stored conversation unless the user starts or resets a session.

0 commit comments

Comments
 (0)