Commit Graph
51 Commits
Author SHA1 Message Date
Jinwoo-HandOrca 7cd14a6506 Merge origin/main into Jinwoo-H/mobile-ui-polish
Resolved conflicts across shared settings, preload APIs, runtime RPC, and
the experimental settings pane. Kept both the Mobile Pairing feature (HEAD)
and the Sidekick feature (main) as sibling experimental entries, with
Orchestration shifting to index 3 in EXPERIMENTAL_PANE_SEARCH_ENTRIES.

Extracted HiddenExperimentalGroup and SupportedAgentsDisclaimer from
ExperimentalPane.tsx into their own files to stay under the 400-line
oxlint cap after the merge increased the file size.

In pane-tree-ops.ts, kept main's PR #1298 WebGL reattach logic (moved to
pane-split-scroll.ts) and dropped HEAD's inline pendingSplitScrollState
workaround. Kept the mobile-fit-override lookup from HEAD.

In runtime-rpc.ts, kept main's sweepOrphanedRuntimeSockets startup call
alongside HEAD's WebSocket transport. Renamed singular transport field
to transports array in runtime-metadata.test.ts fixtures.

In orca-runtime.ts, merged main's getEffectiveHooks(repo, worktreePath)
signature with HEAD's setupDecision/shouldRunSetupForCreate logic.

In pty.ts, preserved HEAD's semantics of notifying runtime?.onPtyData
before the isDestroyed() check so mobile clients still receive data when
the desktop window is closed.

