Commit Graph
23565 Commits
Author SHA1 Message Date
Neil 79781e805c feat(cloud): TEAM-SHARING hold: TEAM_SHARING (default off) refuses sharing with the team and makes stored team workspaces act private 2026-11-16 00:50:25 -08:00
Neil 17e7b447d3 Merge pull request #820 from nwparker/cloud/git-actor-line-2
fix(cloud): GH-ACTING-LINE read the workspace's githubActing / you (#817)
2026-11-16 00:22:43 -08:00
Neil 88de553dd5 fix(cloud): GH-ACTING-LINE reads the workspace's githubActing / you (#817's shape)
#818 read a gitActor variant the control plane never shipped, so the line never showed.
- Source control and the people tooltip read githubActing / you from the workspace record
  (cloudWorkspaces.get, and the team live list for the people chip); no feature header.
- Reasons: window_expired -> 'no one has sent in the last hour'; no_sender_yet -> 'whoever sends
  next, or Orca bot'; sender_not_connected / reconnect -> 'Orca bot'; off / not_github -> nothing.
  Connect GitHub when you.connected is false (bot cases only).
- Removed #818's gitActor schema, client method, IPC and the git-actor header (the server doesn't
  read it).
2026-11-16 00:16:22 -08:00
Neil 459a675fe8 Merge pull request #817 from nwparker/cloud/git-coauthor
feat(cloud): co-author trailer for bot-fallback commits; acting GitHub identity for the UI
2026-11-16 00:16:08 -08:00
Neil fd28d22e11 Merge pull request #819 from nwparker/cloud/share-link-flag
feat(cloud): SHARE-LINKS-HOLD share links behind cloudShareLinks capability (off)
2026-11-15 23:54:13 -08:00
Neil 056e8f86d8 feat(cloud): SHARE-LINKS-HOLD cloud workspace share links off for this release (capability flag)
Neil: hold share links this release, keep the code. Every way to produce a link is behind the
account capability flag `cloudShareLinks` (capabilities.flags, the existing server-driven pattern),
so it's off unless the control plane turns it on:
- sidebar right-click Copy › "Link to W-n" / "Workspace link": hidden;
- the cloud workspace list's ⋯ "Copy link to W-n" and "Copy link to this chat/terminal": hidden;
- ⌘⌥⇧L: does nothing (global and in the list row), and is gone from Settings › Shortcuts and its
  search;
- copyCloudWorkspaceLink itself returns false with no clipboard write or toast, so the
  private-link toast (#815) can't be reached from anywhere.
Unchanged: opening incoming orca://cloud links, and Share with team / Make private (access, not
the link).
2026-11-15 23:47:42 -08:00
Neil 3506e06d38 Merge remote-tracking branch 'private/cloud/integration' into cloud/git-coauthor 2026-11-15 23:02:41 -08:00
Neil 4f2a5a2841 Merge pull request #818 from nwparker/cloud/git-actor-line
feat(cloud): GH-ACTING-LINE who pushes and PRs go out as (source control + people tooltip)
2026-11-15 23:01:48 -08:00
Neil ed56742681 fix: the git actor's background re-read pauses while the window is hidden 2026-11-15 22:55:08 -08:00
Neil a66b711d81 perf(cloud): GIT-ACTOR the workspace list reads grants, sends and GitHub connections once per request, not per row (one pure rule, pickActing) 2026-11-15 22:54:50 -08:00
Neil 8769dddccc fix(cloud): a device id claimed by more than one member maps to nobody in the VM's devices map (no last-wins attestation as another member) 2026-11-15 22:52:34 -08:00
Neil a541fcee3e feat(cloud): GH-ACTING-LINE who pushes and PRs go out as, in source control and the people tooltip
A cloud workspace's git acts as its solo owner, else the latest sender within the hour, else Orca's
bot; the control plane decides (#817's gitActor) and the desktop only says it, quietly:
- Source control, under Commit/Push: "Pushes and PRs go out as @login" / "as Orca bot" / "as Orca
  bot (no one has sent in the last hour)", with the approvals/merges caveat in its tooltip. The
  only place with an action: Connect GitHub, when it's the bot and the viewer isn't connected.
- The people chip: the same words as a second line in the acting member's avatar tooltip (the
  first avatar's when it's the bot). No new header chip.
- Read with feature `git-actor` from GET /v1/team/workspaces/:id (owner and members alike), one
  read per workspace shared by both places; re-read on focus, every 2 min, and when a shared
  workspace's hour lapses (`until`). Absent field (not GitHub, identities off, older control
  plane): nothing shown.
