Skip to content

feat(desktop): draw @hanzo/app 0.3.107, the shell hanzo.app runs - #10

Merged
Darkhorse7stars merged 1 commit into
mainfrom
feat/app-0.3-shell
Nov 21, 2026
Merged

Darkhorse7stars merged 1 commit into
mainfrom
feat/app-0.3-shell

Conversation

@Darkhorse7stars

@Darkhorse7stars Darkhorse7stars commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Part of hanzo-inc/app#315 and hanzo-inc/app#311.

Hanzo Desktop drew @hanzo/app 0.2.63, so the folded rail's captions (hanzo-inc/app#315), the short device and shell names with Rename (hanzo-inc/app#311), and pinned sidebar items never reached the window. This moves the window to 0.3.107, the shell hanzo.app runs, with the same stack hanzo-inc/app's catalog pins.

Stack

package was now
@hanzo/app 0.2.63 0.3.107
@hanzo/ai 0.6.24 0.7.0
@hanzo/ui 8.29.45 8.33.6 (with hanzo-inc/app's patch)
@hanzo/build 0.2.99 0.2.130
@hanzo/studio 0.1.8 0.1.15
@hanzo/design / event / iam / appearance 0.5.38 / 0.3.66 / 0.21.41 / 0.2.13 0.5.44 / 0.3.69 / 0.21.42 / 0.2.15
@hanzo/i18n (hoisted) 0.6.1, declared
@hanzo/tabs 0.1.7 hanzo-inc/tabs@26a30cbc (0.1.17, the commit hanzo-inc/app's lock holds; npm stops at 0.1.7, under 0.3's floor of 0.1.8)

The @hanzo/app patch, rebuilt for 0.3.107

Kept, because 0.3 does not do it:

  • A signed-out window chats with the local engine through the signed-in lane. 0.3 sends a visitor's turn to /v1/chat/public as enso, without the conversation, for a few turns, then asks for a sign-in. Here sendAnon queues the turn instead, so the whole conversation, the picked local model and any pictures reach the window's fetch bridge (host.tsx) as they did on 0.2.
  • Pictures and text files a signed-out reader attaches are read in the window (pane.js). A failed turn offers Select / Download Local Model and Manage Local Node.
  • The shortcut list names the window's ⌘N and ⌘⇧M. Google Workspace stays off in the window.

Dropped, because 0.3 has it or replaces it:

  • the rail's More menu (Bot, Team, Market, Studio)
  • the in-app upgrade dialog and pricing
  • the usage banner
  • Setup's GitHub fixes
  • ⌘K's defaultPrevented
  • the guest guards on lists

@hanzo/build 0.2.130 already carries its patch. Studio's patch applies to 0.1.15 unchanged.

The window's side

  • Bar is now Titlebar. Its controls slot holds the Local AI button. It also keeps 0.3's own minimise/maximise/close off Windows and Linux, which keep the native title bar.
  • ⌘N (new chat) and ⌘⇧M (microphone) are handled by the window (windowKey), since 0.3 binds neither.
  • The bundled window opens on /index.html. 0.3's Gate only treats /chat as Chat for a guest, so that address is renamed /chat at start.
  • Folded, 0.3 sizes the bar's start to the rail, so Back and Forward sat over the page title. The start now takes the width the macOS inset and marks need.

Version gate

f7b0bac set Cargo.toml to 1.1.57 and made build.rs require it to equal package.json. scripts/version.sh still required 0.0.0, which turned main's CI red. It now checks equality.

Testing

  • pnpm typecheck: clean.
  • pnpm test: 19 files, 191 tests pass.
  • vite build (build:ci): succeeds.
  • scripts/version.sh check passes on a branch and with GITHUB_REF_TYPE=tag GITHUB_REF_NAME=v1.1.57.
  • The window's front end, served by Vite and opened signed out:
    • / becomes /chat.
    • "Continue without login" opens Chat.
    • The folded rail reads Chat, Dev, Library under its marks (rail-caption).
    • The expanded sidebar is labelled, with Local AI in the bar.
    • A message goes down the local lane: with no local model running, the Local AI manager opens, and the failed turn offers the local engine and Try again (no sign-in gate).
    • Dev opens with a local model picked.
  • Not checked here: signed-in device names (they need an account).

Risk

  • Signed-out chat now depends on patched Chat.js and pane.js. A later @hanzo/app bump has to carry the patch again. It fails loudly: pnpm refuses an unapplicable patch, and the tests read the patched files.
  • Light mode still puts light text on the dark window skin (app.css). This change does not affect that.

How to revert

Revert the squash commit. That restores 0.2.63 and its patch; the lockfile reverts with it.

The window drew @hanzo/app 0.2.63, so the rail's captions (hanzo-inc/app
issue 315), short device and shell names with Rename (issue 311) and pins
never reached it. It now pins the stack hanzo-inc/app's catalog does:
@hanzo/app 0.3.107, ai 0.7.0, ui 8.33.6 (with that repo's patch), build
0.2.130, studio 0.1.15, design 0.5.44, event 0.3.69, iam 0.21.42,
appearance 0.2.15, i18n 0.6.1, and @hanzo/tabs at the hanzo-inc/tabs
commit its lock holds (npm stops at 0.1.7, under 0.3's floor of 0.1.8).

The 0.2.63 patch is rebuilt for 0.3.107 with only what 0.3 lacks:
- A signed-out window chats with the local engine through the signed-in
  lane. 0.3 sends a visitor's turn to /v1/chat/public as enso, alone,
  for a few turns and then asks for a sign-in; here `sendAnon` queues the
  turn instead, so the whole conversation, the picked local model and
  any pictures go to the window's fetch bridge as before.
- Pictures and text files a signed-out reader attaches are read in the
  window (pane.js), and a failed turn offers Select / Download Local Model
  and Manage Local Node.
- The shortcut list names the window's ⌘N and ⌘⇧M; Google Workspace
  stays off in the window.
The rest of the old patch is in 0.3 or replaced by it (the rail's More,
the in-app upgrade, usage banners, Setup's GitHub fixes, ⌘K's
defaultPrevented), so it goes. @hanzo/build 0.2.130 carries its patch.

The window's own side: `Bar` is `Titlebar`, whose `controls` slot holds
Local AI (and keeps 0.3's own window buttons off Windows and Linux, which
have the native title bar). ⌘N and ⌘⇧M are the window's (windowKey),
since 0.3 binds neither. The bundled window opens on /index.html, which
0.3's Gate does not treat as Chat, so it is renamed /chat at start. Folded,
0.3 sizes the bar's start to the rail and Back and Forward sat over the
page's title; the start now takes what the inset and marks need.

version.sh: Cargo.toml now repeats package.json's version (f7b0bac and
src-tauri/build.rs require it), so the drift gate checks equality rather
than 0.0.0, which turned main red.

Testing: pnpm typecheck; pnpm test (19 files, 191 tests); vite build;
scripts/version.sh check on a branch and as tag v1.1.57; the window drawn
signed out in a browser: the folded rail reads Chat, Dev, Library, a
message goes to the local lane and its failure offers the local engine.

Part of hanzo-inc/app#315 and hanzo-inc/app#311.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Darkhorse7stars
Darkhorse7stars merged commit 802c5ae into main Nov 21, 2026
5 checks passed
@Darkhorse7stars
Darkhorse7stars deleted the feat/app-0.3-shell branch November 21, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant