Commit Graph

9223 Commits

Author SHA1 Message Date
Teknium
0ebc4a85cd test(desktop): move Stop/rewind background tests to their own file
index.test.tsx sits over the file-size ratchet; the interrupt-vs-rewind
suite lives in index.background-interrupt.test.tsx instead.
2026-10-25 18:33:24 -07:00
Teknium
5c1484f759 fix(desktop): Stop keeps the rows of background subagents that outlive the turn
cancelRun dropped every subagent row (clearSessionSubagents), on the
assumption that Stop cancels them all. Stop now ends only the turn, so it
prunes finished rows and keeps running/queued ones; the stopped turn's own
children leave with the next roster snapshot. Without this a surviving
background subagent vanished from the Subagents frame until the next 5 s
poll brought it back.
2026-10-25 18:33:24 -07:00
Cary Palmer
cffe11a42b fix(desktop): keep background processes alive on plain interrupt; reap them on regenerate
cancelRun() (Stop, and "send now" on a queued message while busy) called
resetSessionBackground(), which issues process.kill for every running
background process in the session. A plain interrupt keeps the timeline,
and the gateway's session.interrupt deliberately leaves
terminal(background=true) processes running, so the renderer was killing
work the backend contract says must survive (e.g. a dev server started
several turns earlier).

- cancelRun: drop resetSessionBackground().
- reloadFromMessage (regenerate): it truncates history through
  prompt.submit just like restore/edit, but never reset background state,
  so processes spawned by the discarded turns stayed live. It now clears
  todos, resets background (killing running processes) and clears preview
  artifacts before the re-run, matching restoreToMessage / editMessage.

Tests (use-prompt-actions/index.test.tsx): cancelRun sends
session.interrupt and no process.kill and the running row survives;
reloadFromMessage and restoreToMessage kill the running process and clear
the rows. The cancel and reload cases fail on main and pass with this change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 18:33:24 -07:00
unsupportedpastels
1f91da2a27 fix(desktop): budget group-chat preview downloads per connection
Addresses review feedback on #144557.

Refs #143547
2026-10-25 17:49:17 -04:00
unsupportedpastels
0adaa12eed test(desktop): cover preview queue progress after a failed download
Addresses Greptile review on #144557.

Refs #143547
2026-10-25 17:49:17 -04:00
unsupportedpastels
3221d411ac fix(desktop): cap group-chat preview downloads in flight
Found in review of #143607 by @dokterdok.

Automatic image previews now share one renderer-wide queue of two
downloads, served in request order. A preview that leaves the viewport,
is hidden or unmounts before its turn gives up its place without a
request, and a file already downloading is joined instead of being
requested again. The manual Download button stays outside the cap.

Refs #143547
2026-10-25 17:49:17 -04:00
unsupportedpastels
1d0dbb87fa fix(desktop): translate the read-only stored chat error card
CI JS & TS checks: apps/desktop src/i18n/overlay-completeness.test.ts failed because errorCodes.session_read_only had no entry in the eight catalogs that carry error cards (ar, de, es, fr, ja, ru, zh, zh-hant). Added the title and body to each beside cron_session_read_only.

Refs #143547
2026-10-25 11:39:45 -04:00
unsupportedpastels
690440524b fix(gateway): answer viewer reads on a history mount; name read-only refusals
Addresses maintainer review on #143601.

Refs #143547
2026-10-25 11:39:45 -04:00
unsupportedpastels
8aee8df0ec fix(acp): project config options on outside changes; document prompt.cancel
Addresses maintainer review on #143600.

Refs #143547
2026-10-25 11:37:02 -04:00
unsupportedpastels
b2f9dee01a fix(acp): list gateway editor threads, add config pickers, stop on cancel
session/list now includes editor threads stored as local rows, sessions report
model and reasoning config options, and prompt.cancel on a started turn stops it
in the same call.

Rows ACP-23, ACP-24.

Refs #143547

