594 Commits
Author SHA1 Message Date
Peter Steinberger 383a293b32 revert(ui): keep queued follow-ups attached to the composer (#132294)
Reverts #131909 (b0cb107c82) per operator product decision after live review — queued messages remain composer-attached; the send-dispatch fix (#131958) is unaffected.
2026-08-28 20:05:12 -07:00
bd9eeaebf0 fix(ui): allow Fast Mode when creating sessions (#131272)
* feat(ui): add Fast Mode to new sessions

Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>

Worked on by:
- @Takhoffman

* fix(ui): preserve new-session speed through recovery

Revalidate Fast Mode after reset drains admitted work, before placement retirement and hooks. Preserve explicit speed selections in remote and incognito recovery, remove the unused speed-control opt-out, and exercise cloud create and retry behavior in browser tests.

Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>

* test(ui): wait for shared shell before palette shortcut

---------

Co-authored-by: roboclaw-bot <309084314+roboclaw-bot@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
2026-08-28 18:35:09 -07:00
7f9d83aec5 docs: clarify Code Mode opt-in default (#132191)
Co-authored-by: roboclaw-bot <309084314+roboclaw-bot@users.noreply.github.com>
Co-authored-by: Vito Cappello <3279061+VACInc@users.noreply.github.com>
2026-08-28 19:12:23 -04:00
Peter Steinberger b0cb107c82 feat(ui): render queued follow-ups as transcript bubbles (#131909)
* feat(ui): render queued follow-ups as transcript bubbles

A follow-up sent during an active run previously appeared only as a
composer-attached queue card until it started; the transcript gave no
immediate acknowledgment and the reply appeared to ignore the send.
Queued messages now render as real user bubbles at the transcript tail,
one bubble per submit in queue order, with the live stream continuing
above them. The bubble keeps one stable identity from submit through
queue reorder, admission, and durable-history handoff, so nothing
remounts or jumps. The existing queue controls (steer now, edit,
reorder, remove, retry) attach beneath the queued bubble; the
composer-attached cards no longer duplicate message content and keep
only local-command cards. Supersedes the ordinary-message placement
half of #127823.

* test(ui): find recovered queued messages in transcript bubbles

CI run 33212031042 exposed three recovery cases still looking for message text inside the old composer queue item. Assert the user bubble and its attached reconnect state while retaining all recovery and exact-send assertions. The old selector fails locally; all eight recovery cases pass with the update. No production, mock, or timeout changes.

* build(ui): refresh startup budget for queued-send bubbles

Replace the conflicting budget adjustment with a fresh production build on
main a79e6517be. Startup JS measures 345371 B; an independent verification
rebuild measures 345335 B. Record the measured 345371 B baseline rather
than either conflicting value.

This lowers main's 348449 B baseline by 3078 B and raises the superseded
branch measurement by 232 B after upstream changes. The feature and
recovery-test patches are unchanged by the mechanical rebase.

Keep the existing 512 B growth allowance and 64 B build variance, yielding
a 345947 B enforcement limit and 576 B measured headroom. The 350 KiB
baseline ceiling and all other performance budgets remain unchanged.

Immediate queued-send acknowledgment and restored offline/error controls
retain their existing synchronous renderer. No unrelated boot splitting,
new lazy-render architecture, or gate-logic change is introduced here.
2026-08-28 15:32:03 -07:00
Peter Steinberger 5e924973f1 fix(tui): keep failed attachments visible beside replies (#132115) 2026-08-28 14:59:56 -07:00
Peter Steinberger d42e19dd2f fix(ui): make lobster visits less frequent (#132065)
* fix(ui): make lobster visits less frequent

* test(ui): cover dismissal across longer lobster return gaps

* docs: clarify lobster familiarity timing

* docs: clarify wary lobster return gaps
2026-08-28 14:57:40 -07:00
Peter Steinberger 89c2343c6f fix(ui): settle settings reconciliation at its own roster snapshot (#131958)
Send dispatch waits on the session-settings patch tail, and that tail's
reconciliation awaited the shared roster-refresh drain — which kept
absorbing later, unrelated refreshes. On a busy or cold pane a submitted
message could sit in waiting-model for minutes with no pending gateway
request while the drain chased event refreshes, then dispatch silently.

Each refresh caller now completes when the snapshot it requested is
loaded; queued refreshes chain behind without extending earlier callers,
and reset/disposal retires queued completions instead of parking them.
Picker ordering (send after a model change waits for that change), model
rollback, and reconnect checks are unchanged.

Live-rig evidence: optimistic bubble rendered while chat.send stayed
unissued for minutes with zero pending WS requests; the run completed
long after. Seven boundary regressions fail pre-fix.
2026-08-28 13:45:31 -07:00
Peter Steinberger d9f3d88409 fix: usage dashboard loads slowly for large session histories (#132064)
* fix: usage dashboard loads slowly for large session histories

Load prompt context on selection while preserving context filters and full JSON exports. Scope usage rollup reads to selected sessions and use metadata-aware SQLite transcript byte sizing.

* chore(ui): remove stale usage exports and document log contract
2026-08-28 13:36:41 -07:00
Peter Steinberger 05bd540514 fix(ui): retain prompts after cloud startup failures (#131594)
* fix(ui): retain prompts after cloud startup failures

Keep the initial submission in its existing scoped tab recovery until delivery is confirmed. Retry known failures on the created session and captured target; check uncertain delivery without replaying work. Preserve attachment ownership and newer submissions.

Refs #131452.

* test(ui): clarify placement startup fixture names

* fix(ui): preserve initial-turn ordering across reconnects

Keep unresolved placement submissions ahead of ordinary chat admission while transport is disconnected, without exposing content or executing through stale credentials. Preserve lazy and memory-only recovery ownership and distinguish first dispatch after an explicit create retry from placement reconciliation.

* docs(ui): describe automatic transcript text recovery

* fix(ui): hold chat admission until initial recovery settles

Keep later input behind credential recovery and the retained initial turn. Wake the canonical outbox drain when readiness or initial ownership resolves, after projecting the initial handoff. Cover cold Hello, accepted receipt and invalid-record release through the browser boundary; retain ordinary offline queuing.
2026-08-28 12:13:50 -07:00
Peter Steinberger 798dff80cd fix(gateway): reduce retained dashboard startup work (#131930) 2026-08-28 12:13:33 -07:00
Peter Steinberger 1e6e4027ad feat(profile): enable Git co-author credit by default (#131964)
* feat(profile): enable Git co-author credit by default

Verified GitHub identities now get public `Co-authored-by` credit unless the
person explicitly opts out. An absent `git.coauthor.enabled` row is the default
rather than a refusal, resolved through one shared helper used by both the
attribution resolver and the Control UI toggle.

* fix(profile): fail closed on malformed co-author preference values

The preference API persists arbitrary JSON, so `value !== false` let a
non-boolean row read as consent to publish a verified person's public Git
trailer. Only a missing row or literal `true` now enables credit, with
regression coverage at the attribution resolver and the profile toggle.

* docs(vision): state the team-assistant direction alongside personal use

The privacy rule governs what leaves an install, not what teammates see on a
shared Gateway. Say that explicitly so co-author credit and other shared-session
attribution are not read as a violation of the telemetry opt-in rule, and name
team.openclaw.ai as where OpenClaw is built with OpenClaw.
2026-08-28 12:11:19 -07:00
Peter Steinberger a2670e1578 fix(ui): avoid duplicate cross-client steering messages (#131951) 2026-08-28 11:50:46 -07:00
Patrick Erichsen 1754d4b970 fix(ui): keep new automations internal by default (#131504)
* fix(ui): keep new automations internal by default

* test(ui): align cron E2E with internal default
2026-08-28 10:06:54 -07:00
Peter Steinberger c3067e1f47 fix: show recorded delivery suppression in automation history (#131830)
Expose the existing Gateway-recorded reason in both shared run-history views while preserving delivery status and real errors. Add regression coverage and document the visible diagnostic.
2026-08-28 08:40:10 -07:00
Peter Steinberger b03d2e79e9 fix(sessions): prevent participant misattribution in Activity (#130986)
* fix(sessions): preserve participant identity and input provenance

Keep profile, agent, remote, observed, and legacy identities distinct in the existing participant table. Record accepted input at admission, including steering, instead of inferring a person from the session creator. Preserve historical membership and counts while leaving ambiguous profile timestamps unknown through stopped-writer Doctor migration.

Project full visibility-filtered person membership before preview limits so Activity does not misattribute channel identities or omit people outside the facepile. Keep participant membership separate from authorization and expose raw-selector ambiguity to memory operators.

Repair Doctor readiness reporting, generic Swift inline-union generation, direct-dispatch metadata handling, and fixture-owned database lifetimes. Verify namespace collisions, real provider input, accepted steering, visibility, backup/migration/reopen boundaries, native decoding, and the built-CLI lifecycle.

Fixes #130661

* fix(macos): isolate readiness and discovery lifecycles

Keep readiness fixtures private for their entire lifetime and give health readiness one deadline owner. Start and cancel slow host discovery with active discovery, not model construction.

Make native protocol, callback, onboarding, and process-cleanup tests observe their intended lifecycle phases without expanding deadlines or weakening assertions. Correct the documented signing default.

Validated with 1,839 parallel native tests, the release product build, causal negative controls, pinned Swift lint/format checks, and fresh isolated autoreview. Native production delta: -5 lines.

* docs(macos): clarify app profile isolation boundaries

* build(protocol): refresh generated Swift install models

* fix(protocol): preserve optional literal field presence

* fix(ci): bound SDK declarations and isolate test lifecycles

Discover the current declaration source graph in a joined child before normal eager emission, and track its complete source-bearing cache inputs. Repair shared jsdom focus teardown and native worker fixture request ordering without changing UI focus ownership or execution fallback policy.

* test(sessions): prove Goal participant upgrade boundaries
2026-08-28 06:04:18 -07:00
70eb4a71ac fix(ui): usage page stays loading after cache rebuild (#108270)
Co-authored-by: Alex Knight <15041791+amknight@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-28 04:39:48 -07:00
Peter Steinberger ad189b0a53 fix(ui): prevent duplicate answers while runs finish (#131681)
Keep persisted assistant answers visible once while workspace reconciliation is still finishing. Reconcile durable same-run prefixes at persistence and delta ingress, preserve stream baselines, and publish error-terminal answers through the transcript reducer without hiding workspace failures.

Fixes #131671. The separate malformed non-prefix stream observation remains outside this repair.
2026-08-28 04:28:48 -07:00
Peter Steinberger d6e1f019f0 fix(gateway/ui): record model auth unavailability reasons; gate composers only on actionable auth failures (#131697)
* fix(gateway): preserve model auth unavailability reasons

Record missing credentials, unusable auth, and cooldown separately from unknown availability. Carry native runtime auth facts and retry times through the additive models.list projection without changing protocol versions.

* fix(ui): gate composers only on actionable auth failures

Read producer availability reasons in chat and new-session gates. Preserve Model Setup for missing credentials, keep accurate rejection copy, and allow sending during cooldown or unknown availability. Keep unavailable picker options disabled.

* fix(gateway): distinguish permanent auth rejection from cooldown

Keep permanently rejected profiles and inline credentials actionable without a retry timestamp. Use only viable transient profiles for the earliest recovery time, preserving explicit profile retry behavior.

* test: isolate submit gates and native runtime availability fixtures

Extract the existing submit-gate suite and shared draft fixture to stay within the file-size limit. Supply registered CLI metadata through the existing test boundary so availability checks do not cold-load executable plugin setup code.

* chore(protocol): regenerate Swift gateway models for availability reasons

* test(gateway): expect availability reasons in models.list projections
2026-08-28 03:18:43 -07:00
Peter Steinberger 894cbf83cd fix(tui): keep finished runs idle after reconnect (#131487)
Reconcile complete history membership at the run coordinator while preserving concurrent runs and activity observed during history requests. Keep unknown membership distinct from an empty active set and preserve gap-recovery ordering.

Fixes #131484
2026-08-27 23:26:16 -07:00
Peter Steinberger 54a5358356 fix(ui): open worktree sessions before setup finishes (#131559)
* fix(ui): open worktree sessions before setup finishes

Admit the first turn before naming, checkout, and repository setup; show
startup progress and keep failures retryable in the same session. Reuse the
accepted-run workspace owner, fence cancellation and setup authority, and
block sibling work until the workspace is ready.

Fixes #124966 (immediate worktree sessions and setup progress).

* test(ui): retain project picker capability in startup fixture

* fix(worktrees): fence checkout retries after cancellation

* test: align native phases and title fallback with admitted startup
2026-08-27 23:13:38 -07:00
Peter Steinberger 100b89b1e0 fix(ui): keep steered runs in causal order and the reader in control of scrolling (#131550)
* fix(ui): keep steered runs in causal order across history refreshes

During a long active run, steering could render the operator's message
above assistant text that streamed before it, and every later cumulative
delta re-rendered the full run text (pre-steer included) below the steer.

Root causes: the history snapshot path and segment pruning wrote trimmed
display tails into chatStream, which the live delta path treats as the
producer-cumulative run buffer, so the next cumulative snapshot failed its
prefix check and re-adopted the whole run text after the boundary; the
history path also established steer boundaries as empty markers, which
silently disabled the live steer event's correct rollover, and manual
refresh/disconnect destroyed the causal segment state entirely.

chatStream now always holds the producer-cumulative text; visible tails
derive from the segment baseline. Replaced segments keep their text as a
hidden persisted baseline instead of being deleted and rebased, history
closes real prefix evidence and defers boundary ownership to the live
steer event while a pane retains live stream state, tool-stream resets
preserve causal segments for the active run, and the cached and full
renderers share one accumulated-baseline helper. Net -45 production lines.

Regression coverage: history-then-delta duplication, history-first steer
race, refresh/disconnect preservation, producer-owned replacement
baseline, incremental-only delta resume, cached-render parity, and two
mocked-gateway browser tests with before/after screenshots.

* fix(ui): keep the chat reader in control of scrolling during streaming

A reader who scrolled up during a streaming run could be pulled back to
the bottom: every send (steers included) reset the follow-lock and
re-armed the initial-load force-scroll, the transcript controller ran its
own end-follow on viewport resize from virtual geometry that is ~84px off
real geometry (container paddings), a stale disclosure anchor could
replay an old screen position over newer reader input, and typing-follow
and message-reveal navigation escaped the cancellable command owner.

Delivery no longer resets reader scroll policy; the policy owner in
scroll.ts handles resize follow through the existing source:"resize"
path; reader input retires pending interaction anchors; and all
transcript navigation registers one cancellable scrollCommand, so wheel,
touch, key, and pointer input cancels typing follow and message reveals.
The intentional submit reveal and latest-button behavior are unchanged.

Regression coverage: delivery completing after a renewed reader takeover,
locked/unlocked viewport resize policy, stale-anchor replay, typing
follow racing reader input and a saved-position restore, and stale
deferred reveal work.

* fix(ui): stop the virtualizer from end-pinning readers above the real bottom

@tanstack/virtual-core's resizeItem end-pin judges "was at end" from
virtual distance, which excludes the transcript container's real paddings
(~80-88px), while its own isAtEnd() uses real DOM geometry. A reader up
to ~88px above the actual bottom was treated as at-end and dragged down
by every live-row growth, bypassing the scroll.ts follow-lock. The branch
cannot be corrected from outside: shouldAdjustScrollPositionOnItemSizeChange
is consulted only when the pin does not fire, and the virtual distance
clamps to zero so no threshold can express real geometry.

Supply scrollEndThreshold: -1 so the pin branch is unreachable and
scroll.ts remains the single end-follow owner (content-change and resize
scheduling honor the reader's follow-lock). isAtEnd()'s default threshold
is disabled by the same option, so the one caller (typing-follow) now
passes the explicit 8px real-geometry threshold.

Regression: padded-geometry reader 44px above the real bottom no longer
moves when a rendered row grows through the resize path (pre-fix: dragged
by the exact growth delta); typing-follow keeps its 8px real-bottom
semantics at 0/8/50px distances.

* fix(ui): keep live cumulative text authoritative over lagging snapshots

Two contracts the cumulative-stream repair got wrong, caught by CI
(chat-history.test.ts, running in both the ui check and the compact node
shard): a history snapshot that diverges from the live cumulative buffer
must lose to the fresher live text instead of rewinding it, and pruning
may flag-retain a replaced segment as a hidden baseline only for the
active run — a sibling run's segment has no future deltas to trim and
must still be deleted.
2026-08-27 23:01:23 -07:00
Peter Steinberger 87122facbd feat(ui): sidebar Project grouping and truly flat None mode (#131543)
* feat(ui): sidebar project grouping and truly flat None mode

Group by: None now renders one flat session list — no Other/Groups/Coding
zone headers — matching what None promises. New Group by: Project buckets
sessions by their resolved repo/workspace checkout, folding
.claude/worktrees checkouts into their origin repo via the same rule the
harness catalogs already use; checkout-less rows keep their smart zones,
mirroring Person mode.

* test(ui): scope settings-layout advanced-disclosure clicks to its own summary

Companion to #131541, which fixed the strict-mode violation in
config-form-guidance: settings-layout carries the same under-scoped
summary locator; scope it to :scope > summary before it can trip the
same way once its clicks happen against expanded advanced content.

* fix(ui): canonicalize checkout paths inside the shared worktree fold

ClawSweeper P2: sidebar Project mode keyed sections by the raw
workContext.path, so /repo/openclaw and /repo/openclaw/ minted two
identical headers. Move trailing-separator stripping into
foldWorktreeCheckoutPath so the catalog and sidebar callers share one
canonicalization; regression case fails pre-fix.
2026-08-27 23:00:44 -07:00
Peter Steinberger 7a288ed013 fix(tui): retain reset confirmation after history refresh (#131557) 2026-08-27 22:32:50 -07:00
Peter Steinberger 40ca92e892 feat(ui): interface and chat font pickers in appearance settings (#131275)
* feat(ui): add interface and chat font pickers to appearance settings

Decouple typefaces from themes: face-keyed font stylesheets, a closed
TypefaceId wire contract synced per-profile via users.prefs, and a
Typography block with per-face specimens and a live preview. Theme
defaults are unchanged; overrides apply as inline --font-body/--font-chat
custom properties and load lazily on picker open.

* refactor(ui): compress typography loader and synced-pref plumbing

One retained stylesheet link per typeface replaces the slot/specimen
dual-link model; typeface stacks derive from kind metadata; config-page
per-pref accessor methods and the reset switch fold into one keyed
currentSyncedPref helper. Behavior, wire contract, and network-fetch
timing unchanged.

* test(ui): derive app-shell prefs request keys from the appearance wire contract

* chore(ui): repin startup JS baseline for typography module and prior unpinned boot growth
2026-08-27 18:49:52 -07:00
Peter Steinberger b82dae06c9 fix: keep automatic titles from answering file requests (#131372)
Treat first-message text as source material at the shared label-completion boundary. Preserve caller language and style, tool isolation, dispatch timing, and existing/manual names.

Verified with 84 focused tests, changed-file checks, independent Codex review, 28 real OpenAI label challenges, and before/after isolated Gateway UI file verification. Fixes #131303.
2026-08-27 18:47:00 -07:00
Peter Steinberger 4b49d9e670 feat(ui): open new-session plus controls in browser tabs (#131336)
* feat(ui): open new-session plus controls in browser tabs

* test(ui): group new-session coverage and await lazy presence views
2026-08-27 18:11:44 -07:00
Peter Steinberger ad3049aafb fix(ui): reconcile tool activity by invocation identity (#131326)
Count completed live/history projections once and preserve canonical transcript tool IDs while continuing to redact payloads. Keep distinct nested calls and run-scoped identities separate; remove duplicate history suppression and dead redaction policy.
2026-08-27 17:47:41 -07:00
Peter Steinberger 6ac9e3eae6 improve(ui): hide session previews by default (#131066)
* improve(ui): hide session previews by default

* fix(ci): isolate startup RSS from parallel artifact checks

* docs(ui): match message preview menu label
2026-08-27 17:35:29 -07:00
Peter Steinberger fdb68df713 fix(ui): invert queue and steer with modified Enter (#131283)
Let Cmd/Ctrl+Enter queue a follow-up when Enter steers, and steer when Enter queues, including inherited collect/followup modes. Share the alternate action with the send tooltip and preserve modifier-enter send settings. Reuse the existing per-message outbox override without changing saved preferences.
2026-08-27 17:00:45 -07:00
Peter Steinberger 5c67c7161c feat(ui): rename automatic placement to Auto with a least-busy subtitle (#131215)
* feat(ui): rename automatic placement to Auto with a least-busy subtitle

The Where chip's automatic option read "Any available node" — the widest
chip in the composer row, and "node" clashed with its own "Your devices"
section header. The menu row is now "Auto" with a "Least-busy device"
subtitle (the selector genuinely ranks by free worker slots), and the
collapsed chip shows "Auto". i18n key renamed anyAvailableNode -> autoDevice
(en-only string; other locales fall back); docs updated to match.

* test(ui): add where-chip Auto placement proof capture script

* chore(scripts): register the where-chip proof capture as ui:proof:where-chip

* fix(ui): describe Auto placement per runtime selection rule

Remote-exec runtimes select by eligible device order, not free worker
slots; the Auto row's subtitle now says "First eligible device" when the
resolved agent runtime is remote-exec and keeps "Least-busy device" for
worker-turn and unresolved default runtimes, matching server policy.
2026-08-27 16:44:34 -07:00
Peter Steinberger 4a19286684 fix(control-ui): hide Retry for non-retryable scope denials (#131251) 2026-08-27 16:25:39 -07:00
Peter Steinberger 6e82723125 fix(ui): keep reconnect-uncertain sends inline and prove delivery by run id (#131171)
After a reconnect lost the chat.send ack, the outbox reconcile only accepted
the transcript idempotency marker as delivery proof, so a send whose run was
actively streaming parked as a red 'Delivery uncertain' composer chip for the
whole run. The reconcile now also retires a queued send when the session row
reports its run id in activeRunIds or as lastRunId — the same fact live
terminal-event retirement already trusts.

Attempted unconfirmed messages now stay in the conversation as ordinary
bubbles with an amber 'Delivery unconfirmed · Retry' footer (failed keeps the
red 'Not sent'); the duplicate pane banner is suppressed for them since the
bubble owns the outcome. Command chips, never-attempted failures, and storage
errors keep their existing surfaces. Calmer copy for the remaining honest
uncertainty case.
2026-08-27 13:57:27 -07:00
Peter Steinberger 24d93f26a4 fix(ui): preserve session identity through rename and group actions (#130936)
* fix(ui): reject stale session renames after replacement

* fix(ui): preserve selected session identity through group actions
2026-08-27 11:17:44 -07:00
Vyctor H. BrzezowskiandPeter Steinberger 049f4940b9 fix(ui): keep effort in the composer row (#130788)
* refactor(ui): keep effort out of model picker

* fix(ui): restore mobile composer effort trigger

* fix(ui): keep effort reachable with animated mobile gauge

Preserve separate model and effort controls across chat, New session, and narrow desktop split panes. Let long model names ellipsize and remove the obsolete model-menu bridge and focus fallback.

Co-authored-by: vyctorbrzezowski <krzyszchweski@gmail.com>

* test(ui): expect model-only loading labels

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-27 02:09:15 -07:00
Peter Steinberger 84484c1ae3 fix(ui): keep chat messages separated after scroll interruptions (#130758)
* fix(ui): keep chat messages separated after scroll interruptions

* refactor(ui): place transcript types with their owners

* fix(ui): publish settled transcript scroll position
2026-08-27 01:44:42 -07:00
Peter Steinberger fa19150155 feat(ui): give every theme family its own typeface and refine palettes (#130767)
* chore(ui): ship self-hosted webfont assets for theme families

Latin and latin-ext woff2 subsets of Instrument Sans, Geist, DM Sans,
Fraunces, and IBM Plex Sans, fetched unmodified from Google Fonts, with
their SIL OFL 1.1 license texts beside the files.

* feat(ui): give every theme family its own typeface and refine palettes

Claw ships Instrument Sans (the declared-but-never-shipped Inter token is
gone), Knot ships Geist, Dash pairs DM Sans with Fraunces chat prose, and
Tide ships IBM Plex Sans; Absolutely, Beacon, and Phosphor keep their
existing faces. Every built-in family now derives fonts/<theme>.css, so
the per-theme map is gone; imported custom themes stay on the system stack.

Palette repairs: Knot's invisible maroon second accent becomes steel
silver (2.0 -> 10.6:1) with slightly structural borders; Dash's muddy
brown accent becomes toasted caramel (5.0 -> 6.55:1) with a gold-cream
second voice; Knot and Tide dark body text move from 15.2/14.2:1 into
the ~10-12:1 dark comfort band (11.8/12.0:1). Light variants mirror the
changes; theme-picker chips and docs follow.
2026-08-27 00:44:07 -07:00
RoboClawandroboclaw-bot fa16a4f80e fix(ui): remove context compact button (#130775)
* fix(ui): remove context compact button

* fix(ui): remove context compact button

OpenClaw-Publication: 37fcd8f7-5da2-4fe3-afcf-c77609e0ab33

* fix(ui): remove context compact button

OpenClaw-Publication: 8779879a-59ce-40a4-a6ea-26a4f468f1ca

---------

Co-authored-by: roboclaw-bot <309084314+roboclaw-bot@users.noreply.github.com>
2026-08-27 00:30:17 -07:00
Peter Steinberger 958111c03f fix(ui): expose complete cloud failure diagnostics (#130672) 2026-08-26 22:22:41 -07:00
Peter Steinberger 8f237b6a97 fix(ui): show cloud session startup progress in chat (#130669) 2026-08-26 21:13:04 -07:00
Peter Steinberger a872abc978 fix(ui): preserve startup errors across session navigation (#130593) 2026-08-26 20:03:43 -07:00
Peter Steinberger 31b26d09f0 feat(ui): group advanced settings by messaging channel (#130591)
* feat(ui): group advanced settings by messaging channel

* test(ui): connect channel settings fixture for label checks
2026-08-26 19:40:34 -07:00
Peter Steinberger c35b183093 fix(ui): highlight source code in chat and session diffs (#130578)
* fix(ui): highlight source code in chat and session diffs

* test(ui): isolate roster bootstrap from slug lookup

* fix(ui): preserve both languages in renamed diffs
2026-08-26 19:28:03 -07:00
Peter Steinberger a4c01c1a77 feat(ui): save appearance preferences per user profile (#130340)
* feat(ui): save appearance preferences per user profile

When a Control UI connection is bound to an authenticated user profile
(trusted-proxy, Tailscale, GitHub identity), theme, theme mode, and accent
become per-profile: stored in the existing user_preferences KV store via
users.prefs.set, overriding gateway-wide ui.prefs, with live cross-device
updates over a new additive users.prefs.changed event scoped to the same
merged profile. Restore default deletes only the profile key and falls back
to the gateway-wide value. talk.config projects the caller's profile accent
for native clients. Profile-less connections (token/password/none auth)
keep the existing gateway-config behavior byte-identically.

Release-note context: on multi-person gateways appearance choices are now
personal and follow you across devices; an admin restyling their own UI no
longer reskins the whole team.

* chore(protocol): allowlist users.prefs.changed for mobile clients

iOS and Android resolve the profile accent through talk.config on connect
and config refresh; live per-profile appearance push on natives is a named
follow-up.

* chore(protocol): regenerate Swift/Kotlin models for users.prefs.changed

* fix(ui): honor explicit defaults and identity switches for profile appearance

Addresses the three ClawSweeper review findings:
- resetValue for profile-bound appearance keys is the deletion fallback
  (gateway value), so an explicit product-default selection persists as a
  profile write instead of being misclassified as a reset.
- An identity switch between two known scopes forces a full appearance
  reconcile and clears appearance keys the returning identity never set,
  so a shared browser cannot keep the previous profile's look (boot keeps
  the last-seen shortcut).
- talk.config joins the profile-dependent dispatch gate so a pending
  GitHub identity sync completes before the profile accent is projected;
  token clients pass through untouched.

* chore(ui): satisfy assertion-safety ratchet and docs formatting

* refactor(ui): extract server-prefs storage primitives

server-prefs.ts crossed the 700-line cap after the review fixes; the
stateless localStorage persistence primitives move to
server-prefs-storage.ts (no behavior change). Shrink-prunes the
assertion-safety baseline for the moved casts.

* fix(ui): keep imported custom themes out of profile storage

Custom palettes are browser-local by contract, so a profile must never
carry theme=custom to a browser that cannot render it. The wire contract
drops custom from the storable theme values (readers self-heal any stored
value), a profile-bound custom selection stays retained browser-local
(including the offline-queued path), and the exhaustive theme test now
encodes the exception.
2026-08-26 16:48:26 -07:00
ce4a680544 feat(models): add configurable model selection scopes (#127813)
* feat: make model persistence scope explicit

* fix: keep unauthorized model directives as plain text

An unauthorized sender's inline directives are cleared to plain text before
they are acted on, but the persistent write target was derived from the
directives as they arrived. An unauthorized `/model <provider/model> -a` or
`-g` therefore reached the owner-authority error return instead of the
plain-text path every other directive takes.

Derive the target, the authority flag, and the persist flag after the
clearing. Authorized senders skip the clearing, so their behavior is
unchanged; the only closure that captures the target is invoked well after
the new declaration site.

Covers both persistent flags with a regression test that fails on the prior
head with "Agent and global model defaults require owner authority or
operator.admin scope." and passes here.

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

* feat(models): make model selection scope configurable

Preserve current model-selection defaults when the optional scope preference is unset. Add explicit session, agent, and global overrides without broadening config-write authority.

Co-authored-by: Marvinthebored <peter@lindsey.jp>

* test(models): simplify scope expectation fixtures

---------

Co-authored-by: Marvinthebored <peter@lindsey.jp>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-26 14:31:56 -07:00
Peter Steinberger f0291d7e5d fix(ui): show dashboard refresh failures with a retry action (#130376)
Keep cached dashboards visible when their session-list refresh fails, show the existing stale-data notice, and retry the current agent query. Cover connected refresh failures, first-load recovery, and retired scope callbacks.
2026-08-26 14:01:58 -07:00
Peter Steinberger 1fc29beba2 refactor(state): fold singleton tables into config_machine_state at schema v12 (#129876)
* refactor(state): fold singleton tables into config_machine_state at schema v11

Eight singleton tables (skill_curator_state, update_check_state,
clawhub_promotions_feed_state, model_catalog_remote, voicewake_triggers,
voicewake_routing_config, voicewake_routing_routes,
onboarding_recommendations) were each one logical JSON value behind a
fixed key; their bespoke schemas, lazy ensures, and per-table accessors
collapse onto the shared config_machine_state KV under namespaced keys.
cron_store_epochs retires outright: it was born write-only in #114388
and no reader ever existed in any language. Durable values (update
check state, voicewake triggers and routing, per-workspace onboarding
answers) migrate insert-if-absent during the v10->v11 migration; cache
class contents rebuild on next use. Deferred with named reasons:
exec_approvals_config (macOS direct-SQL contract), installed_plugin_index
(same-tx lease fence), node_host_config and web_push_vapid_keys
(secret-table git-backup redaction).

# Conflicts:
#	src/skills/workshop/collection-review-state.ts
#	src/skills/workshop/collection-review.gateway-admission.test.ts

* test: register v11 guard carve-outs and suppression pin

The v11 migration module joins the raw-SQLite allowlist (migrations are
the named guardrail exception), the lint-suppression allowlist records
the second type-parameter suppression in config-machine-state, and the
identity module keeps only externally consumed exports.

* test: surface CLI stderr when migration-diagnostic assertion fails

* test: expect migration diagnostics on stderr for models plain commands

The #129037 pending-migration cases asserted that aliases/fallbacks
lists never open the state database, but config-health observation
(observeConfigSnapshot -> readConfigHealthStateFromStore) full-opens it
on any config read whose file exists — reproduced identically on clean
main with a main-built dist. The protected contract is exact stdout;
the diagnostic legitimately lands on stderr for every case.

* test: drop unused defaults import from CLI stdout e2e

* test: split session path derivation out of oversized session-files suite

#130016 pushed session-files.test.ts to 1008 lines, over the 1000-line
lint cap and red for every PR's check-lint. The sessionPathForFile
describe moves to a self-contained sibling following the existing
session-files.*.test.ts split pattern; no assertions change.

* refactor(state): fold four more singleton tables into schema v12

tui_last_sessions (cache-class, regenerates on next session switch),
sidebar_sections (persistent section order, migrated as one JSON array),
node_host_config, and web_push_vapid_keys join the v12 fold-in, taking
the retirement to thirteen tables at the same version. The two secret
singletons were blocked on table-granular git-backup redaction; backups
now exclude config_machine_state rows by secret key prefix (nodeHost.*,
webPush.vapidKeys) with a fail-closed row filter and regression proof,
so STATE_SECRET_TABLE_NAMES sheds both tables. The sidebar fold also
retires its lazy-ensure WeakSet and inline DDL; sidebar edits stay
inside the existing session-group write transaction via direct Kysely.

* fix(node-host): omit absent Cloudflare Access config like the column reader

The KV rewrite returned gateway.cloudflareAccess as an own undefined
property where the retired column reader omitted the key; toStrictEqual
consumers (state-migrations doctor-repair test) caught the shape drift.
Mirror the column reader's conditional spread at both construction
sites.

* fix(backup): disclose redacted machine-state prefixes after restore

The prefix-granular secret redaction recorded omitted key prefixes in
the backup manifest but the restore result exposed only excludedTables,
so a redacted restore looked complete while nodeHost.* and
webPush.vapidKeys configuration were intentionally absent. The restore
result and CLI output now disclose the omitted prefixes (JSON mode
carries them via the result shape), with restore-side regression
coverage.

* fix(tui): compare-and-delete retired session pointers

Doctor cleanup read matching pointer keys then deleted them
unconditionally, so a replacement pointer written between the scan and
the delete was erased. The delete now re-checks the stored value inside
the write transaction and only removes pointers that still name a
retired session; a live replacement survives (regression covered).
Also corrects the stale schema-version line in database-first.md.
2026-08-26 13:32:19 -07:00
Peter Steinberger d9b41332e4 fix(ui): restore person grouping for multiple session owners (#130326)
* fix(ui): restore person grouping for multiple session owners

Use the live session-owner roster for Person grouping and People sorting instead of the connection-time identity policy. Preserve preferences while the roster is unknown and retain single-owner dormancy across sidebar and Sessions page.

* docs(ui): match the owner sorting label

* refactor(ui): reuse session owner and menu selection paths
2026-08-26 13:28:36 -07:00
Peter Steinberger 08a42a561c feat(control-ui): add the Tide, Beacon, and Phosphor themes (#130232)
* chore(control-ui): vendor JetBrains Mono and Atkinson Hyperlegible Next

Adds the woff2 faces for the Beacon and Phosphor themes plus the stylesheets
that declare them. Both families are SIL Open Font License 1.1 and ship
unmodified with their upstream license text, as the license requires.

Atkinson Hyperlegible Next was drawn by the Braille Institute for low vision:
its letterforms disambiguate the pairs that blur first at low acuity (I/l/1,
O/0, rn/m), which is why it belongs to the accessibility theme specifically.

base.css has always named JetBrains Mono first in --mono, but nothing shipped
it, so code blocks rendered in it only for people who happened to have it
installed locally. Phosphor makes that deterministic.

Latin and latin-ext subsets only, 195 KB. Served from the gateway rather than a
font CDN so font-src 'self' holds, no third-party request happens on load, and
an offline or LAN-only gateway still renders correctly. The url() references are
relative to their stylesheet so they follow a configured Control UI mount.

* feat(control-ui): add the Tide, Beacon, and Phosphor themes

Three built-in themes, each filling a gap the existing four share rather than
adding a fifth variation on them. Every shipped accent today is warm — coral,
crimson, chocolate, clay — and the only cool token anywhere is Claw's teal
secondary.

Tide is the cool one: steel cyan on deep slate, deep teal-blue on cool paper.
It deliberately ships no webfonts, so it costs nothing beyond its tokens.

Beacon is the accessibility one. It targets WCAG AAA (7:1) rather than the AA
4.5:1 floor the other themes hold, for low vision, direct sunlight, projectors,
and poor panels, and sets everything in Atkinson Hyperlegible Next. Reaching AAA
forced one deliberate break from the status-token convention: elsewhere each
--x-subtle is --x at 8%, but a label on a tint of its own hue caps achievable
contrast because the tint pulls the background toward the text. Beacon tints
neutrally and lets the label carry the contrast. Its focus ring is opaque and
3px for the same reason — a translucent ring is the first thing to vanish on a
bad panel. The contrast guardrail now enforces 7:1 for Beacon specifically, so a
later palette edit cannot quietly demote it to an ordinary dark theme.

Phosphor is the terminal one: phosphor green on green-cast black with the whole
surface, chat prose included, in JetBrains Mono. Monospace prose is a character
choice for an operator console, not a readability claim, which is why it is
opt-in.

Every palette was solved against the real guardrail before any CSS was written.
Worst text pairing per theme: Tide 6.12:1 dark / 4.63:1 light, Beacon 10.29:1 /
9.72:1, Phosphor 6.69:1 / 4.76:1. Worst status label on its own tint: Beacon
7.05:1 / 7.02:1, the others above 4.6:1.

Budgets: the startup CSS ceiling moves 45 -> 47 KiB and the JS ratchet baseline
moves 523 B. Every built-in theme's tokens ship in the startup sheet, so each
new theme costs ~0.5 KiB gzip whether or not anyone selects it. Moving per-theme
palettes to lazily linked stylesheets (as theme webfonts already are) would take
this back under the old ceiling, but it needs a first-paint story first: a late
palette flashes default colors where a late font only swaps.

* fix(control-ui): use Beacon's destructive foreground in chat confirmations

The chat confirmation button paints from --danger under --media-foreground, a
theme-invariant white, and each dark palette opts out of that pairing through a
selector list in chat/grouped.css. Beacon defines a deliberately light --danger
(#ffabab, chosen so status labels clear AAA) but was missing from that list, so
its confirm button rendered white on pale pink at 1.80:1 — on the theme whose
entire promise is contrast.

Adds Beacon to the list, which routes it to --destructive over
--destructive-foreground at 11.67:1.

Also adds a guardrail for the bug class, since the selector list has to be
extended by hand for every new dark theme and I have now missed it once. The
test reads membership back out of grouped.css rather than restating it, resolves
each theme's effective (background, color) pair, and holds it to that theme's
floor. It reproduces this defect at 1.80:1 against the pre-fix stylesheet.

Reported by ClawSweeper review on #130232.
2026-08-26 11:47:01 -07:00
44d60a29e6 fix: preserve unread reminder for open sessions (#129386)
* fix: preserve manual unread markers in open sessions

* fix: distinguish explicit session reads

* fix(ui): gate unread contract on gateway capability

* perf(ui): keep server capabilities out of startup bundle

* test(gateway): keep agent fixtures roster-consistent

* fix(sessions): preserve legacy read compatibility

* test(gateway): type agent fixture configs

* fix(ui): remove unread gateway fallback

Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>

* test(infra): avoid fixed SSH tunnel port

* fix(ui): acknowledge unread after history commit

* docs: clarify unread upgrade boundary

* test(ui): drive mobile session menu by tap

* fix(ios): remove stale read reconciliation call

---------

Co-authored-by: roboclaw-bot <309084314+roboclaw-bot@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
2026-08-26 05:04:39 -07:00
Peter Steinberger 9f9ad63246 fix: honor session policy for widget approvals (#129970) 2026-08-26 01:34:24 -07:00