Repository navigation
Hush is the Rust core and the GPUI app: the Swift Mac app and its build are gone - #265
Merged
Merged
Conversation
The owner's decision: Hush is the Rust core plus the GPUI app on macOS, Windows and Linux. Removes app/ (the icon moves to core/desktop), the xcframework build (build-core.sh, uniffi-bindgen, sig-core's staticlib), the Makefile's Swift targets and legs, the hook's swift-format step and the Swift ignores. make run launches the GPUI app, make check is the Rust gate, and make perf measures the GPUI app, which logs the chat list's count as the Mac app did. README and CLAUDE.md describe the new shape.
…y a run failed log stream's header names the predicate, so the launch wait matched it at once and the cold launch was never measured (the Mac app's script had the same flaw). The wait now matches only the launched process's line, waits for a quitting Hush to stop, reports an app that exits with its stderr, and leaves Hush open when the chat list doesn't load. Review fixes to CLAUDE.md's snapshot command and a few comments.
Owner
Author
|
Review ( Critical / Important, fixed
Suggestions, taken
Declined
For the owner
|
This was referenced Nov 29, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The owner's decision of 2026-11-29: Hush is the Rust core plus the GPUI app (
core/desktop) on macOS, Windows and Linux. This removes the Swift Mac app and its build, and makesmake checkthe Rust gate.Removed
app/: the SwiftUI app (app/Hush), its XCTest suite (app/HushTests) andapp/project.yml. Its Info.plist and entitlement settings (bundle id, hardened runtime, microphone, Release stripping) stay readable in git history for The GPUI app ships on macOS as a signed Hush.app #264.scripts/build-core.sh(xcframework + UniFFI Swift bindings), thecore/uniffi-bindgencrate (only build-core.sh ran it) and its workspace entry,sig-core'scrate-type = ["staticlib", "lib"](the static library existed only for the xcframework; the app and the tests link the plainlib).Cargo.locklosesuniffi-bindgenandclap_derive, nothing else.core,project,appandreleasetargets (releasebuilt and installed the Swift Release app; The GPUI app ships on macOS as a signed Hush.app #264'smake bundlewill build the GPUI one), theXCB/XCB_FILTERvariables,desktop-run(nowrun), the swift-format legs offormatandlint, the XCTest leg andcore projectprerequisites oftest, andsetup'sxcodegenandrustup target add aarch64-apple-darwin(only build-core.sh's--targetbuild needed it)..githooks/pre-commit: the swift-format step..swift-formatand the Swift entries in.gitignore(app/Generated/,app/Frameworks/,app/Hush.xcodeproj/,app/Hush/Info.plist,app/Hush/Hush.entitlements,build/, which was Xcode's output; no checkout or worktree has one now).CLAUDE.md: the Swift-only stack rules (generated Swift bindings/xcframework, generated Xcode project, the Mac app's platform and Liquid Glass, the Mac app's signing) and the Swift commands.Moved
app/Hush/AppIcon.icon→core/desktop/AppIcon.icon(The GPUI app ships on macOS as a signed Hush.app #264 compiles the macOS bundle's icon from it).Changed
make runbuilds and launches the GPUI app (wasdesktop-run);make perfbuilds the release app and measures it;format,lint,testandcheckare Rust only.scripts/perf.shmeasures the GPUI app (core/target/release/hushby default): the executable's size; the cold launch until the chat list loaded; idle footprint and CPU as before. It quits a running Hush first (SIGTERM for the GPUI app, which quits as Quit does; the bundle id for an installed Hush.app) and waits until it's gone; it stops the one it launched when done. The launch wait matches only the launched process'sconversations: Nline:log stream's header names the predicate, so the oldgrep -q "conversations:"matched it at once and the cold launch was never measured (the Mac app's script had the same flaw; found in review). An app that exits is reported with its stderr; when the chat list doesn't load within 10 s, Hush is left open to show why. The GPUI app now logs that line (a count only) when it loads the chat list, as the Mac app did, and the core's log filter lets the app's (hush) info lines through (it let onlysig_core's through).build/; the Commands list is the new targets.core/rust-toolchain.toml,core/desktop/Cargo.toml(async-compat),core/desktop/src/main.rs's crate doc.Kept, and why
uniffiincore/sig-core(dependency,[workspace.dependencies]entry, attributes,error.rs's "surfaced to Swift" doc): the issue leaves its removal to a later issue.docs/: specs and plans stay as history.libsqlite3-sysoverride stays non-Apple only),tracing-oslogandlibcfor Apple targets, RingRTC'sprebuilt_webrtc,[profile.release](thin LTO, stripped) and itsbuild-overrideguard (rustc/Xcode linker, applies to any release build on macOS).DESIGN.mdandPRODUCT.md: they describe the Mac app's design (macOS 26, Liquid Glass); the issue doesn't list them, so whether they're rewritten for the cross-platform app is left to the owner.SHELL := /bin/bash -o pipefailin the Makefile:helpstill pipes.How it was tested
make format: no changes.make check(nowcargo fmt --check,cargo clippy --all-targets -q -- -D warnings, the same with--features hush-desktop/snapshot,cargo test --features hush-desktop/snapshot -q): passes (344 core tests, 541 app tests).make desktop: builds. Snapshots:cargo run -p hush-desktop --features snapshot -- --snapshot <scratch dir>rendered all 84 PNGs (42 screens, light and dark); looked at the chat and About screens, unchanged (About still shows "core 0.1.0").make helplists the new targets;make -nofsetup,desktop,run,perf,format,lint,test,check,worktree,updateandcardprints the expected commands;make updateandmake cardran for real.scripts/perf.sh:bash -n; its failure paths ran with stand-in executables (one that exits at once is reported with its stderr; one that never logs times out after the wait and is left running); the line match was checked against a reallog streamheader (ignored) and a realconversations: 0line from the app's window tests (matched only for its own PID). Not run end to end: it needs a linked GPUI app (this Mac's isn't linked until On macOS the GPUI app takes over the Mac app's data, so nothing needs relinking #263) and opens its window. A release build that isn't signed may get a keychain prompt after each rebuild until The GPUI app ships on macOS as a signed Hush.app #264's signed bundle; the script then times out with that hint.Closes #262