Co-authored-by: Felipe Cardoso <felipe.cardoso@hotmail.it>
Co-authored-by: omega <omega.ai@keihatsu.de>
2026-10-25 11:37:02 -04:00
unsupportedpastels
d4fcea44cd fix(desktop): keep the measured context reading beside an agentless breakdown
Review F1 (P2): since the agentless breakdown is accepted, a breakdown with categories but context_max 0 overwrote the meter header with zeros (40k/100k became 110 tok, popover 0 / 0). The header now takes the breakdown figures only when it knows a window, otherwise the session's own streamed usage, never the merged global. The popover still gets the categories.

Refs #143547
2026-10-25 11:35:06 -04:00
unsupportedpastels
239c9d2628 fix(desktop): show agentless context categories when the window is unknown
Addresses independent review findings on #143598.

Refs #143547
2026-10-25 11:35:06 -04:00
unsupportedpastels
aa41a33223 fix(gateway): keep a deferred level across a direct model pick; show it in Desktop
Addresses maintainer review on #143594.

Refs #143547
2026-10-25 11:32:44 -04:00
unsupportedpastels
661853e861 fix(gateway): defer a reasoning pick made while a reply streams
A reasoning change during a turn returned session_busy and Desktop rolled it
back. It now shares the deferred model-pick slot and commits at the next turn
boundary; Desktop shows the existing "applies from your next message" notice.

Row MP-24 (reasoning half).

Refs #143547
2026-10-25 11:32:44 -04:00
unsupportedpastels
55f188d9ae fix(groups): allow member actor fields and send retry coordinates on serve
groups.log logged a contract violation on every read with bot replies because
RoomActor forbade the member fields the gateway stamps. Serve retry rows now
carry member_id and execution_generation, so Retry works over SSH, URL and
Cloud connections.

Rows HR-11, HR-14.

Refs #143547
2026-10-25 11:31:51 -04:00
unsupportedpastels
6dca67ed4d fix(desktop): reset lazy previews, queue pasted uploads, refresh list after disband
Addresses maintainer review on #143607.

Refs #143547
2026-10-25 11:30:54 -04:00
unsupportedpastels
537b410a74 fix(desktop): disband via ConfirmDialog, close without onBack, lazy previews
Addresses Greptile review on #143607.

Refs #143547
2026-10-25 11:30:54 -04:00
unsupportedpastels
2b75150de5 feat(desktop): group chat rename, disband, mentions and attachment paste
Adds Rename and Disband to the gateway group header, the @ picker in the
composer, paste and drag-and-drop attachments, and inline previews for small
images. The restored-send notice now shows only for a send restored from the
journal.

Rows HR-15, HR-16, HR-20, HR-23 (client half).

Refs #143547

Co-authored-by: HootRock <wtr1274970944@163.com>
Co-authored-by: Maziay <Maziyarkolagar@gmail.com>
2026-10-25 11:30:54 -04:00
unsupportedpastels
62a9e0bbcc fix(desktop): share the native gateway socket rules with voice
Addresses Greptile review on #143597.

Refs #143547
2026-10-25 11:29:33 -04:00
unsupportedpastels
0e74f5bd80 fix(audio): accept the local Desktop runtime ticket on voice stream sockets
The speak and transcribe stream sockets refused the local Desktop's own
credential. They now redeem the interactive runtime ticket through the existing
native gate (no Origin, loopback peer, served profile) and run in the grant's
profile. Desktop sends the ticket as a subprotocol and its main process strips
Origin only for those two paths on a fresh /api/ws reservation.

Rows RT-71, RT-80.

Refs #143547