2026-11-15 22:52:32 -08:00
Neil bf0f77f791 feat(cloud): GIT-ACTOR as githubActing + you on the workspace view (list and detail), with the desktop wire schema 2026-11-15 22:51:11 -08:00
Neil d3bd6a8475 feat(cloud): GIT-ACTOR who pushes and PRs go out as right now, on GET status (owner) and GET team workspace (members), behind feature git-actor 2026-11-15 22:48:20 -08:00
Neil 9a770d4686 feat(cloud): GIT-COAUTHOR a commit that falls back to the workspace identity while a known member drove it carries Co-authored-by for them 2026-11-15 22:48:20 -08:00
Neil 9b3fad6ed5 Merge pull request #816 from nwparker/cloud/gh-wrapper-path
fix(cloud): GH-AS-MEMBER gh wrapper was shadowed by the real gh on PATH
2026-11-15 22:47:11 -08:00
Neil 443a05ac56 Merge pull request #815 from nwparker/cloud/share-link-ux
feat(cloud): SHARE-LINK-PRIVATE copy link on a private workspace offers Share with team
2026-11-15 22:41:37 -08:00
Neil 36303ac480 fix(cloud): GH-AS-MEMBER gh wrapper actually runs: the real gh moves off PATH (tools/gh/bin) and tools/bin/gh links to the wrapper; older images migrated at entry-point install 2026-11-15 22:37:07 -08:00
Neil 50abda16aa feat(cloud): SHARE-LINK-PRIVATE Copy link on a private workspace says teammates can't open it yet
Copy link (menu, ⌘⌥⇧L, the list) on a private cloud workspace used to say "Workspace link copied"
while a teammate opening it is refused. Now, still copied:
- private, you can share it (owner): "Link copied, but teammates can't open it yet" (warning
  tone) with Share with team, the same visibility change as the menu's Share with team, then the
  usual "Shared with your team" toast;
