Commit graph

2834 commits

Author SHA1 Message Date
Peter Steinberger
f19444a1ec feat: expose UI diagnostics on the debug page 2026-07-09 05:44:23 -07:00
Peter Steinberger
deb7faf7b0
refactor(ui): harden Lit lifecycle boundaries (#102745)
* refactor(ui): harden Lit lifecycle boundaries

* fix(ui): clear ChatPage subscriptions before teardown

* test(ui): satisfy lifecycle lint gates

* chore: defer Lit lifecycle release note

* fix(ui): sync raw-copy baseline

* test(ui): avoid order-sensitive Sessions mock

---------

Co-authored-by: Peter Steinberger <peter@steipete.me>
2026-07-09 05:28:52 -07:00
Peter Steinberger
e45e755fb9
feat(ui): add native link routing bridge (#102783) 2026-07-09 13:26:24 +01:00
Vincent Koc
aaf5ddd832
refactor(ui): localize internal declarations (#102793) 2026-07-09 05:16:06 -07:00
Peter Steinberger
5f9e0e20d4
fix: scope task suggestions to supported surfaces (#102743)
* fix: make task suggestions surface-aware

* fix: honor task suggestion action scopes

* fix: align task surface compatibility types

* fix: isolate task suggestions across surfaces

* style: satisfy task selector lint

* chore: defer task suggestion release note

* test: dedupe gateway capability fixture

* test: cover combined gateway capabilities
2026-07-09 12:59:50 +01:00
Peter Steinberger
c9b3358d43
improve(ui): flatten sessions page surfaces (#102760)
Drops the decorative layer from the sessions roster per maintainer feedback:
overview tiles, the drawer hero, detail sections, stat cards, checkpoint
cards, and the goal chip become flat token surfaces (no gradients, no inset
highlight shadows, no translucent color-mix glass); kind avatars and overview
icon chips lose their nested borders and read as flat tints; the skeleton
shimmer gradient becomes a plain opacity pulse. Focus rings, the drag-drop
target outline, and the live status dot ring stay - those are signal, not
decoration.
2026-07-09 12:55:24 +01:00
Peter Steinberger
8d6c54f513
improve(ui): remove the Context Profile presets card from Quick Settings (#102748)
* fix(control-ui): remove the Context Profile presets card from Quick Settings

* fix(control-ui): regenerate i18n raw-copy baseline after Gateway Host card rebase
2026-07-09 12:50:50 +01:00
Peter Steinberger
3ccf2a0739
feat: render inline web chat widgets via capability-gated show_widget tool (#101840)
Adds client-capability-gated tool availability: gateway clients declare
capabilities at connect (new inline-widgets cap), chat.send stamps them into
the run context, and every tool assembly path (embedded runner, queued
followups, Codex app-server harness, plugin-only construction plans) drops
tools whose requiredClientCaps the originating client did not declare. The
Canvas plugin ships the first such tool, show_widget: agents pass SVG or an
HTML fragment plus a title; the plugin hosts it as a bounded, retention-scoped
Canvas document and returns the existing canvas preview handle, which web chat
renders as a sandboxed iframe fitted to the widget's reported content height.
Widget frames never get allow-same-origin (per-preview sandbox ceiling,
including the sidebar path) and the Canvas host serves widget documents with a
CSP sandbox header so direct navigation runs in an opaque origin. Verified
live end-to-end on a Testbox with gpt-5.5 (screenshots on the PR). CLI-backed
model backends do not carry client caps yet and stay fail-closed (#102577).

Closes #101790
2026-07-09 12:29:50 +01:00
Peter Steinberger
2806195e11
feat(ui): redesign Gateway Host settings card as identity block with resource meters (#102714) 2026-07-09 12:22:30 +01:00
Peter Steinberger
7abf1c7f85
improve(ui): calmer sessions roster with dot status and drawer-level runtime (#102664)
Feedback pass on the sessions redesign: status pills become a plain colored
dot + label (green pulse for live, green dot with neutral label for done,
muted idle, red failed) in both the roster and the drawer hero, and the
Runtime column moves out of the table into the row drawer as Runtime (agent
runtime) plus Run duration. Runtime stays searchable. Responsive breakpoints
reflow for the 7-column roster and the actions column shrinks to the chevron
and row menu that landed in #102564.

Closes #102654
2026-07-09 12:13:19 +01:00
Peter Steinberger
5afd4707c7
fix(ui): split-view toolbar segments misalign with the panes they label (#102675)
* fix(ui): align split-view toolbar segments with the pane edges they label

* fix(ui): track pane gutter and horizontal overflow in the split toolbar

* fix(ui): reset split toolbar scroll offset on mode flips and reserve docked terminal space

* fix(ui): scroll clipped split panes into view when their toolbar segment gains focus
2026-07-09 11:58:31 +01:00
Peter Steinberger
5154fe08fa
feat: show Codex sessions across Gateway and paired nodes (#102586)
* feat(codex): add federated session catalog

* fix(codex): align session catalog checks

* fix(ui): translate Codex session catalog

---------

Co-authored-by: Peter Steinberger <peter@steipete.me>
2026-07-09 03:42:03 -07:00
Peter Steinberger
bcc4517d99
test(ui): align sidebar ordering coverage (#102660) 2026-07-09 11:37:09 +01:00
maweibin
6a6aba0d5a
fix(ui): validate realtime VAD threshold (#102161)
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: maweibin <maweibin@users.noreply.github.com>
2026-07-09 11:29:30 +01:00
Peter Steinberger
06b33f5462
improve(ui): remove the Roundness appearance setting (#102641)
Corner radius is owned by themes; drop the browser-local multiplier that
scaled all --radius-* variables (added in #49436). Stale borderRadius
localStorage keys are ignored and dropped on next settings write.
2026-07-09 11:20:15 +01:00
Peter Steinberger
5cb5f38144
fix(ui): square chat rail toggles and center split-view opener in collapsed rail (#102639) 2026-07-09 11:06:24 +01:00
maweibin
9bf212765f
fix(ui): keep workboard capture text truncation UTF-16 safe (#102544)
* fix(ui): keep workboard capture text truncation UTF-16 safe

Replace raw .slice(0, N - 3) with truncateUtf16Safe in
clampSessionCaptureText and clampSessionCaptureTitle to prevent
lone surrogates when emoji cross the truncation boundary.

Completes the UTF-16 hardening started in #101685, which added the
import but only covered buildCardSessionLabel.

* test(ui): cover workboard UTF-16 boundaries

* docs(changelog): note Workboard UTF-16 fix

* docs(changelog): leave release notes to release flow

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-09 10:42:34 +01:00
Peter Steinberger
e500a4f017
feat: session context menu (kebab + right-click) on the Sessions page (#102564)
* feat(ui): add session context menu to sessions page rows

Extract the sidebar session menu into a shared <openclaw-session-menu>
component and open it from a kebab button or row right-click on the
Sessions page, replacing the per-row unread/fork/pin/archive/workboard
icon buttons. Adds Open chat, Rename, Move to group, and per-row Delete
to the page; guards (main/global/active-run) now flow through
canArchiveSessionRow on both surfaces.

* fix(ui): retarget gateway session after deleting the current session from the sessions page

Deleting the currently selected session via the new row menu (or the
bulk bar) left gateway.snapshot.sessionKey pointing at the deleted key;
fall back to the agent main session, mirroring the archive path and the
sidebar delete path.
2026-07-09 10:15:08 +01:00
Peter Steinberger
f141af7fd7
fix(ui): keep streamed talk voice-turn transcripts readable (#102573)
* fix(ui): keep streamed talk voice-turn transcripts readable

Talk voice turns collapsed to one character per line in the macOS app
(WKWebView) while streaming: WebKit never re-runs shrink-to-fit intrinsic
sizing for a grid flex-item as its content grows, so the turn froze at
first-delta width. Convert the turn to a flex row (same visual layout).

Assistant transcript deltas also merged through the user-ASR word-boundary
spacing heuristic, mangling verbatim fragments ("Chat G PT"). Assistant
entries now concatenate fragments verbatim, space only sentence-punctuation
joins, and accept both full-transcript and tail-fragment finals.

Fixes #102556

* fix(ui): keep assistant talk fragments strictly verbatim

Drop the sentence-punctuation separator: it invented characters in real
content (Version 1. 2, docs.openclaw. ai) and Google Live tail-finals
could never heal it. The punctuation-spacing heuristic remains user-only.
2026-07-09 10:07:14 +01:00
Peter Steinberger
efe705b889
feat(ui): show microphone activity in Talk mode (#102559) 2026-07-09 09:55:42 +01:00
Peter Steinberger
9269a27f18
feat(ui): redesign settings as a full-page takeover with sidebar navigation (#102549)
* feat(ui): redesign settings as a full-page takeover with sidebar navigation

* chore(ui): regenerate i18n metadata after rebase
2026-07-09 09:51:52 +01:00
Peter Steinberger
ecc2cffad8
improve(ui): keep sidebar sessions inline and draggable (#102558)
* feat(ui): add drag-managed sidebar session groups

* chore: keep release notes in PR body
2026-07-09 09:40:53 +01:00
Peter Steinberger
c96163b6ca
refactor(ui): drop the divider line above the sidebar More section (#102531) 2026-07-09 09:25:08 +01:00
Peter Steinberger
5c3c5c0ee4
feat(ui): redesign sessions page with overview tiles, kind avatars, and context meters (#102523)
The Control UI sessions roster now leads with operator telemetry: overview
tiles (sessions / live / unread / tokens), per-kind row avatars with a live-run
dot, compact token values with context-usage meters (ok/warn/danger at
65%/85%), initial-load skeleton rows, and icon-led empty states. Stale token
snapshots render as ~approximations with a neutral meter and never drive
warning tones, matching the chat composer convention; the overview token sum
counts only known snapshots (~ when partial, n/a when none). Label chips
ellipsize instead of overflowing sticky columns; <=500px drops the avatar to
preserve the key column budget.

Closes #102517
2026-07-09 09:19:03 +01:00
Peter Steinberger
7e0b67d7ea
fix(ui): mark the active split pane with a focus ring instead of offset accent lines (#102511) 2026-07-09 09:16:39 +01:00
Peter Steinberger
7698783037 perf(test): reuse session layout browser 2026-07-09 04:06:43 -04:00
Peter Steinberger
18b24edea6 perf(test): run session layout viewports concurrently 2026-07-09 03:50:40 -04:00
Peter Steinberger
be65173baa
fix(ui): remove duplicate OpenClaw brand mark from the macOS app titlebar (#102497)
The sidebar brand row (logo + wordmark) returned in 8295a12a83 but the
macOS-only titlebar mark from #100648 stayed, so the Mac app showed the
claw icon twice. Delete the sidebar-native-brand element and its
CSS gate; the sidebar brand row is the single brand surface and the
native titlebar strip holds only the traffic lights.
2026-07-09 08:23:55 +01:00
Peter Steinberger
67630e8973
feat(ui): make the sidebar resizable (#102491)
* feat(ui): make the sidebar resizable

* chore: defer release notes to release automation
2026-07-09 08:18:56 +01:00
Peter Steinberger
ea4e005008
fix(ui): unify split-view controls in one toolbar row (#102492)
* fix(ui): unify split-view toolbar

* chore: remove release-owned changelog entry
2026-07-09 08:17:35 +01:00
Peter Steinberger
5f91f6c958
fix: collapse sidebar after returning from drawer layout (#102463)
* fix(ui): collapse sidebar after drawer resize

* chore: defer sidebar release note
2026-07-09 07:42:17 +01:00
Peter Steinberger
6620aba25a
fix(ui): close session sort menu on second click (#102448)
* fix(ui): toggle session sort menu

* chore: defer session menu release note
2026-07-09 07:23:00 +01:00
Peter Steinberger
aabb8e4a3c
test(ui): lock theme mode cycling (#102455) 2026-07-09 07:22:51 +01:00
Peter Steinberger
5533d979d4
feat: add follow-up task suggestions (#102422)
* feat(tools): add follow-up task suggestions

* chore: leave changelog to release flow

* fix(tools): add task suggestion display metadata

* fix(tools): update task suggestion display snapshot

* docs: format task suggestion tool table

* test(gateway): expect compaction worktree workspace

* test(gateway): preserve configured compaction workspace

* fix(ui): translate task suggestions
2026-07-09 06:30:01 +01:00
zw-xysk
57db713ff7
fix(ui): keep clampText/truncateText surrogate-safe at emoji boundaries (#102225)
* fix(ui): keep clampText/truncateText surrogate-safe at emoji boundaries

clampText and truncateText in format.ts used String.prototype.slice(0, N)
to truncate user-visible text. When the truncation boundary falls inside
a UTF-16 surrogate pair (emoji, CJK extended, etc.), the resulting
string contains a dangling surrogate that browsers render as U+FFFD (�).

Replace .slice(0, ...) with truncateUtf16Safe(...) which skips past
incomplete surrogate pairs so the truncation point always falls on a
code-point boundary.

Affected UI surfaces: markdown rendering, command descriptions, skill
summaries, exec-approval rules, tool-stream output previews.

Add surrogate-safe truncation test cases for both functions using a
real emoji at the exact truncation boundary.

* test(ui): tighten UTF-16 truncation coverage

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-09 04:46:36 +01:00
wings1029
1825c9f890
fix: keep emoji intact at remaining text truncation boundaries (#101754)
* fix: keep emoji intact at remaining text truncation boundaries

Replace .slice(0, N) with truncateUtf16Safe() in five remaining
user-visible text truncation sites that were missed by earlier
UTF-16 safety sweeps:

- restart.ts: restart reason text (2 sites)
- chat-composer.ts: reply target text preview
- chat-thread.ts: thread text preview + message text extraction

All sites truncate user-generated content where emoji or other
supplementary-plane characters could produce lone surrogates.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: complete UTF-16-safe restart and chat boundaries

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-09 04:02:08 +01:00
Shakker
9d7a6b5da6 fix: focus composer when typing (#102210) 2026-07-08 15:50:40 +01:00
Shakker
fc05a8103b fix: restore translated docs tooltip (#101017) 2026-07-08 14:51:26 +01:00
Shakker
d9e44714e6 fix: preserve theme mode cycling 2026-07-08 14:51:26 +01:00
Shakker
43bcd9ab3e fix: normalize terminal availability 2026-07-08 14:51:26 +01:00
Shakker
8190b3bd16 fix: align sidebar branding controls 2026-07-08 14:51:26 +01:00
Shakker
dc6550d6e5 fix: restore Control UI topbar and breadcrumbs 2026-07-08 14:51:26 +01:00
vyctorbrzezowski
8295a12a83 improve(ui): move shell controls into side rails 2026-07-08 14:51:26 +01:00
Momo
fdc98242a1
fix(ui): keep Workboard detail drawer actions in parity (#101658)
* Fix Workboard detail action parity

* test(ui): cover Workboard detail drawer actions

* fix(ui): satisfy Workboard action lint
2026-07-08 10:25:42 +08:00
Vincent Koc
9dbb1ed3d2
refactor(deadcode): localize control ui declarations (#101894) 2026-07-07 15:34:09 -07:00
Vincent Koc
d563101a82
refactor(deadcode): localize test and tooling helpers (#101875) 2026-07-07 13:45:26 -07:00
Vincent Koc
7ff3f2dbf9
refactor(deadcode): localize UI and script symbols (#101858) 2026-07-07 11:55:57 -07:00
Peter Steinberger
6235344006
fix(ui): stop flashing the login gate on dashboard load when credentials are stored (#101849)
First connects backed by stored auth (URL/session token, password, or an
approved device token) now paint a small wiggling OpenClaw mark (delayed
fade-in, reduced-motion aware) until the hello resolves. The login gate
still owns credential-less first opens, rejected credentials, and manual
gate submissions.

Closes #101847
2026-07-07 19:40:30 +01:00
Peter Steinberger
dd228d5f3c
improve(ui): restyle connection-lost pill as neutral status surface (#101844) 2026-07-07 19:20:31 +01:00
Peter Steinberger
41cae5c8cf fix(ui): refresh raw-copy baseline 2026-07-07 14:19:07 -04:00