Commit Graph

4688 Commits

Author SHA1 Message Date
Peter Steinberger b6b937d6ac chore(types): give test helpers nameable exported types (#121783) 2026-08-10 18:17:50 -07:00
Peter Steinberger dd2aedf08f refactor: burn export name collision debt (#121767)
* refactor(tasks): disambiguate lifecycle helpers

* refactor(channels): clarify account and id helpers

* refactor(media): separate SDK facades from cores

* refactor(auto-reply): consolidate command helpers

* refactor(cli): disambiguate registration helpers

* refactor(gateway): clarify runtime and test helpers

* chore(scripts): burn resolved collision debt

* fix(refactor): update remaining core callers

* fix(refactor): update remaining UI callers

* chore(plugin-sdk): refresh API baseline
2026-08-10 18:17:13 -07:00
Peter Steinberger 32894a3ba5 feat: start sessions from registered projects (#121465)
* feat(gateway): add project registry sessions

* fix(gateway): authorize project branch discovery

* test(gateway): reuse worktree test imports

* fix(protocol): register projects schema owner

* fix(gateway): gate project paths by write scope

* feat(control-ui): register projects from folder browser

* refactor(gateway): extract session diff baseline preparation

* fix(gateway): honor admin scope in project listings
2026-08-10 17:56:12 -07:00
Peter Steinberger e5de0a8434 refactor(ui): simplify retained chat sessions (#121777)
Amp-Thread-ID: https://ampcode.com/threads/T-019fe957-0e49-707f-859f-9600ef536125

Co-authored-by: Amp <amp@ampcode.com>
2026-08-10 17:50:03 -07:00
Vyctor H. Brzezowski 1d989027cf feat(ui): let operators reorder queued chat messages (#121682)
Queue position becomes an explicit, operator-owned fact on ChatQueueItem
instead of an accident of arrival time and storage array order. One
comparator now serves the visible projection, the drain head selection,
the steer rebuild, and the alias merge, so what the composer shows is
what the Gateway receives.

Reordering lives entirely on one handle at the left of a queued row:
drag it, or focus it and press the arrow keys. Keyed rows keep focus on
the handle as it moves. Rows already handed to a run keep their place.

Also routes .chat-image-action through var(--cursor-action); its
hardcoded pointer was failing the cursor-policy test on main.
2026-08-10 21:44:40 -03:00
Vyctor H. Brzezowski 41d023ab8a fix(ui): give the chat header a diff glyph, a task glyph, and one centerline (#121739)
* fix(ui): give the chat header a diff glyph, a task glyph, and one centerline

The session-changes action shipped icons.gitBranch, which reads as branching,
not as changes; background tasks shipped icons.activity, a heartbeat line that
says nothing to a developer about work running behind the thread. Both actions
now carry the glyph their tooltip promises: a Lucide file-diff (file plus +/-
marks) and a Lucide list-with-checks, applied at every entry point to each
action so one command never shows two icons.

Measuring the rendered header also found the row's controls disagreeing about
their box: openclaw-chat-header-session-menu is a custom element, so it
blockifies as a flex child while keeping a text line box, and the descender
space under its button rendered it 29.8px tall and dragged its glyph 0.9px
below the 18px icons beside it. The pill chips stood 26px against the 28px
icon buttons, the branches trigger drew a 14px glyph among 18px siblings, and
the rename affordance's padding shifted the title 5px sideways the moment
renaming was allowed. The actions row now declares one box model for every
child, the chips adopt the shared 28px control height, and the title's hover
padding is pulled back out of the layout.

* fix(ui): optically center chat session title

* test(ui): mirror the shipped title markup in the split-header fixture

The optical-center commit moved the title's ellipsis onto an inner
.chat-pane__session-title-text span, so the split-header fixture's bare
.chat-pane__session-title no longer had white-space: nowrap or
text-overflow: ellipsis. Its deliberately long title wrapped instead of
truncating, which still satisfied the close-button assertion but stopped
exercising the ellipsis path the fixture exists to guard.
2026-08-10 21:07:15 -03:00
Vyctor H. Brzezowski 94490bd69b feat(ui): show GitHub link identity in Control UI chat (#121728)
* feat(ui): mark GitHub links in Control UI chat

Chat markdown anchors pointing at github.com now carry a decorative GitHub mark before their text, so a bare URL and a [#3434] shorthand read as the same destination. The mark is painted from the bundled brand path through a CSS mask on currentColor: it stays out of the accessibility tree and out of copied text, tracks the chat text size, and follows the link color in every theme. Image-only links such as badges and code spans stay undecorated.

* feat(ui): break long autolinked URLs at any character in chat

An autolinked URL is one unbreakable word, so the inherited overflow-wrap only splits it after every other option is exhausted: a long URL was pushed whole onto the next line, and with the new GitHub mark ahead of it the mark was left stranded alone at the end of the previous line. Autolinked anchors now carry markdown-bare-url and get unconditional character break opportunities, so the URL fills the line it starts on. Authored link labels keep word-boundary wrapping.

* fix(ui): drop resting underline on chat GitHub links

* test(ui): split markdown link tests into a sibling file

markdown.test.ts crossed the 1000-line oxlint budget once the GitHub-link
cases landed. Move the link-rendering describes (autolinks, explicit
protocol links, file links, bare-url marks, GitHub marks) into
markdown-links.test.ts. Pure move; no assertion changes.

* test(ui): assert GitHub links rest without an underline

Covers the resting/hover decoration contract through the real rendered
page, and pins the rule's scope with a non-GitHub link that keeps the
base underline.
2026-08-10 20:57:35 -03:00
Peter Steinberger 750d0dcd9e improve(ui): make warm session switching instant (#121625)
* perf(ui): make warm session switching instant

Amp-Thread-ID: https://ampcode.com/threads/T-019fe957-0e49-707f-859f-9600ef536125

* fix(ui): harden retained session ownership

Amp-Thread-ID: https://ampcode.com/threads/T-019fe957-0e49-707f-859f-9600ef536125

* test(ui): scope retained session assertions

Amp-Thread-ID: https://ampcode.com/threads/T-019fe957-0e49-707f-859f-9600ef536125

* fix(ui): align generated image preview checks

* fix(ui): preserve early transcript reading position

Amp-Thread-ID: https://ampcode.com/threads/T-019fe957-0e49-707f-859f-9600ef536125

* fix(ui): adopt latest-navigation-wins router

Amp-Thread-ID: https://ampcode.com/threads/T-019fe957-0e49-707f-859f-9600ef536125

* fix(ui): restore retained pane reactivity

Amp-Thread-ID: https://ampcode.com/threads/T-019fe957-0e49-707f-859f-9600ef536125

* test(auto-reply): align item lifecycle expectations

* fix(ci): repair current-main validation gates

Amp-Thread-ID: https://ampcode.com/threads/T-019fe957-0e49-707f-859f-9600ef536125

---------

Co-authored-by: Amp <amp@ampcode.com>
2026-08-10 16:17:25 -07:00
Alix-007 a287c2d96b fix(ui): prevent failed plugin icons from retaining connections (#121129)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
2026-08-10 18:12:41 -05:00
Peter Steinberger 1263450938 improve: start fresh gateways without migration overhead (#121639)
* Optimize fresh gateway startup migrations

* Fix startup optimization CI gates

* Fix compact startup CI coverage

Amp-Thread-ID: https://ampcode.com/threads/T-019fec00-3abd-710b-b9de-8925c23ad779

* Fix stale managed image CI coverage

* Fix stale model setup route expectation

* Fix setup admission lint

* Fix system agent setup test isolation

---------

Co-authored-by: Amp <amp@ampcode.com>
2026-08-10 15:01:37 -07:00
Peter Steinberger 0b0d9f5811 fix(ui): prevent terminal garble after Gateway reconnect (#121637)
* fix(ui): recreate terminal runtime after replay gaps

Replace Ghostty's in-place reset with a fresh controller/runtime for authoritative recovery replay so Gateway reconnects cannot expose stale WASM terminal state. Preserve replay ordering, focus and tab visibility, and dependency cleanup.\n\nFixes #121636

* test(ui): fix terminal replay type coverage

* fix(ci): repair current-main validation blockers

* test(discord): align progress fixtures with callbacks

* fix(ui): restore focus after cancelled terminal replay

* chore(ci): drop superseded baseline fixups

* fix(ui): stage terminal replay replacements safely

* fix(ui): serialize asynchronous terminal replay

* fix(ui): guard superseded terminal replay recovery

* fix(ui): invalidate superseded terminal replay callbacks

* fix(ui): keep staged terminal replay inert
2026-08-10 13:27:28 -07:00
Vyctor H. Brzezowski 20d928e3c3 fix(ui): name new session groups in an owned dialog instead of a browser prompt (#121249)
* fix(ui): name new session groups in an owned dialog

Sidebar Move to group -> New group and the Sessions page New group action collected the group name with window.prompt, so the only text-entry step in that flow was browser chrome: unthemed, unvalidated, and unable to keep the typed name when the create was rejected.

Adds showPromptDialog next to the existing showConfirmDialog helper and routes both new-group surfaces through it. createSessionGroup now reports its mutation result so a rejected create keeps the dialog and its value for a retry.

* fix(ui): keep the prompt dialog usable when its operation throws

A rejected submit left the field disabled and the module-level guard latched, so every later prompt in the session was dropped. Report the thrown error as the visible failure instead.

* refactor(ui): keep the prompt dialog options type module-local

Nothing outside prompt-dialog.ts consumes the options type, and the deadcode export gate rejects unused public surface.

* fix(ui): keep the new-group catalog write and assignment on one scope

rememberSessionCustomGroup discarded whether its connection was still current, so a groups.put that outlived its connection was followed by a sessions.patch issued on the replacement one. It now reports completed/failed/stale like the sidebar catalog write, and the Sessions page threads one captured scope through both writes.

* refactor(ui): name new session groups through the shared input dialog

input-dialog.ts already owns Control UI text entry, so the new-group flow no
longer ships a second near-identical dialog next to it. showInputDialog gains
two additive options instead:

- requireValue trims the entry and holds submission closed while it is blank,
  replacing the ?.trim() bail every prompt call site repeated. Rename keeps it
  off, because an empty rename still has to clear a custom label.
- submit runs the operation behind the dialog and keeps it open on failure with
  the typed value intact, so a rejected create is correctable rather than
  retyped. The Gateway rejects a group name over 512 characters, and that
  message now reaches the operator without discarding what they wrote.

The input stays uncontrolled: its value binding is constant, so repaints for the
submit and failure states leave the caret and IME composition alone. The
AbortSignal contract and the reentrancy guard are unchanged.

Both catalog writes also honor the result groupsPut returns. The capability
retires a write on its own connection epoch, which the caller's scope predicate
cannot observe, so discarding it could file a session into a group no live
connection ever confirmed.

* fix(ui): survive a submit callback that throws before it returns

The catch was attached to the returned promise, so a non-async callback that
threw during synchronous validation escaped it: the rejection left submitting
latched, every control disabled, escape blocked, and the module-level guard held
for the rest of the session. The call now happens inside the try.

Also aligns the shared sidebar harness with the catalog contract. groupsPut
resolved undefined while its groupsRename and groupsDelete siblings already
resolved "completed", so the harness disagreed with the capability it stands in
for as soon as the caller started reading that result.

* fix(ui): do not recreate a session that vanished during the catalog write

Awaiting the group catalog write before the assignment opens a window in which
the target row can be deleted. sessions.patch creates a store entry for an
unknown key, so the assignment would resurrect the session the operator just
removed. assignCategory already guards its own patch this way; the new-group
path now does the same.

* test(ui): widen the empty session-list cast for the vanished-row case

* fix(ui): re-resolve sidebar group targets before assigning them

The new-group dialog no longer blocks, so the rows captured when the menu opened
can be deleted while the catalog write is in flight. sessions.patch creates a
store entry for an unknown key, so assigning them would resurrect the sessions
the operator just removed. The Sessions-page path already guards this; the
sidebar now re-resolves every target against the current list before patching.

* refactor(ui): load the input dialog behind one lazy boundary

input-dialog.ts was imported statically by the Sessions page and dynamically by
the sidebar controller. Mixing both for one module makes the dynamic import
ineffective and pulls the dialog into a startup chunk that never needs it until
an operator opens a menu. All four call sites now share the lazy boundary.

* fix(ui): keep a stale group submission open for retry

A Gateway connection replaced mid-write confirmed neither the group nor the
move, but both surfaces mapped that outcome to a silent close: the dialog
vanished and the typed name went with it, leaving nothing on screen to explain
why no group appeared. Both now report a retryable message so the entry stays
put and resubmitting runs against the replacement connection.

The row-vanished path still closes: there the group did land, and only the
assignment was skipped.

* fix(ui): close the input dialog when its owner goes away

The dialog mounts on document.body, so navigating away left it over the
destination with a detached owner, and a later submit ran against a page that
had already torn down its subscriptions. Both the Sessions page and the sidebar
controller now hand it a lifecycle AbortSignal and abort on disconnect, using
the option the component already accepted.

* fix(ui): prove the target session when a delayed patch lands

The new-group assignment guarded itself by asking whether the row was still in
the current list. That list is a bounded, filtered projection, so an ordinary
refresh that pages a row out of view read as a deletion and silently dropped a
legitimate move, while a row that was genuinely replaced still looked present.

Both surfaces now carry the identity captured when the operator acted, and the
Gateway decides: sessions-patch-engine compares expectedSessionId against the
stored entry and refuses a changed target, so a patch can neither land on a
successor session nor recreate one that is gone. The projection guards are
removed rather than kept alongside it.

SessionPatch and the sidebar patchMany targets carry the field, and
SidebarRecentSession keeps the sessionId its rows already had from the Gateway,
so every sidebar mutation the operator starts before a replacement is covered,
not just group creation.

* fix(ui): make the dialog's lazy boundary safe to await

Three races opened up when the dialog moved behind a dynamic import.

The Sessions page read the target's identity after awaiting the chunk, so a
refresh during a cold load handed back whichever row had replaced it and the
identity guard then approved the wrong session. The lookup now happens before
any await.

The lifecycle was armed only after the chunk resolved, so a sidebar that
disconnected mid-import left nothing for hostDisconnected to abort and the
dialog opened behind a dead host. The import now runs inside the lifecycle.

A rejected chunk load produced no dialog, no error and an unhandled rejection at
the void callers. Both surfaces now report it where they report their other
failures.

* test(ui): make the sidebar projection case prove the assignment

The case waited on a condition that was already true before the catalog write
landed, so it returned before the continuation reached patchSessions and its
negative assertions passed without exercising anything. It also still claimed
the old behaviour: rows leaving the projection now do not suppress the
assignment, because a bounded, filtered list is not evidence of deletion.

It now waits for the batch itself and asserts each target carries the identity
captured with its row, which is what lets the Gateway refuse a replaced target.

* test(ui): split the sidebar new-group cases out of interactions

Adding the projection case pushed interactions.ts past the 700-line ceiling.
The multi-select helpers move to multi-select-support.ts so both files share one
definition, and the two new-group dialog cases get their own case module beside
the other per-topic sidebar suites.

No behaviour change: 246 sidebar cases still pass, and interactions.ts drops to
well under the limit without a suppression.

* fix(ui): stop cancelling the sidebar dialog on a re-layout

The compact-viewport E2E caught this: at 420px the sidebar is dropped from the
DOM, which fired hostDisconnected and aborted the open dialog, so resizing the
window mid-edit closed it and discarded the typed name — the same silent loss
this PR set out to remove.

A sidebar detach is not the operator leaving. The dialog is a body-level modal
and outlives the sidebar's DOM position by design, so the controller no longer
tears it down. The Sessions page keeps its binding, where a page unmount really
is a navigation.

* style(ui): format the extracted sidebar multi-select helpers

* fix(ui): keep the live dialog abortable when a second open overlaps

Two fire-and-forget new-group actions during the lazy import both installed a
lifecycle controller. showInputDialog drops the reentrant request, but the
second call still cleared the field on its way out, so the dialog actually on
screen was left with nothing for disconnect to abort and survived navigation.

A second open now reuses the active controller instead of taking ownership, and
a regression case overlaps two opens then detaches the page.

* refactor(ui): defer session-identity plumbing to its own change

The new-group dialog work had grown a second, separable concern: threading the
identity of the row the operator acted on through SessionPatch, the sidebar
patchMany targets and SidebarRecentSession, so the Gateway could refuse a patch
whose session had been replaced. That contract is real and already enforced by
server-methods/sessions-patch-engine.ts, but it reaches every session mutation
the sidebar makes rather than group creation alone, and a rejected identity
still needs its own terminal outcome before it helps an operator. It belongs in
a change that can be judged on those terms.

Both surfaces return to the projection-presence guarantee this change shipped
first: captured rows are re-resolved against the current list and an assignment
whose row is gone is skipped, which is what keeps sessions.patch from recreating
a session the operator just deleted.

The sidebar case covering that keeps the waiting fix it gained meanwhile. It now
waits for the dialog to be removed, which happens only once the submit chain has
run, instead of for a condition that was already true before the catalog write
landed and let the negative assertions pass without exercising anything.

* fix(ui): say when a new group landed without its move

Both new-group paths skip the assignment when the captured row is no longer in
the current list, because sessions.patch would otherwise recreate a store entry
for a session the operator had removed. That guard was silent: the dialog closed
on the same "completed" a full success returns, so an operator whose list had
simply refreshed or paged got a new group, an unmoved session, and nothing that
accounted for the difference.

The list is a bounded, filtered projection, so a row leaving it is not proof the
session is gone. The skip stays — it is the safe choice without the target's
identity — but it now ends in a visible outcome. The Sessions page records the
partial result in its own error surface and closes; the sidebar raises a toast,
singular or plural with the rows the operator selected. Both are terminal rather
than retryable: the group already exists, so resubmitting the same name could
only fail.

A header-created group still starts empty with no notice, since nothing was
requested to move.

* fix(ui): tighten the skipped-move notice

The two-string singular/plural pair pushed the Control UI startup bundle past
its gzip ceiling: the catalog is loaded at startup, so long copy is paid for on
every page load, and the check failed by 41 bytes.

One string covers both surfaces and both counts. It still states the outcome and
the next step, which is what the notice is for, and it drops the count branch in
createSessionGroup along with the second key.

* test(ui): split the new-group case out of the groups e2e file

The groups e2e file crossed the 1000-line ceiling for test files once this
branch's new case landed on top of the growth main had already added, and a
max-lines suppression is not an option here.

The owned-dialog case moves to its own file beside it, matching the split the
sidebar cases already got. It keeps the same shared helpers, so the move is
mechanical, and it leaves the groups file with room for the cases that stay.

* fix(ui): report sidebar group moves that were skipped

Re-resolving the selection against the live list stopped a removed row from
being recreated, but only the all-removed case reached the operator. When part
of a multi-row selection left the list while the catalog write was in flight,
the survivors were patched and the call returned a plain success, so the dialog
closed with the group created, some sessions moved, and nothing saying the rest
were not.

The count comparison now covers the partial case: the surviving subset is still
patched, and whenever fewer rows resolve than were requested the skipped outcome
is named. It stays terminal, since the group already exists and retrying would
only recreate it.

The Sessions-page path takes a single optional key, so all-or-nothing is the
only shape it has and it already reports the skip; the sidebar is the surface
with a multi-row selection to partially satisfy.
2026-08-10 17:16:16 -03:00
Peter Steinberger 97bd54ded7 fix(sessions): prevent failures and stale state under rapid use (#121680)
* fix(sessions): harden lifecycle reliability and listing speed

Amp-Thread-ID: https://ampcode.com/threads/T-019febfb-f949-77cd-b15b-d31d0b42d2fb

* test: repair strict type fixtures

Amp-Thread-ID: https://ampcode.com/threads/T-019febfb-f949-77cd-b15b-d31d0b42d2fb

* chore(plugin-sdk): refresh current main API baseline

Amp-Thread-ID: https://ampcode.com/threads/T-019febfb-f949-77cd-b15b-d31d0b42d2fb

* fix(ci): repair current-main validation blockers

Amp-Thread-ID: https://ampcode.com/threads/T-019febfb-f949-77cd-b15b-d31d0b42d2fb

* test(cron): preserve upstream assertion order

Amp-Thread-ID: https://ampcode.com/threads/T-019febfb-f949-77cd-b15b-d31d0b42d2fb

* fix(gateway): settle setup admission test sessions

Amp-Thread-ID: https://ampcode.com/threads/T-019febfb-f949-77cd-b15b-d31d0b42d2fb

* test(ui): sample wizard action geometry atomically

Amp-Thread-ID: https://ampcode.com/threads/T-019febfb-f949-77cd-b15b-d31d0b42d2fb

---------

Co-authored-by: Amp <amp@ampcode.com>
2026-08-10 12:58:59 -07:00
Peter Steinberger 084ed7f04b fix(ui): stabilize mobile drawer focus E2E (#121663)
* test(ui): await native drawer focus settlement

* test(ui): distinguish browser chrome focus
2026-08-10 12:56:19 -07:00
Peter Steinberger 8a5978154f fix(ui): handle keyboard context menu shortcuts (#121628)
* fix(ui): handle keyboard context menu shortcuts

* fix(ci): repair shared validation regressions

* fix(ci): repair setup admission lint

* fix(ci): settle setup admission tests
2026-08-10 12:39:22 -07:00
Peter Steinberger 519c8ed38d fix(ui): align managed image preview contracts 2026-08-10 11:47:43 -07:00
Colin Johnson 86fe45ce17 fix(control-ui): scale sidebar text with appearance setting (#121087)
Scales Control UI sidebar and navigation text with the existing Appearance preference while preserving mobile input zoom safety and bounded session-count layout.

Prepared head SHA: bafb9a2b74
Co-authored-by: Colin Johnson <211764741+Solvely-Colin@users.noreply.github.com>
Co-authored-by: Shakker <165377636+shakkernerd@users.noreply.github.com>
Reviewed-by: @shakkernerd
2026-08-10 18:29:23 +01:00
Peter Steinberger 4e5029e43b fix(ci): repair test-type breakage from generated image actions
The image-actions feature landed with an untyped fetch spy and an unknown
URL argument; newer vitest types surface both. Capture anchor downloads via
a typed mock implementation and coerce the probed block URL. Also add the
toolCallId/itemId fields to the Discord harness's stale local copies of the
onToolStart/onCommandOutput payload types (canonical type already has them).
2026-08-10 10:25:31 -07:00
openclaw-mantis[bot] e195585a90 chore(ui): refresh control ui locales (#121555)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-10 09:02:29 -07:00
Ittiz bad30d5a74 feat(ui): add generated image actions (#77017)
Give Control UI managed images bounded previews and shared full-image Open, Download, and Copy actions. Keep artifact access transcript-bound; the existing ticket is intentionally attachment-scoped to the lower-fidelity thumbnail.

Co-authored-by: Ittiz <github@daein.org>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
2026-08-10 21:30:58 +05:30
Peter Steinberger fbebfc713f test(ui): remove retired source mirrors (#121607) 2026-08-10 07:27:48 -07:00
Peter Steinberger ebd03db156 test(ui): target canonical reconnect session refresh (#121609) 2026-08-10 07:23:02 -07:00
Shakker 98b89aaa00 test: isolate attachment rebound mock registry (#121577) 2026-08-10 16:10:19 +02:00
Shakker 3b288b4f6e test: isolate attachment rebound coverage 2026-08-10 16:10:18 +02:00
Shakker f46c3f9200 test: type MCP rebound fixture 2026-08-10 16:10:18 +02:00
Shakker 6e70f17759 fix: reactivate retained attachment panes 2026-08-10 16:10:18 +02:00
Shakker c31ccaafa4 fix: finalize late closed-pane attachments 2026-08-10 16:10:18 +02:00
Shakker 6eded1bbce fix: prevent closed pane attachment restaging 2026-08-10 16:10:18 +02:00
Shakker fb9b1aba9e fix: retain replacement attachment payload ownership 2026-08-10 16:10:18 +02:00
Shakker 607f50bece fix: preserve fallback attachment packages across remounts 2026-08-10 16:10:18 +02:00
Shakker 33bee61f2c test: cover ownerless staged attachment cleanup 2026-08-10 16:10:18 +02:00
Shakker c5a5ba2263 fix: preserve staged attachments across chat remounts 2026-08-10 16:10:18 +02:00
Peter Steinberger 3b3c540896 refactor: remove dead branches and test-only helpers (#121345)
* refactor: remove dead branches and test-only helpers

* fix: preserve codex cleanup error causes

* fix: preserve gateway error code compatibility

* chore: update plugin sdk api baseline

* docs: fix live cache runner path
2026-08-10 06:47:43 -07:00
Peter Steinberger 0d4e9f3ede fix(codex): report harness context window; compact context popover (#121491)
* fix(codex): report harness context window as session contextTokens

Codex app-server reports model_context_window per turn. Carry it through the projector into the run result meta so session rows show the real window instead of the catalog's standard-tier input cap (272k vs 1M for gpt-5.6 models).

* improve(ui): compact chat context popover

Inline stat rows replace boxed tiles; zero-value cost rows and the whole cost section when empty are omitted; provider/model provenance lines are removed because the footer already shows the model; and the popover is narrowed to 300px.

* refactor(codex): split attempt-result assembly out of event projector

* fix(codex): seed attempt context window from startup binding

App-server v2 turn/started omits the core model_context_window, so thread/tokenUsage/updated is the only live carrier. Seed usage-less attempts from the retained startup binding rollout/session window so session metadata cannot regress to the catalog fallback.

* fix(codex): prefer native startup context window

Persisted session contextTokens has no source provenance and may contain the catalog fallback. Keep the minimum window for the conservative rotation fuse, but seed the projector from the native rollout when it is available.

* chore(plugin-sdk): regenerate api baseline (new format)

* revert(gateway): "prevent restart replay after final delivery" (broke 5 CI jobs)
2026-08-10 05:52:19 -07:00
Peter Steinberger 6b565c047f feat(ui): show unsent-draft pencil on sidebar session rows (#121476)
* feat(ui): show unsent-draft pencil on sidebar session rows

Typed-but-unsent composer text now surfaces as a pencil badge on the
owning session's sidebar row (and Home row) once you switch away.
Draft persistence now notifies stored-outbox subscribers so the
indicator appears and clears live. The active session suppresses the
badge since its composer is already visible.

* chore: refresh merge ref for CI against current main

* chore: refresh merge ref against healed main

* fix(ui): notify draft indicator only on presence transitions

Unconditional notify on every draft persist let outbox-projection
subscribers re-persist a stale pane over a newer draft (chat-state
route-fallback invariant). The sidebar pencil only consumes presence,
so notify on empty/non-empty transitions only.
2026-08-10 04:53:15 -07:00
Peter Steinberger 0a6a1d9419 fix(gateway): unify media privacy in chat history (#121490)
* fix(gateway): unify media privacy in chat history

Centralize image, audio, video, and persisted media-fact privacy at the shared Gateway history projection. Remove duplicate sessions_history redaction, validate managed media claims canonically, and keep safe media-only user turns renderable.

* test(gateway): type history RPC integration

* test(agents): align history fixture with gateway projection
2026-08-10 03:30:44 -07:00
Jesse Merhi e97c3450a2 fix(ui): preserve negotiated paired cancel 2026-08-10 20:15:29 +10:00
Jesse Merhi 66a44643d4 test(ui): follow browser cursor policy 2026-08-10 20:15:29 +10:00
Jesse Merhi 29827ea0ce fix(ui): preserve disabled cancel hover 2026-08-10 20:15:29 +10:00
Jesse Merhi cf1ac91609 test(ui): assert structured receipt count 2026-08-10 20:15:29 +10:00
Jesse Merhi ce852958bd test(ui): cover mounted and receipt wizard submissions 2026-08-10 20:15:29 +10:00
Jesse Merhi 402305f003 fix(ui): align wizard control states 2026-08-10 20:15:29 +10:00
Jesse Merhi 66196b7bf7 Control UI: pair wizard cancel and primary actions 2026-08-10 20:15:29 +10:00
Jesse Merhi 767bbb49d7 Control UI: preserve disabled wizard hover states 2026-08-10 20:15:29 +10:00
Jesse Merhi 84ad551e27 Control UI: size wizard actions for touch 2026-08-10 20:15:29 +10:00
Jesse Merhi 0368d89ebd Control UI: clarify wizard interactions 2026-08-10 20:15:29 +10:00
Peter Steinberger c3775a8f21 test(ui): stabilize checkbox alignment proof
Poll both fixed-width selection rails together and compare their trailing edges so the browser assertion measures settled popover geometry instead of sampling different points in the open animation.
2026-08-10 03:08:24 -07:00
Peter Steinberger c68606b812 fix(ui): align automation session checkmark
Keep Web Awesome checkbox semantics while rendering the selection state in the sidebar filter shared trailing rail. Add mocked-browser coverage for the hidden native mark and one-pixel alignment invariant.

Co-authored-by: Vyctor H. Brzezowski <krzyszchweski@gmail.com>
2026-08-10 03:08:24 -07:00
Jesse Merhi 260628f4fa perf(ui): keep cancel capability within startup budget 2026-08-10 20:01:24 +10:00
jesse-merhi 2300de7162 Gateway: negotiate Custodian wizard cancellation 2026-08-10 20:01:24 +10:00