- private, someone else's: the same title, "Only its owner can share it with the team", no action;
- team-visible, or visibility unknown (no answer within the copy's lookup): unchanged, "Workspace
  link copied". A chat link says "Chat link copied, but…".
Visibility comes from the workspace identity cache (now keeps it) or the copy's own lookup.
2026-11-15 22:35:58 -08:00
Neil 9d369ff270 Merge pull request #812 from nwparker/cloud/gh-as-member
fix(cloud): GH-AS-MEMBER PRs, comments and pushes from a cloud workspace show as the member, not the bot
2026-11-15 22:31:29 -08:00
Neil f26bcb958f Merge pull request #814 from nwparker/cloud/tab-chip-delete-labels
fix(desktop): remove the W-number tab chip; delete dialog says Archive / Delete
2026-11-15 22:22:29 -08:00
Neil 42c102137a fix(desktop): drop the W-number chip from the tab bar; delete dialog reads Archive / Delete
- The cloud workspace's W-number chip (CloudWorkspaceNumberChip) is gone from the workspace tab
  bar and the titlebar strip; the component, its fixture and its two chip-only strings are
  deleted. Copying the workspace link stays on the sidebar's right-click Copy › Workspace link and
  ⌘⌥⇧L (cloud-workspace-links.ts), neither of which used the chip.
- Delete-workspace dialog buttons: "Archive instead" -> "Archive", "Delete workspace" -> "Delete"
  (same string in the cloud workspace list's confirm dialog).
2026-11-15 22:17:08 -08:00
Neil e994d835ba fix(cloud): GH-AS-MEMBER approve/merge path checks case-insensitive with optional trailing slash; an unread review body counts as an approval 2026-11-15 21:24:54 -08:00
Neil 3d96f7d720 fix(cloud): GH-AS-MEMBER approvals never as a member (any workspace); merges as a member only in a one-person workspace (incl. REST branch merges); approve event case-insensitive; shared cap default 60 min 2026-11-15 21:23:00 -08:00
Neil 67ab8991bf Merge pull request #813 from nwparker/cloud/connect-github-prompt
fix(settings): the GitHub row says pull requests and comments show as you too
2026-11-15 21:20:39 -08:00
Neil 730334b4f5 fix(cloud): GH-AS-MEMBER PRs, comments and pushes from a cloud workspace show as the member, not the bot
stablyai/orca#42960 (Neil, dev) was authored by orca-cloud-dev[bot]. Neil had connected GitHub; member
identities only reached git: gh ran on the workspace placeholder (the App's installation token), and
the Worker's member route on api.github.com allowed only REST under the repo while gh pr create is
GraphQL.

- VM: a gh wrapper runs gh with the attested sender's own placeholder (orcad attests, as for git);
  plain gh otherwise. Behind GH_AS_MEMBER=on (dev on).
- Worker, api.github.com with a member placeholder: the member's own token only for REST under the
  workspace repo and for allowlisted authorship mutations whose every target resolves to it
  (repositoryId equals its node id; other ids looked up with the installation token, cached per repo,
  failures not cached). graphql-js parse; variable defaults, owner-level projectIds, duplicate
  top-level keys and anything unexpected are not member requests. Everything else goes out on the
  installation token as before; an out-of-repo pinned mutation is refused with a GraphQL error.
- Shared workspaces never approve or merge as a member (GraphQL and REST): those go out on the
  installation token, so branch protection still applies.
- Identity rule: the only person who can use a workspace always acts; in a shared one the latest
  sender acts until another member sends, for at most MEMBER_GIT_SHARED_MAX_MINUTES (default 480).
- A GitHub connect or disconnect mid-session reaches the running VM's identities now.
- Tokens never enter the VM.
2026-11-15 21:18:00 -08:00
Neil bcc7a567c8 fix(settings): the GitHub row says pull requests and comments show as you too
GH-AS-MEMBER (#812): a connected member's PRs, comments and pushes from cloud workspaces now show as
them, not only commits. The settings row's connect and disconnect copy says so.
2026-11-15 21:14:13 -08:00
Neil 2a21ea6646 Merge pull request #811 from nwparker/cloud/create-gh-connect
feat(cloud): CREATE-GH-IDENTITY connect-your-GitHub line in the create wizard
2026-11-15 21:10:40 -08:00
Neil 19ceb2b61d Merge pull request #810 from nwparker/cloud/browser-public-direct
fix(cloud): CLOUD-BROWSER-DIRECT an Orca Cloud workspace's browser loads public sites from the desktop
2026-11-15 21:05:18 -08:00
Neil 780df8aacf test: typed fake instead of a cast 2026-11-15 21:03:08 -08:00
Neil e15a673ad3 feat(cloud): CREATE-GH-IDENTITY "Connect your GitHub so PRs show as you" in the wizard's GitHub step
Once the GitHub access step settles (ok, granted or skipped), a person who hasn't connected their
own GitHub sees "Connect your GitHub so PRs show as you." with Connect GitHub and Not now, in the
step's own style. It never holds the create.

- Reads GET /v1/github/user through the existing Settings hook (useGitHubIdentity): focus re-read
  and a light poll while the browser OAuth is open; "PRs from this workspace show as @login" once
  connected here. Already connected, or no answer (signed out, older control plane): nothing shown.
- Not now is remembered on this device (it's about the person, not the repo); Settings › Orca
  account still has Connect.
2026-11-15 21:00:17 -08:00
Neil 60774b0afc test(cloud): CLOUD-BROWSER-DIRECT test without type assertions 2026-11-15 20:59:03 -08:00
Neil 61ad429f1b Merge pull request #809 from nwparker/cloud/run-on-sticky
fix(composer): RUNON-STICKY Orca Cloud stays picked when the project changes
2026-11-15 20:57:49 -08:00
Neil c147346951 fix(cloud): CLOUD-BROWSER-DIRECT an Orca Cloud workspace's browser loads public sites from the desktop
Neil (n75, dev): the browser pane in a cloud workspace showed 'Connection isn't secure'
(ERR_CERT_AUTHORITY_INVALID) on github.com. A paired runtime's browser route sends every connection
through the VM (SOCKS on the desktop, dialed by orcad in the sandbox). An Orca Cloud sandbox's egress
terminates TLS for hosts that carry credential rules (github.com always does: the App token and member
routes), so Chromium on the Mac got a certificate from the sandbox provider's CA. It must never trust
that CA, and a public site never needs the sandbox anyway.

For Orca Cloud environments the route now sends only the workspace's own loopback through the sandbox
(localhost, *.localhost, 127.0.0.0/8, ::1: its dev servers and forwarded ports); every other site is
dialed from this desktop exactly like a local workspace's browser (the native dialer, honouring the
desktop's proxy settings and destination policy). Other paired runtimes and SSH/WSL routes are
unchanged.

(A PAC script can't express this: Chromium never consults PAC for loopback, measured on this Electron.)
2026-11-15 20:51:36 -08:00
Neil ab48dd17b4 test: no type assertion in the Run on pick helper 2026-11-15 20:51:36 -08:00
Neil dbef31ce68 fix(composer): RUNON-STICKY a picked Orca Cloud stays picked when the project changes
Picking "Run on: Orca Cloud" then another project reset Run on to this computer.
useEphemeralVmRecipeOptions reloads the project's recipes on every repo change with
load(resetSelection=true), which cleared the selection to null (Orca Cloud is the same for every
project, unlike a project's own orca.yaml recipes).

- A project change now carries Orca Cloud: it stays selected while the new project's options load
  (no flash to Local) and after, whenever the new project offers it.
- Only when the new project can't use it does Run on fall back, and a line under Run on says why:
  the project lives on another machine (SSH / remote server / not loadable here), Orca Cloud didn't
  answer, or it isn't offered for this project. The next pick clears it.
- A project's own recipe still doesn't carry to another project.

Tests: 5 new cases in useEphemeralVmRecipeOptions.test.tsx; 4 of them fail on the old hook.
2026-11-15 20:48:37 -08:00
Neil 02ca317237 Merge pull request #808 from nwparker/cloud/audit-per-domain
fix(cloud): provider-policy audit breaks rules down per domain; echo-probe reports the HTTP status
2026-11-15 20:42:49 -08:00
Neil 3136c355a9 feat(cloud): dev-only session-token-free probe route
Puts the token-free compile on a probe account's LIVE session, so the probe can see whether a
header-matched respond rule answers at all (separating 'respond not enforced' from 'resume restored
something else').
2026-11-15 16:04:50 -08:00
Neil 6314a21518 fix(cloud): provider-policy audit breaks rules down per domain; echo-probe reports the HTTP status
egress-docs' A4 run: after resume-raw the echo to the custom base-URL host answered 200 where the
token-free record should answer the placeholder 403. The Worker's token-free compile is right (the
host keeps its respond rules: checked in the harness), so the probe needs to see what Vercel holds
per host and what status came back:
- the audit adds domains: {host: {injection, forward, response}} (hostnames only);
- echo-probe returns the HTTP status again. The echoed body stays in a shell variable, never a file.
2026-11-15 16:04:05 -08:00
Neil bb8fc53fb8 Merge pull request #807 from nwparker/cloud/relay-warm
chore(cloud): keep one ChatGPT relay instance warm
2026-11-15 15:59:38 -08:00
Neil 46e3e31b69 Merge pull request #792 from nwparker/cloud/egress-refresh
feat(sandbox-control): EGRESS-REFRESH central credential refresh and push outbox
2026-11-15 15:43:41 -08:00
Neil 3131fbdc04 docs(cloud): relay README: the warm instance, and keeping it in production 2026-11-15 15:38:55 -08:00
Neil 7b3ff2df30 feat(sandbox-control): EGRESS-REFRESH central credential refresh and push outbox 2026-11-15 15:38:30 -08:00
Neil f16725a7d1 chore(cloud): keep one ChatGPT relay instance warm
A Cloud Run cold start cost Codex's first chatgpt.com call ~10.8 s on dev (seen twice on
2026-11-15, each right after an idle period). min_instance_count 0 -> 1 on staging (applied).
2026-11-15 15:38:11 -08:00
Neil 3cbc9bbe12 Merge pull request #804 from nwparker/cloud/egress-a4-scrub
feat(cloud): A4 stopped sandboxes keep no credential at rest in the provider
2026-11-15 15:36:47 -08:00
Neil 5a6532ca93 Merge remote-tracking branch 'private/cloud/integration' into cloud/egress-a4-scrub 2026-11-15 15:33:20 -08:00
Neil 602f923f1e Merge pull request #805 from nwparker/cloud/policy-audit-fixes
fix(cloud): provider-policy audit counts injection/forward/response rules; dev resume-raw and echo-probe
2026-11-15 15:33:08 -08:00
Neil 431024a4c9 Merge pull request #783 from nwparker/cloud/archive-teardown-hook
feat(cloud): run the repo's archive hook in the VM before archiving or deleting a cloud workspace
2026-11-15 15:13:08 -08:00
Neil 5210eca04f fix(cloud): echo-probe writes nothing in the VM; resume-raw/echo-probe only on probe accounts
egress-docs' review of #805: the echoed request goes straight into grep -c (a swapped value never
touches the VM's disk), and both routes refuse any row outside the throwaway probe accounts
(account_id dev:egress-…).
2026-11-15 15:03:50 -08:00
Neil 7da2415f79 fix(cloud): A4 review R2: a record scrub never strips a workspace that resumed meanwhile; R4 note
scrubStoppedRecord re-reads the row right before the PATCH and only scrubs one that is still
suspended or archived with no session; if the row resumed while the PATCH was in flight, the live
policy is re-applied at once (reason scrub_race). Failed rows are left out of the sweep on purpose:
failAndRelease destroys their provider sandbox.
2026-11-15 15:02:05 -08:00