Co-authored-by: Dolverin <5910064+Dolverin@users.noreply.github.com>
2026-10-25 11:29:33 -04:00
alt-glitch
2ae47b3775 refactor(desktop): name the trial model once so the statusbar items stay under the complexity cap 2026-10-25 20:51:12 +05:30
alt-glitch
55474d31e1 fix(desktop): re-read the offer timing only after a backend list read
Saved or cached connected rows render before the read that arms the offer, so the first re-read came too early and the real one never fired.
2026-10-25 20:51:12 +05:30
alt-glitch
668362f11d fix(desktop): a guest with connected apps can always find the sign-in
- The connect watch lasts as long as a connect link (10 minutes), so a slow authorization settles connected instead of failed.
- The Connectors page re-reads the sign-in offer timing after a list read first shows a connected app, so the offer comes up without the window regaining focus.
- A guest without the trial gets the statusbar Sign in, and the Connectors guest line gets a Sign in button.
2026-10-25 20:51:12 +05:30
Teknium
9b26e63d9d fix(desktop-e2e): the reaper unit test reaps only its own fixtures
The test called the host-wide reaper, so running it also stopped the
backends and deleted the roots of any other abandoned Playwright run on the
machine, and `toContain` let those extra reaps pass. `reapAbandonedRuns`
takes an optional scope (runs whose root lies under it); the runner keeps
the host-wide default. The test plants an abandoned run outside its scope
and asserts the reap returns exactly its own dead root and leaves the
outside run's backend and root alone (red on 8627d097833: the outside root
was reaped).
2026-10-25 07:53:33 -07:00
Teknium
29d13bd134 fix(desktop-e2e): stop the gateways Playwright runs leave behind, including a killed run's
Desktop dials its backend through `hermes gateway ensure`, a detached
`gateway run` that outlives the app on purpose. The main suite's sandbox
cleanup only closed the app and removed the sandbox, so EVERY spec launch,
clean runs included, left its gateway running (~300 MB each), and the orphan
rewrote its sandbox HERMES_HOME right after the rmSync, so the run's pw-*
root reappeared. A SIGKILLed runner (agent/CI timeout) additionally left its
Electron main process.

Three layers, each covering a teardown the previous one cannot reach:
- per sandbox: the main suite's cleanup now stops the daemons its
  gateway.lock files record (the core lane's existing helper, moved to the
  shared e2e/run-tmp-reaper.ts; every platform);
- per run, at runner exit: every process whose environment names this run's
  root (a fixture that never returned, profile gateways off the lock homes);
- per host, at the next runner's start: every process left under a run root
  whose recorded runner (pid + kernel start time) is dead.
