The "elephant" section described a build that re-parsed the whole message
on every flush. It also credited a <DeferStreamingText> wrapper that no
longer exists, and a Streamdown useTransition that 2.7 does not have.
The section now records what holds on main:
- settled Blocks are frozen by the Block memo plus the cached splitter;
- preprocess is deferred at MarkdownTextSurface;
- stream end no longer re-parses;
- the splitter cache is bounded.
It also lists what is still O(N) per flush: preprocess and the remend
scan, the cheap splitter bookkeeping, and a single giant tail block. The
parser swap and the Web Worker are noted as not pursued.
Replace the modal ChatSwapOverlay (absolute inset-0 z-50, aria-hidden) and
the separate ChatSyncBadge with one ChatSwitchIndicator, mounted in flow at
the top of the primary chat column so it never covers the transcript:
- 0-2 s: nothing (a fast switch must not flash chrome).
- 2-10 s: quiet corner pill "Switching to <agent>…", tinted with the target's
profile colour (resolveProfileColor/profileColorSoft; neutral for default),
shadow-nous + --stroke-nous, pointer-transparent.
- 10 s+: inline strip above the thread: "Still connecting. Messages you send
now will wait and go to this agent."
- Paint-first hydration sync (#89843) renders as the same quiet pill.
- A rejected rail switch ends in a terminal failure strip (canonical
ErrorIcon, Retry, dismiss). No spinner runs in that state.
Root is aria-live="polite"; the status is never aria-hidden. Exposes
data-switch-state (idle|pending|slow|stalled|syncing|failed) as the
deterministic readiness contract.
Failure state: a feature-owned nanostore (store/profile-switch-state.ts)
tracks the in-flight rail pick and the last failed one. selectProfile and
newSessionInProfile route through runRailSwitch. On rejection it sets the
failure, with a retry that re-runs only the activation (no second fresh
draft), and still shows the existing toast / remote-override reauth notice
(#91349). A generation guard stops a superseded attempt from clearing a
newer spinner or resurrecting a failure. The failure is cleared by the next
swap ($gatewaySwapTarget set), the next pick, success, or dismiss.
$gatewaySwapTarget keeps its behaviour (transcript suppression,
goneSessionVerdict, tile calm); only its presentation changed.
Rail: local named-profile squares and the home pill get the same pending
treatment (aria-busy + spinner) that rest squares already had. Squares also
get a failed mark (ErrorIcon plus the reason in the aria-label and tooltip).
Composer: a "Will send to <agent>" pill sits in the floating strip while a
switch is pending. Send semantics are unchanged: a send waits on
ensureGatewayProfile and lands on the target.
Paint-first option taken: today's clear is KEPT (option B). Keeping the
previous transcript painted until activation is not safe. The painted
transcript keeps its bound runtime (activeSessionId), so a send during the
swap would submit/steer the PREVIOUS profile's session on the previous
socket instead of creating one on the target. That breaks "send lands on
target" (#79005/#81094). The fresh draft also has to resolve its cwd off the
foreign project scope before the swap (#54990), and a re-homed project tree
would publish the outgoing profile's context. Instead, the target's identity
paints at once: the composer's send-target pill shows on the click frame, and
the rail square goes busy. The indicator escalates from there. No modal ever
covers content.
Perf: scripts/perf/scenarios/profile-switch.mjs no longer reads overlay
text. Removing that text would have made it silently report about 100 ms.
It now settles on data-switch-state leaving pending/slow/stalled AND the
clicked square's aria-busy clearing, and reports failed separately from a
timeout. e2e bot-screen-stale-status-reply waits on the same attribute.
i18n: composer.wakingProfile removed; composer.switchingProfile,
switchingProfileSlow, switchProfileFailed and willSendTo added in en, de,
es, fr, ja, ru, zh, ar, zh-hant. locales/_keys.desktop.json regenerated.
desktop.hydrationSyncing is still used, and its ru gap is still listed.
DESIGN.md documents the switch-indicator contract.
A platform block inherited whole through a merge key (at the root, inside
gateway, or via an inherited gateway) was invisible to the seeder, so the
isolated gateway could still enable that adapter. The block lookup now
follows merges and materializes a local copy before pinning it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A shorthand platform block that inherits enabled through a YAML merge was not
pinned off, and re-serializing wrapped a long desktop.electron_flags flow list
that the Desktop launch reader parses line by line.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On Wayland, electron/entry.ts relaunches the app with
--ozone-platform=wayland unless argv already names a platform. The parent the
harness spawned holds the --remote-debugging-port, so the relaunched child's
DevTools bind fails ("Address already in use") and the harness polls a browser
with zero pages until its 120 s driver wait times out. Every --spawn run on a
Wayland desktop failed this way.
Pass --ozone-platform=wayland ourselves on a Linux Wayland session so the app
never relaunches. Verified on Hyprland: before, `/json/list` on the harness
port was `[]` and startIsolatedInstance timed out; after, it lists the
http://127.0.0.1:<devPort>/ page and connects (RESULT CONNECTED).
messaging platforms
`--spawn` seeded its throwaway HERMES_HOME with a verbatim copy of
~/.hermes/config.yaml, so the isolated gateway started every platform the user
enabled. With Photon (iMessage) its sidecar binds the fixed 127.0.0.1:8789:
the isolated adapter "reaped" the live gateway's sidecar, the user's real
gateway logged SIDECAR_CRASHED and reconnected, and inbound messages could
land in the throwaway process. Observed on a real machine during a harness run
(two reaps, ~13 minutes of flapping) and confirmed in the live gateway.log.
A platform starts on any activation evidence: a config block (top-level
`<name>:`, `platforms.<name>`, `gateway.platforms.<name>`), credentials in
.env, or an auth.json credential-pool record. The seeder now pins every
platform the gateway knows (core Platform members + bundled
plugins/platforms/*) to `enabled: false` under top-level `platforms:`. An
explicit disable outranks .env and auth.json evidence (gateway/config_env.py
_enable_from_env, _enable_plugin_platform), so .env and auth.json still copy
over for model/provider auth. Disabling only the blocks a config names is not
enough: a top-level `discord:` block plus DISCORD_BOT_TOKEN in .env still
enabled Discord. Moved into scripts/perf/lib/seed-home.mjs with a test; the
copy no longer swallows errors (a failing seed is a broken harness, not
"onboarding may appear").
Test: scripts/perf-seed-home.test.mjs fails against the verbatim copy (photon
stays enabled) and passes on this change. Against the real loader
(load_gateway_config) on a home seeded from a live ~/.hermes: verbatim copy
enables [discord, photon, telegram]; this change enables []. A re-run of the
harness after the fix left the live sidecar's pid unchanged and added no reap
to the live gateway.log.
A canary tag now carries its kind as a prefix, canary.<UTC stamp>-v<stable>,
the same claim shape as a stable rc.N-v<stable>. It never matches v*, and it
is the canary's identity everywhere: GitHub prerelease, archive, stamped tag
and Docker image tag. The version it publishes stays <stable>+canary.<stamp>.
No installed canaries exist yet, so clients just switch to the new shape;
release tooling still reads the retired v<stable>+canary.<stamp> shape in
records published before (previous channel head, live macOS feed, pruning),
so the first new canary can replace them.
The tag message is now the canary's claim: the lanes it runs and whether a
red suite holds its publication. release.py --canary takes --only/--with/
--without (starting from every lane but the signed-package upgrade arms,
which a canary can never claim) and --require-green/--no-require-green
(default on; release refuses --no-require-green). Admission emits
require-green; publish-canary waits for acceptance when it is on, and
channel_releases custody re-requires acceptance (fail closed). The daily
scheduled canary passes --no-require-green; a manual dispatch defaults to
green. publish-canary needs the full desktop set the canary channel serves.
Tag-to-version derivation goes through one helper per language
(update_channel.release_version, msix-shared releaseVersion, desktop
releaseTagVersion, deb_version.py --release-version) instead of stripping a
leading v. Also fixes the Store-entrypoint test left stale by canary Store
packaging, and the canary git fixture's file:// remote on Windows.
[BearHuddleston: adapted to main 32dbc1dcda — preserved #154321 canary draft body cap and recovery tests, kept #148651 desktop_targets / omitted macos-intel, and updated #154545 test_linux_desktop_builds.py for canary.<stamp>-vX.Y.Z]
(cherry picked from commit c9e3831d3dad6965c7ddea3fa900a0ace0d45423)
The payload check recorded every symlink as "symlink", so a packaged
link pointing somewhere other than the prepared one passed, dangling or
not. PM's tree digests hash the link text, so a retargeted tool link
would still fail `hermes pm doctor` in the shipped payload.
Targets were left out because relocation rewrites them, but the check
now runs on electron-builder's copy before relocation, where builder-util
copies each link's text verbatim. Each symlink is now compared by its
target. On Windows builder-util recreates links as junctions, which
store absolute paths, so a relative link the copy rewrote would fail
the pack there too; such a link would point into the build machine's
tree after install.
Test: a verbatim copy with a relative tool link passes afterPack, and
the same copy with the link retargeted fails naming both targets. On the
previous commit the retargeted copy passed. Reported by @kvnloo.
readPackagingInputs requires the winCodeSign toolset and a .NET root
for every win32 target, --dir included. The builder-copy test published
neither, so on Windows runElectronBuilder refused the manifest ("Missing
Windows tool selection") before the test reached the copy it checks.
The fixture now supplies both on Windows. Probe on Linux: the same
manifest built for win32-x64 is refused without them and admitted with
them. The Linux run is unchanged. No CI lane runs this file on Windows,
so the rest of the Windows run is unproven.
afterPack only looked up the prepared payload when agent-payload already
existed in the packaged resources, so a bundled pack with no payload at
all skipped the check. electron-builder only warns ("file source doesn't
exist") when an extraResources source is missing and packs without it.
The hook now asks the build's extraResources mapping first. When the
build maps a payload and the packaged copy is absent, the pack fails and
names both paths. Hermes Light maps none and is still skipped.
The after-pack.test.mjs fixtures now pass a packager with a config, as
electron-builder always does, because the hook reads the mapping on
every pack.
Test: a bundled pack with the prepared payload but no packaged copy
fails; the same pack under the real Light config passes. On the previous
commit the bundled pack resolved.
The payload check ran at the end of afterPack, after relocation and
signing. On a signed macOS build, signNestedChromium first repairs any
flattened Chromium framework: Foo.framework/Foo and its Resources become
symlinks into Versions/Current. The prepared payload keeps the flattened
copy, so the check would have failed the pack over a repair afterPack
makes on purpose. The Nov 10 signed canary logged "repaired 0 framework
links", so no shipped build has hit this yet; a Chromium download with
flattened frameworks would.
The check now runs on electron-builder's copy before afterPack touches
it. Nothing has signed or relocated anything yet, so every platform
compares entries, types and file sizes, and the per-platform allowances
for signing's rewrites and macOS _CodeSignature seals go away. What
afterPack changes afterwards (relocated links, repaired frameworks,
signatures, refreshed digests) is that step's own work and stays covered
by its own tests.
Test: a signed darwin afterPack over a flattened framework (security and
codesign faked) repairs the links, signs Chromium.app and passes, while
a lost .gitkeep or a changed size fails before anything is signed. On
the previous commit the repaired copy fails the pack with "F: file
became symlink".
CI's payload smoke runs on build/agent-payload before packaging, so a loss
in electron-builder's copy shipped unseen: the pnpm .gitkeep the copy drops
is missing from the Nov 10 macOS canary. afterPack now compares the packaged
payload with the prepared one, after relocation, signing and the digest
refresh, and fails the pack listing every missing entry, changed type and
unexpected entry. The prepared payload is found through the build's own
extraResources mapping, so Hermes Light, which maps none, skips the check.
What afterPack itself legitimately changes decides what is compared:
- Linux: relocation only retargets venv symlinks (and discards build locks
the sealed payload no longer carries), so the entry set, every type and
every file size must match.
- macOS: codesign rewrites Mach-O bytes and wheel zips and adds
_CodeSignature seals to the nested Chromium bundles (the Nov 10 canary
has seven CodeResources files the Chrome for Testing zip lacks), and the
rehash rewrites tools/facts.json. The entry set and types are compared;
additions inside _CodeSignature are accepted.
- Windows: PE sanitizing and Authenticode signing rewrite PE bytes and the
rehash rewrites tools/facts.json. The entry set and types are compared.
Symlink targets are never compared, because relocation rewrites them. The
PM digest check is no substitute: on macOS and Windows the rehash
re-records every tool digest over the packaged tree, so it passes whatever
the copy lost, and it covers tools/ only. Comparing a full Linux arm64
payload (130,707 entries) takes about 3 s.
The check sees appOutDir, not the AppImage stage or the MSIX file map that
targets build later. Those use the same patched builder-util module in the
same builder process, so a pack whose resource copy kept every entry here
had the copy patch loaded for them too.
Tests: an exact copy passes afterPack, while electron-builder's own copy
without the preload, plus a lost file, a changed size and a stray file,
fails naming each (on the previous commit afterPack resolved). The macOS
and Windows rules accept signing's rewrites and macOS's seals but still
report a lost .gitkeep.
The hook now reads context.packager whenever a payload is packed, so the
Linux relocation test passes the packager electron-builder always supplies.
electron-builder (27.0.0-alpha.6) moves the payload with builder-util, which
loses two classes of entries:
- builder-util dist/fs.js:58: walk() drops every entry named .gitkeep or
.DS_Store before it consults the caller's filter (line 63).
- builder-util dist/fs.js:225-253: copyDir() creates a directory only when
it copies a file or symlink into it ("Empty directories is never
created.").
The payload goes through them at three points after preparation:
- the extraResources copy into resources/agent-payload (app-builder-lib
dist/fileMatcher.js:462 copyFiles -> copyDir, from platformPackager.js:303),
on every OS;
- the AppImage target, which copies the whole appOutDir into its squashfs
stage (dist/targets/linux/appimage/appImageUtil.js:19 and :54, copyDir);
- the MSIX/AppX targets, whose makeappx file map lists appOutDir with walk()
(dist/targets/win/winAppUtil.js:120).
A Linux arm64 AppImage built at 7b0a2cdbdf lost 6 of 130,707 payload
entries: three empty llama.cpp directories, uv-cache/builds-v0,
contributors/emails/.gitkeep and pnpm's
dist/node_modules/undici/lib/llhttp/.gitkeep. That last file is part of
pnpm's recorded tree digest, so `hermes pm doctor` in the packaged payload
reports "pnpm: realized bytes do not match recorded digest" while the
pre-packaging payload smoke passes. The Nov 10 macOS canary zip lacks the
same .gitkeep.
An extraResources filter cannot help: walk() skips the names before any
filter runs, and no filter makes copyDir create a directory. Restoring the
entries in afterPack fixes only the first copy; a build with such a restore
still shipped an AppImage without them, because the AppImage stage copies
appOutDir again with the same copyDir, and the MSIX file map walks it with
the same walk(). Rehashing digests over the copy would hide the loss.
run-electron-builder.mjs now starts the builder child with
patch-electron-builder-copy.mjs, which rewrites builder-util's fs.js in
memory through a module load hook: walk() keeps the two names, and copyDir()
creates every directory it walks. This follows
patch-electron-builder-mac-binary.mjs, never touches node_modules, and
throws if either needle is missing, so an electron-builder upgrade that
changes this code fails the build instead of silently dropping files.
App files keep excluding .gitkeep and .DS_Store: the `files` matcher
appends electron-builder's default-ignored names to its own patterns
(fileMatcher.js getDefaultIgnoredPatterns), independently of walk().
The preload goes in as a file URL because --import reads a bare Windows
path's drive letter as a URL scheme.
The test launches node with the exact flags runElectronBuilder gives the
builder child, then runs builder-util's copyDir and walk over a fixture
payload. On the base the copy lacks both .gitkeep files, the .DS_Store and
every empty directory.
electron-builder's bundled icon-tool.js is CommonJS, but the desktop
package.json declares "type":"module", so Node treats the extracted
script as a module and the AppImage packaging step dies with 'require is
not defined in ES module scope' (Linux rebuild failure #132172).
After the icons toolset is copied into the packaged tools output, write a
package.json declaring "type":"commonjs" into that directory only, so
the parent type is overridden for it and Node executes the script as
CommonJS.
Adds prepare-packaging-tools.test.mjs, which reproduces the failure (a
CommonJS script under a "type":"module" tree) and proves the marker
fixes it; red on the base commit, green with the fix.
[BearHuddleston: adapted to main's optional toolsets (9ffa8c63c1): the marker is
written only when the icons toolset is acquired, since an unpacked --dir build
skips it.]
(cherry picked from commit 6fa99e22f69893d6f895bacd63b910258e2dbcd5)
2.53.0.3 predates three Git for Windows security releases: 2.56.0.3
(eMudhra CA compromise, Git LFS CVE-2026-105803), 2.56.0.4 (bundled
brotli 1.2.1, CVE-2026-111497, reachable via libcurl's br encoding) and
2.56.1 (git CVE-2026-111760 recursive-clone RCE and five others).
2.56.1 was published 2026-11-10, past the release-age window; its first
build ships as PortableGit-2.56.1-*, which the salvaged fetch_url fix
resolves.
2.56 moved the x64 MSYS2 prefix from mingw64/ to ucrt64/, so the
trampoline self-heal git-core candidates, the non-login bash coreutils
PATH dirs and the desktop bundle-arch PortableGit exemption now also
cover ucrt64 (mingw64 kept for existing installs).
Fixes#148835
On Windows a --dir preparation still acquires the signing kit
(winCodeSign), so the "no release host reachable" test cannot pass there
by design. Gate it to POSIX, where dir preparation needs no downloads.
The JS and TS checks job packages Desktop with `builder --dir`, and its
preparation step fetched the 7zip and icons toolsets plus the Electron zip
from GitHub releases every run. An unpacked build uses none of them: no
archive target runs 7za, and the committed .icns/.ico pass through without
conversion. When icons@1.2.1/icons-bundle.tar.gz returned 504 for over ten
minutes, main went red on every push.
A dir-only preparation now selects neither toolset and, on the host arch,
copies the lock-verified Electron runtime that electron-runtime.mjs already
unpacked, so it makes no network request. Packaged formats keep the old
acquisition, and admission still refuses a non-dir manifest that lacks
the archive or icon tool.
window-below.ts loads dist/node_modules/get-windows before node_modules, so
a copy staged by a Windows build whose binding fetch failed kept dev runs
without window enumeration after ensureDevGetWindowsBinding fetched the
binding into node_modules.
The darwin validateNativeTree branch only ran on macOS, which CI does not
run tests-js on, and no dev test covered the linux/win32-arm64 skip.
Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
node-pre-gyp 1.0.11 replaces only the first "-" of node-get-windows, so it
reads npm_config_node_get-windows_binary_host_mirror, while npm and
source_build.py export the npmrc key with every "-" as "_". Copy the
documented key to the name it reads unless that one is already set.
Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
node-pre-gyp downloads without a timeout, so on a network that drops
packets every Windows dev start waited out the OS TCP timeout while no
binding was present. Kill the installer after two minutes and start
without window enumeration, as on any other failure.
With its install script denied, a fresh Windows install has no binding in
node_modules, and `pnpm run dev` (which loads that copy until a build stages
one) got upstream's no-op stubs. dev:electron and profile:main* now run the
same node-pre-gyp install stage-native-deps uses, once, and fail soft.
The win32 binding comes from the node-pre-gyp run in stage-native-deps, not
a dependency install script, and a skipped optional install is no longer how
get-windows goes missing. The compiler README now says an absent staged copy
is a degraded build.
Moving get-windows to dependencies put it in assert-root-install's required
set, so a half-extracted copy (#90829) failed the source build before
stage-native-deps could degrade and print its repair hint. Bundles skip the
guard and degraded. Exempt it by name.
pnpm >= 11.6 infers os: [win32] from the name of an optional dependency
that declares no platform (pnpm/pnpm#17774), so the filtered install in
scripts/build/node-deps.mjs skipped get-windows on darwin and linux. The
macOS build then died in validateNativeTree ("Prepared get-windows is
missing its macOS helper"), and Linux and Nix builds shipped without
read_window_below. packageExtensions cannot override the inference.
Declare it as a regular dependency, which pnpm never platform-filters. Its
install script only fetches the win32 prebuilt and falls back to a node-gyp
build that fails where none exists (win32-arm64); for a regular dependency
that would fail the whole install. So deny the script in allowBuilds:
stage-native-deps already runs node-pre-gyp itself on win32 and degrades
when it fails, and darwin and linux need nothing from it.
- nix dev shell: pnpm-workspace.yaml (overrides, catalog, allowBuilds)
joins the package.json stamp, so a settings-only change relocks.
- desktop-pane-fixture: resolve vitest/config from apps/desktop; pnpm
links it only there.
- short-session hang repro: name the lockfile in the target metadata, so
an npm-era target fails as a lockfile mismatch rather than a bare hash.
- test_mirrors: the pnpm mirror test prefetches from the registry and
needs allow_network, like its siblings.
READMEs, contributor guides, AGENTS.md files, skills and the website (with
the zh-Hans translations) give pnpm commands for the workspaces; the
website itself is still an npm project.
pnpm 12.15.0 (native executable) installs every JS workspace from one
pnpm-lock.yaml, imported from package-lock.json with the same resolved
versions. website/, the WhatsApp bridge and the photon sidecar stay separate
npm projects.
Configuration moves from .npmrc and the root manifest into
pnpm-workspace.yaml: the 14-day minimumReleaseAge and its excludes,
overrides, allowBuilds (the old allowScripts set, with strictDepBuilds
failing any unlisted build script), engineStrict, sideEffectsCache: false
(in-place rebuilds must not write into the store) and
verifyDepsBeforeRun: false (a `pnpm run` never installs).
The pnpm version is pinned in pm/lock.json and in root devEngines.
pmOnFail: ignore keeps that pin out of pnpm-lock.yaml: a leading pin
document makes osv-scanner read zero packages. scripts/build/node-deps.mjs
enforces the exact version instead, and every lock reader refuses a
multi-document lock. A root preinstall refuses `npm install`; devEngines
onFail is warn so npx (MCP servers, the tsc linter) keeps working inside
the checkout.
User-machine installs run --frozen-lockfile --trust-lockfile (release age is
checked when locking, in CI, not per user). node-deps removes npm-era
node_modules trees before the first pnpm install. Nix builds the store with
fetchPnpmDeps and a hash file that CI checks.
- The MCP OAuth renderer probe bundled its entry with esbuild resolving from
the checkout root, so its react, react-dom and react-query imports still
relied on hoisting. Resolve them from apps/desktop, which declares them
(verified: from the root they fail to resolve in an isolated pnpm tree).
- The Windows MSIX commit fixture linked node_modules before `git add apps`,
so the commit could pick up the dependency link. Link the install trees
after the commit, which needs only the fixture's own files.
Scripts outside the declaring workspace found these through the hoisted root node_modules:
mock-server and connector-rehearsal (whose desktop-local Electron path did not exist under npm),
ui-tui's visual harness, the eval harnesses, and the tests/install/e2e-assets drivers, which import
tests-js's @playwright/test and zod. They now resolve from apps/desktop or tests-js; the typed
e2e-assets files go through a tests-js re-export module so their types resolve the same way.
Packaging scripts and tests reached app-builder-lib's internals as ../../../node_modules/..., and
test fixtures junctioned only the repo-root node_modules, both of which assume npm hoists every
package to the root. The internals are now joined onto the installed package's resolved entry (the
pattern windows-bundle-tools.mjs already uses), AppInfo comes from the package's public entry, and
fixtures mirror both the root and apps/desktop node_modules, so the copied desktop files resolve
their dependencies exactly as the checkout does. gen-msix-manifest output is byte-identical.
The missing-ticket retries used their own delay table, which matched
the first five lost-contact pauses. They now call contactDelay(), with
a limit of five. A ticket that never propagates still gets 6 staples,
the same pauses (15, 30, 60, 120 and 120 s) and the same error.
The LOST_CONTACT comment now says which codes point at the runner's own
network (-1003, -1004, -1006, -1009) rather than at Apple.
The older resume test's local `timeoutOutput` copied `notaryTimeout`,
apart from `_kCFStreamErrorDomainKey` (1 rather than 4, the value in
the canary log). The test now uses `notaryTimeout`.
Stapling starts only after Apple has accepted the app. Until now a
dropped connection there could retry for whatever was left of the
four-hour notarization budget, holding the runner for hours on a
network path that main gave up on within a minute. The host-unreachable
codes (-1003, -1004, -1009) usually mean the runner's own network is
broken, not that Apple is down.
Lost contact while stapling now retries for up to 45 minutes, or for
what is left of the notarization budget when that is shorter. 45
minutes is about twice the outage the 2026-11-03 canary ran into. The
wait for Apple's verdict keeps the full budget.
The staple loop also checks LOST_CONTACT before it counts a retry. A
ticket that is still missing after its five retries now throws inside
its own branch, instead of falling through to the lost-contact check.
The outage test now covers both limits, an acceptance at t=0 and one
10 minutes before the budget ends. It fails on the previous head, which
retried for about 4 h, and the second case fails if the Math.min is
removed.
The 2026-11-03 canary (desktop run 41591721476) signed both macOS
builds, and Apple accepted the arm64 submission, but both builds failed
in this hook on network errors it does not retry:
- arm64: `stapler staple` exited 68 with NSURLErrorDomain Code=-1005
"The network connection was lost." from api.apple-cloudkit.com. Only
the exit-65 missing-ticket case was retried.
- x64: `notarytool wait` timed out (Code=-1001) at 07:22, 07:24, 07:27
and 07:38 UTC. Resuming stopped after three pauses (15, 30 and 60 s),
although the notarization budget is four hours.
Treat NSURLError timeouts, lost connections and unreachable hosts
(-1001, -1003, -1004, -1005, -1006, -1009) as lost contact in both
loops. Keep resuming the same submission, and retrying the staple, with
pauses capped at 120 s until the next pause would cross the existing
four-hour budget. A ticket that has not propagated yet keeps its own
five retries. Verdicts, authentication failures and other stapler
errors still fail at once.
sounddevice 0.5.6 (741357733f) ships all three Windows PortAudio DLLs
(32bit, 64bit, arm64, each with an -asio twin) inside every per-arch Windows
wheel; 0.5.5's win_amd64 wheel carried only the 64-bit pair. sounddevice.py
picks the DLL matching the interpreter (`sysconfig.get_platform()` arm64 or
`platform.architecture()`), so the foreign builds are inert, like discord.py's
paired opus DLLs. With the MakeAppx fix in place the signed Windows build got
past packaging and failed `Audit bundle architecture` on these 4 DLLs on both
win32-x64 and win32-arm64 (proof run 41414573197). Exempt exactly those names.
The webapp_build stage copied all of apps/ before running the recipe, so
any Desktop source change reran npm ci. build-webapp.mjs gains
`--deps-only` (prepareWebappWorkspace), and the stage runs it after
copying only the manifests and the recipe. The build after `COPY apps/`
reuses that install through the node-deps receipt.
The Webapp recipe installs Desktop's workspace, and node-deps prepared
Electron's binary for any install that selects apps/desktop. The browser
bundle never runs Electron, so prepareNodeDependencies now takes
`electron: false` and build-webapp.mjs passes it. Desktop builds keep the
default.
The errors probe faults the first fs.promises.open of each case with a
one-shot flag. A walk that rejects leaves the rest of its Promise.all
running, and on a loaded runner one of the EACCES walk's lstat callbacks
lands after the follow-up walk has finished. That straggler then makes
the first open under the EIO injector, takes the read fault, and the EIO
walk resolves cleanly: "Missing expected rejection" (main run
40322485575).
Each case now counts the failed walk's opens and waits until every file
has opened and closed before the next fault is armed, so the fault can
only reach the walk under test. The same wait keeps the EIO walk's
late-closing stragglers out of the concurrent walks' live/peak check.
The browser smoke opened a new tab for each of its four viewports and loaded the same input URL in
each. That URL is usually the one-use launch link `hermes webapp --no-open` prints, and the Webapp
keeps the grant the link buys in the sessionStorage of the tab that spent it. The first tab spent
the ticket, the second stopped at "This launch link was already used or has expired", and the smoke
failed on a Webapp that worked.
All viewports now run in one tab. The first loads the input URL; each later one resizes the tab,
leaves the previous page for about:blank and reopens the address the first one landed on, so the
tab's grant signs it in. Every viewport still gets a fresh page load and the same checks; console
errors, page errors and failed requests are counted against the load that caused them, and the HTTP
status is read for the address that load requested. The mobile browser-controls override is reset
before each load, since it now outlives its page.
The smoke script looked only for 'Desktop boot failed', so a Webapp showing 'Hermes couldn't
start' or the sign-in view passed. It reads both titles from en_boot.ts and fails naming the
screen.
The e2e spec starts the gateway through hermes webapp, runs a turn from a
real browser, keeps the tab signed in across a gateway restart, and checks
that sign-out cuts it off. The smoke script targets the Webapp's port.
Co-authored-by: Bear Huddleston <bear@bearhuddleston.dev>
Carried from BearHuddleston's #93508: the browser bridge and transport,
launch-session handling, touch and phone layout, browser previews, file
staging, the host terminal rail, Webapp settings pages and media ticket
renewal. Relay-only and fence-only code stays out.
Co-authored-by: emozilla <emozilla@nousresearch.com>