Co-authored-by: Orca <help@stably.ai>
2026-05-03 16:02:32 -04:00
Neil 8ae119558b fix: simplify release pipeline (#1362) 2026-05-02 14:17:21 -07:00
NeilandOrca 74a7a3c790 fix(release): grant actions:write on callers of release.yml (#1341)
release.yml's publish-release job got `actions: write` in f6cc2aee so it
can dispatch homebrew-bump.yml, but reusable-workflow permissions are
capped by the caller. release-cut.yml and release-rc.yml only listed
`contents: write`, so the first cut after f6cc2aee died with
startup_failure (run 25244518794) before any job could start.

Grant `actions: write` on both callers to match what release.yml needs.

Co-authored-by: Orca <help@stably.ai>
2026-05-01 22:34:26 -07:00
NeilandOrca f6cc2aee92 fix(release): grant actions:write + drop broken auto-merge on tap (#1336)
Two bugs surfaced on the v1.3.26 release:

1. release.yml's new `Trigger Homebrew cask bump` step failed with
   HTTP 403 "Resource not accessible by integration". The publish-release
   job's permissions block only listed `contents: write`, but
   POST /actions/workflows/:id/dispatches requires `actions: write` on the
   scoped-down GITHUB_TOKEN. Added the permission.

2. Even when the bump workflow does run, its `gh pr merge --auto` was
   silently no-op'ing against the homebrew-orca tap, leaving bump PRs
   open. `--auto` only activates when there's a required check or
   branch-protection rule to wait on; the tap intentionally has neither.
   Switched to a direct squash-merge so the tap stays hands-free as
   originally intended.

Co-authored-by: Orca <help@stably.ai>
2026-05-01 20:24:41 -07:00
NeilandOrca 6303bdb50f fix(release): recover orphan tags instead of hard-failing the cut (#1335)
If a cut pushes the tag but the workflow is cancelled (or the dependent
release.yml job otherwise fails to start) before a GitHub release is
published, every subsequent patch cut recomputes the same version and
dies on "Tag already exists." This wedged the pipeline on 2026-05-01
when v1.3.26 was pushed by cancelled run 25237882049 — patch cuts kept
failing for hours until release.yml was dispatched by hand.

When the tag exists but no published release is attached, skip the
bump/push steps and emit the existing tag as the job output so
release.yml runs against it and finishes what the prior attempt
started. Still refuse the collision when a real published release
exists — that's a genuine conflict (e.g. a hand-tagged version) and
needs human attention.

Co-authored-by: Orca <help@stably.ai>
2026-05-01 20:13:46 -07:00
NeilandOrca 48d7e20493 fix(release): dispatch Homebrew cask bump from release pipeline (#1315)
Co-authored-by: Orca <help@stably.ai>
2026-05-01 12:21:53 -07:00
NeilandOrca ff22944fd7 feat(release): publish Orca as a Homebrew cask (#1304)
Co-authored-by: Orca <help@stably.ai>
2026-05-01 00:33:21 -07:00
Jinwoo-HandOrca 97a0c501c3 Fix CI: mobile.yml .nvmrc reference, typecheck errors, and test mock gaps
- mobile.yml: update node-version-file from .nvmrc to package.json
- orca-runtime.test.ts: add missing sleepWorktree and
  terminalFitOverrideChanged to RuntimeNotifier mock
- pane-tree-ops.ts: cast to ManagedPaneInternal for internal property
  access in safeFit
- pane-fit-resize-observer.test.ts: add dataset to container mock so
  safeFit's override lookup doesn't throw
- mobile-subscribe-integration.test.ts: remove unused destructured vars

Co-authored-by: Orca <help@stably.ai>
2026-04-30 18:15:54 -04:00
Jinwoo-HandOrca 78b3069bec ci: convert mobile build to tag-based release workflow
Trigger on mobile-v* tags instead of main pushes. Builds a release APK,
uploads as artifact, and creates a GitHub Release with the APK attached.
Manual dispatch still available for on-demand builds.

Co-authored-by: Orca <help@stably.ai>
2026-04-30 18:03:54 -04:00
Jinwoo-HandOrca d9801ac8bc ci: move Android APK build out of PR gate into dedicated workflow
The full Gradle build is heavy for every PR push. Keep only typecheck +
lint as the PR gate; run the APK build on main pushes and manual dispatch.

Co-authored-by: Orca <help@stably.ai>
2026-04-30 18:03:54 -04:00
Jinwoo-HandOrca 7740bf7ef8 feat(mobile): add streaming RPC tests and GitHub Actions CI workflow
- 7 unit tests for RpcDispatcher streaming: scrollback emit, live data
  chunks, unsubscribe cleanup, one-shot fallback, error handling
- GitHub Actions workflow for mobile: typecheck + lint on PR, Android
  debug build with JDK 17 (temurin)

Co-authored-by: Orca <help@stably.ai>
2026-04-30 18:03:22 -04:00
NeilandOrca 4318f3bfa7 chore: reduce root-directory clutter (#1275)
Co-authored-by: Orca <help@stably.ai>
2026-04-30 00:09:46 -07:00
Brennan BensonandOrca 3a138a2f07 ci: stabilize pnpm native addon install in PR checks (#733)
Co-authored-by: Orca <help@stably.ai>
2026-04-29 14:29:24 -07:00
Jinwoo HongandOrca c9391e203f feat(orchestration): add inter-agent orchestration system (#1188)
Co-authored-by: Orca <help@stably.ai>
2026-04-28 12:21:31 -07:00
Brennan BensonandOrca 812ca5488b fix(preload): collapse index.d.ts into type-checked api-types.ts (#1197)
Co-authored-by: Orca <help@stably.ai>
2026-04-27 21:46:17 -07:00
NeilandOrca 4ad1458fad fix(release): derive prerelease state from tag shape, not release flag (#1187)
Two interacting bugs produced v1.3.1-rc.4 today:

1. release-cut.yml used `gh release list --exclude-pre-releases` to
   find latest_stable. That filter checks the GitHub `isPrerelease`
   flag, which had been flipped to `false` on several RC releases
   (including v1.3.22-rc.2 and v1.3.1-rc.3). The query returned an
   RC tag, and bump() then silently mis-parsed `1.3.1-rc.3` via
   `Number("1-rc") = NaN` -> `(NaN||0)+1 = 1`, yielding base=1.3.1.

   Fix: filter by tag shape (no `-rc.`) in jq so an RC tag can never
   be treated as stable, regardless of metadata. Also strip any
   prerelease suffix in bump() and semver_gt() so the numeric math
   is robust even if a caller passes a dirty input.

2. release.yml's final publish step only ran `--draft=false`, leaving
   the `prerelease` flag at whatever electron-builder last wrote. When
   that flag ended up false on an RC, GitHub marked the RC as the
   "latest" release.

   Fix: re-assert `--prerelease=<derived from tag>` alongside
   `--draft=false` so the final state is a function of the tag name,
   not of any intermediate publisher behavior.

Co-authored-by: Orca <help@stably.ai>
2026-04-27 13:49:41 -07:00
JinjingandOrca 6d2212c068 chore: remove pr-size-labeler workflow and config (#1177)
- chore: remove pr-size-labeler workflow and config

Co-authored-by: Orca <help@stably.ai>
2026-04-27 10:11:21 -07:00
NeilandOrca aac395dbff fix(release-cut): anchor RC base to latest_stable + patch (#1163)
The rc branch previously derived the base version from the highest
git tag, which reopened an already-shipped series: after v1.3.21
stable was published, cutting an RC still produced v1.3.21-rc.N.
Anchor RCs to latest_stable + patch so a fresh RC after v1.3.21
correctly resolves to v1.3.22-rc.0. Minor/major RCs are cut by
running that stable kind first, which is a clearer workflow than
the old heuristic.

Co-authored-by: Orca <help@stably.ai>
2026-04-27 00:09:27 -07:00
NeilandOrca 6d585e821e ci: cache electron + electron-builder tool downloads on release (#1110)
electron-builder fetches the Electron binary and its platform tools
(notarytool, winCodeSign, nsis, squirrel, AppImage) on every run.
Cache those per-platform so repeat releases skip the re-download.
Saves ~30-90s per job, including the macOS long pole.

Key includes pnpm-lock.yaml so a bump to electron/electron-builder
invalidates stale cached binaries; restore-keys falls back to the
latest per-platform cache in between lockfile changes.

Co-authored-by: Orca <help@stably.ai>
2026-04-25 21:30:52 -07:00
NeilandOrca eeffbf0a73 ci: cache pnpm store on release + centralize node version in .nvmrc (#1106)
Co-authored-by: Orca <help@stably.ai>
2026-04-25 19:03:05 -07:00
NeilandOrca 3f8ebb258d ci: remove pr-size-labeler backfill workflow (#1103)
The action refuses to run unless GITHUB_EVENT_NAME=="pull_request",
so workflow_dispatch no-ops. Backfill was completed out-of-band via
a local script calling the REST labels endpoint; this one-off
workflow is no longer useful and is being deleted.

Co-authored-by: Orca <help@stably.ai>
2026-04-25 17:40:26 -07:00
NeilandOrca 64c77d735a ci: add one-off workflow to backfill size labels on open PRs (#1102)
A manually-dispatched workflow that fans out across all open PRs and
runs the size labeler against each. This is a one-time verification
of the labeler against the existing PR set; the workflow will be
removed in a follow-up after it runs.

Co-authored-by: Orca <help@stably.ai>
2026-04-25 17:30:44 -07:00
NeilandOrca b96dc93d72 ci: auto-label PRs by size via cbrgm/pr-size-labeler-action (#1101)
Adds a GitHub Actions workflow and config that labels every PR with
size/xs..size/xl based on files changed and lines added, so reviewers
can see at a glance how big a PR is. Lock files and generated/vendored
paths are excluded, and deletions aren't counted so refactors that
remove code aren't over-penalized.

Co-authored-by: Orca <help@stably.ai>
2026-04-25 17:20:42 -07:00
Neil 2a71ee6fd0 Add community PRs directly to project (#1052) 2026-04-24 13:50:10 -07:00
Neil 2b950a66ac Add community PR project tracking workflow (#1030) 2026-04-24 13:33:18 -07:00
Neil e2886ef3fe chore(release): expose patch/minor/major as Cut Release kinds (#999)
Replaces the `stable` + optional `version` inputs with explicit
`rc | patch | minor | major` choices. Stable kinds are always computed
off the latest published stable release (ignoring intermediate RCs), so
there's nothing to type and no way to pick a version that regresses
electron-updater.

The stable-must-strictly-increase guard stays in place for patch/minor/
major. RC behavior is unchanged — continues an active series or starts
a new one on the next patch.
2026-04-23 11:11:46 -07:00
Neil c4a6701d9f chore(release): move release cutting to a Cut Release workflow (#972)
Replaces the local `pnpm release:{rc,patch,minor,major}` scripts with a
single manually-dispatched GitHub Actions workflow (`release-cut.yml`)
that takes `kind` (rc|stable), an optional `ref`, and an optional explicit
`version`.

Why: cutting releases locally was too easy to get wrong — `npm version
prerelease` behaves differently depending on whether the current version
is already an rc, there was no guard against tagging a dirty tree or an
off-main branch, and the "bad commit just landed, release the previous
one" case had no first-class answer. The new workflow:

- Resolves the next version automatically from GitHub Releases (or takes
  an explicit override).
- Refuses to cut a stable release whose version isn't strictly greater
  than the latest published stable. This is the only invariant
  electron-updater needs within the `latest` channel.
- Only fast-forwards `main` with the version-bump commit when the caller
  released the tip of `main`. Off-main releases publish only the tag, so
  main is never polluted by a one-off RC against a feature branch.

CONTRIBUTING.md now documents the new flow with the common scenarios
(normal release, bad-commit-revert-to-previous-SHA, one-off RC, explicit
minor/major). The scheduled RC cron in release-rc.yml is untouched.
2026-04-22 23:20:04 -07:00
Jinjing 00fdb8e8cc ci: check out PR head instead of merge ref in e2e workflow (#940)
The e2e reusable workflow defaulted to github.ref, which on
pull_request events is refs/pull/N/merge. GitHub does not compute
that ref when the PR has conflicts or before the merge commit is
ready, causing actions/checkout to fail with "couldn't find remote
ref refs/pull/N/merge" for reasons unrelated to the code.

Pass github.event.pull_request.head.sha from pr.yml so e2e checks
out the PR head directly.

Motivating failure: https://github.com/stablyai/orca/actions/runs/24768962365
Seen on #937.
2026-04-22 09:59:27 -07:00
Brennan Benson 660b5f4149 ci: run E2E tests on every PR, surface on release (non-blocking) (#842) 2026-04-19 13:48:27 -07:00
Jinjing 1f1c66e59a ci(release): retry electron install/publish on transient CDN failures (#809)
Wrap the dependency install and release-artifact publish steps with
nick-fields/retry@v3 so GitHub CDN 504s don't require a manual
re-run of the release workflow.
2026-04-18 17:57:27 -07:00
Neil 93ede4807a Skip delayed RC schedules outside target PT hours 2026-04-17 15:29:31 -07:00
Neil 3cd49fd11f Run RC releases directly from the scheduler 2026-04-15 15:09:00 -07:00
Neil 88f03af594 Skip duplicate RC retries within same PT hour 2026-04-14 15:17:25 -07:00
Neil 3028ded572 Add dry-run path for RC release workflow 2026-04-14 15:15:55 -07:00
Neil 95db2fd11f Harden RC release schedule against dropped cron runs 2026-04-14 15:14:43 -07:00
Neil c37aa664bc Use timezone-aware RC release schedule 2026-04-14 12:39:47 -07:00
Neil edad6b8e98 Add scheduled RC release workflow 2026-04-14 12:27:50 -07:00
Jinwoo Hong 586ae52c7f fix: scope macOS signing secrets to mac-only CI step (#647) 2026-04-14 14:50:07 -04:00
Jinwoo Hong cc66e120eb feat: Add SSH remote support (beta) (#590) 2026-04-13 19:23:09 -07:00
Neil 5d12a723cf Align issue OS labels with repo labels 2026-04-13 12:05:24 -07:00
Neil 6c25f104a1 Add GitHub issue forms for Orca 2026-04-13 12:04:30 -07:00
Neil b2c31b6536 speed up release workflow (#584) 2026-04-13 00:25:30 -07:00
Neil a80d8400cc fix release workflow artifact collection (#581) 2026-04-12 23:57:29 -07:00
Neil 424ceea07e Speed up release workflow (#579)
* speed up release workflow

* fix lint in manifest merge helper

* remove release preflight gate

* update CI to node 24
2026-04-12 23:41:44 -07:00
Jinjing ee7ac0cbc0 fix(ci): use github format for oxlint to show filenames in lint errors (#287)
The default oxlint output buries filenames in multi-line blocks, making
CI errors like "File has too many lines" hard to diagnose. The github
format produces ::error annotations with file paths front and center.
2026-04-03 23:30:23 -07:00
JinjingandNeil 414b761e19 fix(mac): improve macOS release tagging (#284)
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-04-03 23:07:44 -07:00
Jinwoo Hong 182ba156dd Add Orca runtime CLI and bundled install support (#273) 2026-04-03 16:50:28 -07:00
NeilandClaude Opus 4.6 27b29a0f8d fix: make release publish atomic to prevent update 404s (#112)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 00:02:31 -07:00
Jinjing 9c5a1f48bb Add PR checks workflow and Vitest coverage (#97) 2026-03-24 20:53:38 -07:00
Neil 9de1eb4318 Terminal fixes, sort fixes, flashbang fix 2026-03-21 14:44:45 -07:00