The run-level layers read /proc (Linux) and only signal a process carrying
both HERMES_E2E_RUN_TMP=<root> and a HERMES_HOME under that root; a root
whose runner is alive or unrecorded is never touched.
2026-10-25 07:53:33 -07:00
xxxigm
b247d79166 fix(fs): serve /workspace files from the session's docker workspace sandbox
Chat and artifact downloads name a session whose container is default:ws:<digest>, so the host copy is that sandbox rather than the shared default directory.
2026-10-25 10:42:07 -04:00
Maciej Lisiewski
05b83f632f Merge pull request #143719 from NousResearch/bulk-update-js
chore(deps): bump npm dependencies to latest minor/patch releases
2026-10-25 12:54:29 +01:00
emozilla
bf9f416e59 fix(desktop): a Webapp tab opened on a profile its gateway no longer has stays on the gateway's own 2026-10-25 03:22:43 -07:00
emozilla
1c76a86f42 test(webapp): a tab opened on a named profile runs and reads that profile, end to end 2026-10-25 03:22:43 -07:00
emozilla
50783edf1d test(desktop): a Webapp tab on ?profile=<name> names it on the owner route a silence probe takes
A running turn's silence probe asks session.active_list through the session's owner route
(requestGatewayForAgent with the tab's one source), not the profile route the sidebar poll takes.
The test that pins a tab loaded on ?profile=<name> now checks that door too: its request carries
the profile, so the probe sees the turn the tab is running.
2026-10-25 03:22:43 -07:00
emozilla
af30b299c9 fix(desktop): a Webapp tab opened on the saved default names that profile in its address
A live profile switch in a Webapp tab ends by writing `?profile=` into the tab's address. A bare tab
that opens on the origin's saved default now reaches that profile the same way at boot, but its
address stayed bare. Files, uploads and the terminal fall back to the address's profile whenever
the connection descriptor names none, and a reconnect of the tab's socket publishes a descriptor
that names none, so after a reconnect that tab's terminal and file reads went to the profile the
gateway runs as while the sidebar showed the saved default.

Boot now records the profile it opened the tab on, as the switch does. For a tab loaded on
`?profile=<name>` the address already says so and nothing changes.
2026-10-25 03:22:43 -07:00
emozilla
984897fcd7 fix(desktop): a Webapp tab loaded on ?profile=<name> asks the gateway for that profile by name
A Webapp tab opened or reloaded on `?profile=<name>` (which is how `hermes -p work webapp` opens it,
and how every reload of a tab that switched profiles comes back) made <name> its primary profile.
The renderer sends requests for the primary profile without `profile`, but the gateway answers a
request that names no profile for the profile it runs as, on the socket and over REST alike. So on
a gateway launched as `default` the tab's live-status poll listed default's sessions, the turn the
tab was running looked gone, and after 45 quiet seconds the tab showed "Hermes ended this turn
without a reply" while the turn kept running; the transcript refresh that followed got a 404. A tab
opened on the origin's saved default had the same problem, and a bare tab on a gateway launched as
a named profile called its primary `default`.

A Webapp tab's primary is now the profile its gateway runs as, read from the page the gateway serves
(`__HERMES_DASHBOARD_PROFILE__`). The browser bridge's `getConnection()` returns that one socket
whatever profile the tab is on, and any other profile is a view of it that sends `profile` on each
request. Boot dials that socket and then selects the tab's `?profile=` (else the saved default) the
way a live switch does, so a reload still lands where the user was. Native Desktop is unchanged:
every change is behind the browser host check.

Reported with a full trace by BearHuddleston.
2026-10-25 03:22:42 -07:00
emozilla
ee8d2b02d8 test(desktop): an idle native terminal tab keeps its saved scrollback after a shell's cursor query
PowerShell (PSReadLine) and fish ask for the cursor position when they start, and xterm sends its
reply to the shell through the same path as typed input. Main counted that reply as session
activity, so an idle tab of those shells re-saved its scrollback on every launch, which is the
growth #61572 stopped for other shells. The terminal refactor this branch carries counts only
keys, typing, composition, paste, drop and mouse input with mouse tracking on.

The test pins that: after the reply alone the saved history is unchanged, and after typing the
next output saves the session.
2026-10-25 03:22:42 -07:00
emozilla
97facdc690 fix(desktop): a dropped file's name can no longer end its shell quoting in any terminal
Dropping a file onto a terminal types its quoted path, but the quoting only handled the plain
apostrophe of POSIX shells and PowerShell. PowerShell also reads the typographic quotes U+2018,
U+2019, U+201A and U+201B as single quotes, so a file named "a’; Start-Process calc; ’b.txt"
dragged from a cloned repo onto the Webapp's host terminal (PowerShell on Windows) or a native
PowerShell tab ran calc at the next Enter, and an ordinary "Jeff’s notes.txt" left the quote open.
fish reads \' and \\ inside single quotes, so a name holding a backslash before a quote added a
command there. cmd expands %NAME% inside double quotes before reading them, so a name holding
%PATH% typed another path, and a variable whose value holds a quote could add a command. csh and
tcsh expand !-history inside single quotes.

The drop now quotes for each of these shells: PowerShell doubles every quote it reads as a single
quote, fish escapes backslashes and quotes, cmd types each % outside the quotes as ^%, csh and
tcsh escape !, and sh, bash, zsh and other shells keep the POSIX quoting. Native Desktop shares
this code.
2026-10-25 03:22:41 -07:00
emozilla
49f75ab653 fix(gateway): the Webapp's control verbs answer "starting" from the control socket's first moment
A starting gateway answered its control socket for about 1.7 seconds before it registered the
Webapp's verbs, because the registration ran only after the Webapp's listener and dashboard mount
were up. In that window webapp-status got "unknown verb: 'webapp-status'". Web Access turned that into
"unavailable", and the pane's restart wait, which stops at the first answer that is not pending,
showed a Start that had worked as Unavailable with the protocol error and a Stop button.

The gateway now registers the Webapp's verbs before its control socket starts, and the runtime
reports the Webapp as "starting" until its listener settles on serving, off or unavailable. While
starting, webapp-status answers that state (the pane already keeps waiting on any state other than
serving or unavailable), and webapp-launch and webapp-sign-out refuse with "still starting": a
sign-out must not replace the stored credential while the starting listener may already hold it,
and hermes webapp --sign-out already waits for a starting gateway. hermes webapp --status says the
gateway is still starting instead of printing "Unavailable: None".
2026-10-25 03:22:38 -07:00
emozilla
42bde77c68 fix(webapp): two gateways' Webapps on one hostname keep their own sign-ins
Cookies are not scoped to a port, and only the sign-in binding cookie was named for the gateway. The
login itself (hermes_session_at, _rt, _provider) kept main's names, so when a browser signed in to a
second gateway on the same hostname (another user's, or a standalone profile's on 9121) with its own
sign-in provider or provider secret, those cookies replaced the first gateway's login and the first
Webapp answered session_expired. Signing out of one in the browser cleared the other's login too.

On the Webapp's listener every sign-in cookie it sets is now named for the gateway, with the same
suffix as the binding: the access and refresh token, the provider hint, the OAuth state cookie and
the auto sign-in marker. The listener reads and clears only those names, so cookies with main's names
(the standalone dashboard's on the same hostname, or this branch's earlier builds) are left alone
and such a browser signs in again. The standalone dashboard keeps main's names. Native Desktop's
check for a cookie login on a remote gateway accepts the per-gateway names.
2026-10-25 03:22:37 -07:00
emozilla
babc763a0f fix(webapp): the launch link leaves the browser credential out of the browser's history
After spending its one-use ticket, the launch page opened the Webapp at /#hermes-session=<credential>.
That is a new page load, so the browser stored the address, credential included, in its history,
offered it in address-bar suggestions and synced it to the user's other devices. The credential is
kept in the gateway home and opens host shells and files until hermes webapp --sign-out, so anyone
who later read that history held it.

The launch page now puts the credential in the tab's sessionStorage, under the key the Webapp reads
at boot, as the child-window page already did, and opens the Webapp's own address. The Webapp reads
its credential only from there and no longer takes one from the address or reloads for a pasted
site storage gets a message saying so instead of "already used". Live with Playwright's Chromium and
its own profile: the history now holds the launch page and / only (receipt in the lane report).
2026-10-25 03:22:37 -07:00
emozilla
c7bab35d08 refactor(webapp): one route mints every Webapp socket ticket
A Webapp page minted its one-use socket tickets from three routes that did the same thing with a
different socket name: /api/webapp/gateway-ticket for /api/ws, /api/webapp/terminal-ticket for the
host terminal and /api/webapp/audio-ticket?socket= for the voice streams, each with its own copy of
the surface check, and the renderer had a helper for each.

POST /api/webapp/socket-ticket?socket= now mints them all. A table names each socket (gateway,
host-terminal, speak-stream, transcribe-stream), the surface policy that lets a surface mint it, and
whether the mint checks the profile the page will dial (the gateway socket, as before). An unknown
socket gets 400 and a surface that does not serve the socket gets 404, as before. In the renderer,
ticketedWebsocketUrl() mints the ticket and builds the URL for any of the four sockets. Main's
/api/auth/ws-ticket is unchanged. The tests, fixtures and code comments that named the old routes
now name the new one.
2026-10-25 03:22:37 -07:00
Teknium
e5ebf04f3a test(webapp): assert the sign-out summary the gateway prints now
a175a3db reworded the summary `hermes webapp --sign-out` prints behind the sign-in gate; the
Desktop core e2e spec still looked for the old sentence and failed in dispatch run 40003439648
right after the sockets had closed, so the rest of the sign-out check never ran.
2026-10-25 03:22:35 -07:00
emozilla
cce9f40c67 fix(desktop): a wide code block in a native chat scrolls as on main
The carried browser renderer sized a chat code fence's <pre> to its longest line, so the code
card's scroller scrolls the block sideways in place, and gave that scroller a fade at the cut
right edge until the block reaches its end. A touch screen shows no scrollbar there, so the fade
is the browser host's cue that a line runs on. In native Desktop it changed every wide fence: the
card scrolled sideways instead of the <pre>, and the fade covered the last column of code.

Both now apply only in the browser-hosted Desktop. Native Desktop keeps main's fence, whose <pre>
scrolls its own long lines, and main's block with no sideways fade. Native tests pin both; the
longest-line width and the fade tests now run as the browser host.
2026-10-25 03:22:35 -07:00
emozilla
b6513babfb test(desktop): native Desktop saves a remote generated image through the save dialog
On main, "Open image" on a generated image that failed to load handed the system browser the
image's external URL. For a file on a remote gateway that URL carries the connection token, which
then sat in the browser's history. The carried renderer saves such a file through the bridge's save
dialog instead, on every host. It is kept as a native security fix and listed in the PR description.

The new test renders the link in an Electron renderer (bridge present, no browser-host marker) and
pins both paths: a remote gateway file goes to saveGatewayFile with its path, connection and name
and never to openExternal or with the token; a web image still opens its own URL, as on main. The
remote case fails with main's component.
2026-10-25 03:22:35 -07:00
emozilla
c339475092 test(desktop): a pane on a collapsed side reads as hidden in native Desktop
The carried renderer changed isPaneVisible for every host: a pane whose side of the layout is
collapsed is no longer reported as on screen. On main a terminal in a right column closed with
⌘J still read as visible, so the statusbar's terminal button showed it open, the terminal
keybinds acted on a terminal no one could see, and the first press of its toggle closed it instead
of showing it. The change is kept as a native fix and listed in the PR description.

The new test boots the real tree and side stores as an Electron renderer (bridge present, no
browser-host marker) and pins the contract: a pane on a collapsed side reads as hidden, the
reactive $paneVisible follows, and the toggle reveals it on the first press. It fails with main's
isPaneVisible.
2026-10-25 03:22:35 -07:00
emozilla
98e3292980 fix(desktop): text inside a clickable row of a native assistant message stays part of the control
The carried browser renderer added paragraphs, pre blocks and code inside an assistant message to
the stylesheet's selectable-text list on every host, so a touch long-press selects them in the
Webapp. Text in a message was already selectable; the new selectors only changed text inside a
button or [role=button] there, which main left unselectable. In native Desktop that turned a drag
across a clickable row's code span (a tool row's command, say) into a text selection.

