20 Commits
Author SHA1 Message Date
Dax a8e00135d8 CI is minimal: pull requests compile, dev pushes run no checks, full suites in Release's check and stable (#923) 2026-11-01 16:11:07 -05:00
Dax f9ab7b5a9c Security: sign Linux releases, lock the installers, vendor the release client, pin actions and download hosts (#370)
From the 2026-10-29 security review:
- H1: Release signs each Linux executable with Anomaly's ed25519 key (HEX_RELEASE_SIGNING_KEY, .github/release/sign-linux.sh, which refuses a key that does not match linux-signing.pub) and publishes the signature as the linux-<arch>-sig target. The updater (updater/linux.rs SIGNING_KEY) and install-linux.sh refuse an executable without a valid signature over its SHA-256, before downloading it. Installed builds that predate this ignore the extra target, so the transition needs nothing from them.
- H3: the installers move to the locked .github/release/ (CODEOWNERS @thdxr); the Installers workflow publishes them from a sparse checkout of that directory.
- M1: the release service client is vendored as .github/release/release-client.sh instead of piping anoma.ly/release/client.sh into bash.
- M2: check-windows.yml gets permissions: contents: read; every third-party action is pinned by SHA.
- M3: resolve_url accepts only URLs on the manifest's host.
2026-10-29 11:06:30 -04:00
Dax 3434eb5f35 Rename voice-control to hex everywhere, without migrations (#293)
* Rename voice-control to hex everywhere, without migrations

The Cargo package and binary are now hex, every OS keeps its data in a
hex folder, and VOICE_CONTROL_* variables are HEX_*. Hex is a fresh
app: the macOS voice-control rename, its symlink, and the Windows and
Linux beta settings imports are gone. The Windows installer gets a new
AppId so it never takes over an old voice-control install's entry.

* Format

* Drop the Windows paste-last default only the beta import used
2026-10-28 13:08:44 -04:00
DS d29ffcfdc5 ci: build the Nix check on every core, skip draft PRs, keep every dev run (#285)
The Nix job built the release package and ran its tests on one core, taking
25-40 minutes; every other check finishes in 6-12. It now uses all of the
runner's cores. The derivation and the tests it runs are unchanged.

Draft pull requests no longer run the checks; marking one ready runs them.

Pushes to dev no longer cancel each other's runs, so every dev commit gets a
result. A new push to a pull request still cancels its stale run.
2026-10-28 09:51:33 -04:00
Kit Langton bbf3c1d941 Check Linux: allow manual dispatch and keep it out of the push concurrency group 2026-10-27 11:09:09 -07:00
Kit Langton ef6fe3df10 Import Scrawl's router crate
Copies crates/router (crate scrawl-router) from kitlangton/scrawl, branch
routing/jev, at 24797c0 (24797c0ae598d1ff4fd44d3395fbceab52740f66), with no
history. Hex becomes a workspace with the router as a member; nothing in Hex
depends on it yet, and plain cargo commands still select only Hex.

Changes from the source:
- rustfmt, and thirteen fixes for lints the newer clippy reports
  (sort_by_key, as_chunks, a collapsed if, and similar).
- The replay fixtures and tests use synthetic session IDs (same shape and
  order), /Users/example, a placeholder tailnet name, com.example bundle
  IDs, and neutral names for private projects and session titles.
- OpenCode's database is no longer looked for in a private profile folder;
  $OPENCODE_DB, the running server, and ~/.local/share/opencode remain.

scripts/check lints and tests the whole workspace, Check Linux runs the
router's tests and clippy, both check workflows watch crates/, and the Nix
source includes crates/.
2026-10-25 15:07:14 -07:00
Kit Langton 0ed8354414 Move to dev and production branches
Work lands on dev, the default branch. production holds what was released
(app-v2.3.1) and moves only by a fast-forward from dev. Pushes to dev run the
checks, test builds, and the dev site deploy; stable releases run only from
production or an app-v tag, and the TypeScript SDK's version pull request
targets dev while publishing waits for production.
2026-10-25 06:46:14 -07:00
Kit Langton 7c180101bf Add scripts/check with nextest timeouts; make hanging tests deterministic
scripts/check runs fmt, clippy and nextest (falls back to cargo test).
.config/nextest.toml kills a test after 30 s (60 s for GPU scenes) and
reports it by name; CI uses the ci profile.

Fixes tests that hung or depended on the host: HID modifier queries and
Carbon layout lookups off the main thread, the leaked i18n language,
the stale 2.3.0 driver version, CoreAudio in the startup-failure test,
unbounded accept/recv waits, a 20 ms sleep race in local_api, and
keyboard_layout under --list.
2026-10-23 20:03:00 -07:00
Kit Langton 2116c067e8 Bump Rune: per-line alignment for wrapped text, single-line text fields
Upload Linux renders that miss their goldens so they can be inspected.
2026-10-23 01:09:18 -07:00
Dax Raad e832fc965f refactor: remove GPUI; Rune is the only UI
Drop the rune-ui feature and the --ui flags, and delete app_window and its
OS modules, desktop_ui, design_tokens, text_input, motion,
desktop_transcription_picker, windows_ui, the GPUI Windows HUD, the GTK
Linux HUD, the GPUI meeting capsules and app lifecycle, hex preview,
capture-preview.sh, the GPUI fork patch, and the dead code they left.

Pure helpers move to opencode_catalog, HotkeyBinding::standalone_side,
desktop_activity::event_summary, and the panes that own them. The macOS
Metal HUD keeps its springs in spring.rs. gio/glib replace gtk.
2026-10-22 17:12:11 -04:00
Dax Raad 9b54e3859a build(rune-ui): depend on public Rune over HTTPS
Rune is public under MIT with a fresh history; pin its new root 7eea3a3
over https, drop the SSH-only git-fetch-with-cli, add Rune's Nix output
hash, run clippy and the rune_ui tests in Check Linux, and run the check
workflows on rune-ui pushes. docs/plans/rune-dependency.md records why.
2026-10-22 14:54:27 -04:00
Dax Raad 1577c19b52 feat(linux): portal shortcuts and hex commands replace raw Wayland input
Wayland shortcuts no longer read /dev/input. One state machine in
linux_input now serves every source:

- X11: the existing key grabs, with auto-repeat filtering split out and
  tested, and the inline gesture flags replaced by the shared rules.
- Wayland with the GlobalShortcuts portal: Register("hex"), one session for
  dictation, Paste Last, and Voice Action, and a second session that binds
  Escape (also with the held shortcut's modifiers) only while recording.
  Activated/Deactivated are press/release; refused shortcuts and the
  trigger the desktop actually granted show in Settings; a closed session
  cancels and stops the listener with an error.
- Everywhere: `hex dictation start|stop|toggle|cancel`,
  `hex voice-action start|stop|toggle`, and `hex paste-last` talk to the
  running service over its socket for desktops without the portal. They
  are idempotent, never start the service, and fail clearly when it is
  missing or not listening.

Settings records shortcuts from its own key events on Wayland too, lists
the granted triggers, or, without the portal, hides the shortcut rows and
lists the commands. Wayland paste no longer waits for held modifiers:
wtype's virtual keyboard sends its own, and the Wayland paste smoke now
pastes while another keyboard holds Ctrl and Alt.

Removes linux_wayland_input.rs, the evdev and udev crates, libudev-dev in
CI, and every input-group requirement from the docs. Also gates
AppWindowPreview::pane to macOS, whose only callers broke the Linux
Clippy build.
2026-10-22 01:13:07 -04:00
Kit Langton c4b3287d86 ci: check macOS and Linux when the Hex Microphone driver plist changes 2026-10-21 10:11:14 -07:00
Luke Parker 8f463e0768 build: replace the vendored gpui with a pinned fork, and fix the Nix package (#159)
* build: depend on a gpui fork instead of vendoring gpui

Replaces the 84k-line vendor/gpui from #156 with Hona/gpui, which is gpui 0.2.2 plus the one commit with the Wayland keymap fix, pinned by revision. Also adds sdk/commands, which the Linux build now embeds, to the Nix package source.

* build(nix): pin the gpui fork's source hash

* build(nix): give the test phase curl for OpenCode requests

* fix(linux): find curl on PATH when /usr/bin/curl doesn't exist, as on NixOS

OpenCode requests always ran /usr/bin/curl, which NixOS lacks, so Modes transformations and Voice Action failed there with 'opencode2 is not installed'. macOS keeps the fixed system path.

* test: run sleep from PATH, which the Nix build sandbox provides
2026-10-19 17:42:08 +10:00
Luke Parker 87830735e6 ci: run the Linux and macOS checks when vendored crates change (#158) 2026-10-19 16:23:10 +10:00
Kit Langton 929cee7ca6 chore(deps): update app, SDK, website, and CI dependencies (#115)
* chore(deps): update compatible Rust dependencies

* chore(deps): update rubato, dirs, base64, ed25519-dalek, and x11rb

* chore(deps): update Effect 4.0.0, Vitest 5, and Changesets 3 in the SDK workspace

* chore(deps): update website dependencies

* ci: update GitHub Actions to current major versions

* chore(deps): hold libc at 0.2.189 for gpui's Linux xattr dependency
2026-10-02 17:09:39 -07:00
Kit Langton 0d31fc3864 fix(ci): install libudev development files for Linux builds 2026-09-14 20:43:01 -07:00
Dax Raad 9a11b5fc72 feat: run Linux dictation as a user service 2026-09-04 20:14:13 -04:00
Kit Langton f556f9b660 fix(nix): include integration test sources in package
Cargo validates the declared keyboard_layout target during package builds. Include tests in the Nix fileset so the isolated source contains every manifest target, and trigger Linux checks for all test changes.
2026-09-01 21:09:58 -04:00
Kit Langton be9c368a00 feat(linux): add wlroots Wayland support and Nix packaging (#36)
* feat(linux): add wlroots Wayland support and Nix packaging

* fix(linux): preserve pending status and verify native coexistence

* test(linux): verify real dictation through a virtual microphone

* test(linux): bound smoke cleanup and check microphone release

* test(linux): isolate installer XDG paths from the host

* test(linux): exercise the desktop dictation lifecycle

* refactor(linux): simplify worker completion and input snapshots
2026-08-28 12:05:21 -04:00