The rule now applies only under the browser host's marker. Native Desktop keeps main's rule. A
stylesheet test pins that the rule is the browser host's, next to the coarse-pointer one.
2026-10-25 03:22:35 -07:00
emozilla
352ae01efc fix(desktop): the statusbar profile picker in native Desktop is main's again
The Webapp always shows the statusbar's profile dropdown instead of the rail's squares, so the
carried browser renderer gave that dropdown the rail's right-click launch menu (open in new window,
set as default) and its refresh of the profile list on mount, focus and tab return. It did so on
every host: native Desktop's picker, shown when the rail is hidden, gained the right-click menu
and re-fetched the profile list each time the window regained focus.

The launch menu and the refresh now apply only in the browser-hosted Desktop. The refresh hook
takes an enabled flag; the rail calls it as before. A native test pins main's picker, and a browser
test pins that the Webapp's picker keeps both.
2026-10-25 03:22:35 -07:00
emozilla
f6f9bf0535 fix(desktop): native Desktop's composer collapses at main's widths whatever the theme's text size
The carried browser renderer budgeted the composer's collapse stages from the live
--composer-control-size token, so the browser host's 44px touch controls drop the model pill,
voice and menu earlier and split into one column below two targets. That token is 1.5rem on every
host, and a theme's base font size scales it, so in native Desktop a theme with larger text moved
every stage (at 30px controls the composer went minimal 18px early), a composer narrower than two
controls split into three rows, and the minimal controls row packed to the end and wrapped.

The token budget, the one-column layout and the end-packed, wrapping row now apply only in the
browser-hosted Desktop. Native Desktop collapses at main's fixed widths in main's row, and
DESIGN.md says which host budgets the token. Native tests pin both; the existing touch-budget
tests now run as the browser host.
2026-10-25 03:22:34 -07:00
emozilla
40233c2758 fix(desktop): the mouse back button over a native file or remote HTML preview stays in the preview
Chromium hands a mouse's back and forward buttons to the renderer, and unhandled they walk the
app's own history. Main claimed them over every preview pane and passed them to the webview when
there was one. The carried browser renderer claimed them only over a live webview, so that a
browser tab's own back button keeps working; in native Desktop that let a back press over a file,
image or remote HTML report navigate the app's router instead.

The pane now leaves the buttons alone only in the browser-hosted Desktop. Native Desktop claims
them over every preview, as on main. A native test pins it, and a browser test pins that the tab
keeps its back button.
2026-10-25 03:22:34 -07:00
emozilla
0efe24fdff fix(desktop): a native terminal that fails to start shows main's error and no retry
The carried browser renderer armed Enter to start another shell after any failed terminal start,
because a browser tab's start can fail for a passing reason (a gateway restart, a ticket that
expired) and retry in the same scrollback. In native Desktop the shell is a local process spawned
over IPC: a failed spawn now read "Press Enter to retry", and Enter spawned the same failing shell
again, where main printed the error and left the tab closed.

The retry after a failed start now applies only in the browser-hosted Desktop. Native Desktop
prints main's "Terminal failed to start: <reason>" line, and Enter starts nothing. A native test
pins it; the browser retry stays covered by the existing attach-failure test.
2026-10-25 03:22:34 -07:00
emozilla
c7dcd5853c fix(desktop): the titlebar sidebar buttons in a narrow native window work as on main
The carried browser renderer made the titlebar's sidebar buttons follow the narrow overlay on every
host: in a narrow window they took their Show/Hide label and aria-expanded from what the overlay
showed, opened or closed it explicitly, aimed the right button at Review when it was up, and a
close named for the sessions sidebar also closed a zone mate (Bots) the overlay showed. In native
Desktop that changed what a click did in a narrow window: a hover reveal closed instead of pinning,
and the label stopped matching the docked side that ⌘B and ⌘J toggle.

The overlay-driven buttons, aria-expanded and the zone-wide close now apply only in the
browser-hosted Desktop, where a touch screen has no hover to reveal by. A narrow native window
labels the buttons from the docked sides and flips the overlay through the shared toggle, as on
main. Native tests pin both; the existing overlay-driven tests now run as the browser host.
2026-10-25 03:22:34 -07:00
emozilla
a1e27754d3 fix(desktop): a click outside a narrow native window's sidebar overlay reaches the app again
The carried browser renderer laid a full-window backdrop under a revealed narrow-window sidebar
overlay on every host, so a phone tap outside it closes it. In native Desktop that backdrop also
caught the first click anywhere else in a narrow window: the click closed the overlay and never
reached the transcript, the composer or the button under it, where main let the click through and
kept a pinned overlay open until Escape, the toggle or hover-out.

The backdrop now renders only in the browser-hosted Desktop. A native narrow window behaves as on
main, and DESIGN.md says which host dismisses on an outside tap. A native test pins it, and the
existing outside-tap test now runs as the browser host.
2026-10-25 03:22:34 -07:00
emozilla
7a3dda8242 fix(webapp): stream voice in the Webapp on a ticket minted for each voice stream
Streaming voice in the Webapp never streamed: spoken replies and live dictation always fell back to
the whole-reply path. The browser dialed `/api/audio/speak-stream` and `/api/audio/transcribe-stream`
with the one-use ticket it had minted for the gateway socket, and a socket ticket opens only the
socket it was minted for, so both voice streams refused it.

Each voice stream now has a socket name, and the Webapp mints its ticket from
`POST /api/webapp/audio-ticket?socket=speak-stream` or `?socket=transcribe-stream`, on the same
surface and with the same credentials as the gateway ticket. The browser-hosted Desktop asks for one
on every voice dial. A voice stream's ticket opens that stream once and nothing else, and the
gateway's and the host terminal's tickets open neither stream. Native Desktop is unchanged: its
unnamed tickets and session token still open the voice streams.
2026-10-25 03:22:34 -07:00