Skip to content

Commit 4b10ab6

Browse files
Merge upstream launch recovery while preserving profile ownership
2 parents 10eb079 + 40f9e7a commit 4b10ab6

912 files changed

Lines changed: 42799 additions & 5202 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/CONTRIBUTING.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ CI enforces this for `src/preload/` and `src/shared/`.
6363

6464
Each pull request should follow [`.github/pull_request_template.md`](./pull_request_template.md). In particular:
6565

66+
- if you are an outside contributor, link the issue your PR addresses
6667
- open with an ELI5 of the change (plain language paragraph; the PR title is the one-liner)
6768
- explain what changed and why, and stay focused on a single topic when possible
68-
- for any UI or interaction change, attach **before and after** screenshots (or short videos); if there is no visual change, say `No visual change` and why
69+
- for any UI or interaction change, attach **before and after** screenshots (or short videos); if there is no visual or interaction change, write `N/A` and briefly explain why
6970
- include high-quality tests when behavior changes or bug fixes warrant them
7071
- include a brief code review summary from your AI coding agent that explicitly checks cross-platform compatibility, SSH/remote/local compatibility, supported agent and integration compatibility, performance risk, UI quality when applicable, and basic security risk
7172
- mention any platform-specific, remote/SSH-specific, agent-specific, integration-specific, or git-provider-specific behavior and testing notes

‎.github/scripts/check-root-directory-entries.mjs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ function readRootEntries(sha) {
1313
return stdout.split('\0').filter(Boolean)
1414
}
1515

16-
// Why: the Cloud workspace import is the one reviewed root addition; it stays
17-
// listed until it lands on main, after which the base tree carries it.
18-
const REVIEWED_ROOT_ENTRIES = new Set(['cloud'])
16+
// These reviewed additions stay listed until the base tree carries them.
17+
const REVIEWED_ROOT_ENTRIES = new Set(['cloud', 'opencode.json'])
1918

2019
function checkRootDirectoryEntries(argv) {
2120
if (argv.length !== 2) {

‎.github/workflows/cloud-deploy-relay-asia-topology.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
production:production-gce-c30) ;;
7979
production:production-gce-c31) ;;
8080
production:production-gce-c32,production-gce-c33) target_region=us-central1 ;;
81+
production:production-gce-c34) ;;
8182
*) echo "cell-ids do not match the reviewed environment topology" >&2; exit 1 ;;
8283
esac
8384
echo "TARGET_REGION=${target_region}" >> "${GITHUB_ENV}"

‎.github/workflows/cloud-deploy-relay-production-same-cap-job.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194
EXPECTED_REGION=us-central1
195195
EXPECTED_DATABASE_POOL_MAX=
196196
;;
197-
c27|c28|c29|c30|c31)
197+
c27|c28|c29|c30|c31|c34)
198198
EXPECTED_HARD_CAP=3000
199199
EXPECTED_REGION=asia-east2
200200
EXPECTED_DATABASE_POOL_MAX=16

‎.github/workflows/mobile.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ jobs:
120120
background: true
121121
run: node node_modules/typescript/bin/tsc --noEmit
122122

123-
- wait: production-types
124-
125123
# Why a ratchet and not the raw typecheck: mobile/tsconfig.json excludes test files, so until
126124
# tsconfig.test.json existed nothing checked them, and at introduction 127 of the 632 had
127125
# drifted. This fails when a test file that checks today stops checking, when a test leaves
128126
# the program, and on @ts-nocheck; the baseline may only shrink.
129127
- name: Typecheck tests (ratchet)
130128
run: node scripts/check-tests-typecheck-ratchet.mjs
131129

130+
- wait: production-types
131+
132132
# This includes the bridged replay of the whole recording corpus, which used to be a second
133133
# step of its own behind RPC_FOUNDATION_BRIDGE=1. A gate nobody can forget to set is the point:
134134
# it fails when a divergence class grows, when a divergence lands in no class at all, or when

‎.github/workflows/pr.yml‎

Lines changed: 56 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,12 @@ jobs:
440440

441441
git_compatibility:
442442
name: Git compatibility
443-
needs: [code_paths]
444-
if: needs.code_paths.outputs.git_compatibility == 'true'
443+
needs: [code_paths, preflight]
444+
if: >-
445+
!cancelled() &&
446+
needs.code_paths.result == 'success' &&
447+
needs.code_paths.outputs.git_compatibility == 'true' &&
448+
needs.preflight.result == 'success'
445449
runs-on: ubuntu-latest
446450

447451
steps:
@@ -509,8 +513,12 @@ jobs:
509513
# repair stops happening. Pinned because the binary is the thing expected to drift.
510514
codex_index_heal_contract:
511515
name: Codex index-heal contract
512-
needs: [code_paths]
513-
if: needs.code_paths.outputs.codex_index_heal_contract == 'true'
516+
needs: [code_paths, preflight]
517+
if: >-
518+
!cancelled() &&
519+
needs.code_paths.result == 'success' &&
520+
needs.code_paths.outputs.codex_index_heal_contract == 'true' &&
521+
needs.preflight.result == 'success'
514522
# Why ARM: @openai/codex ships @openai/codex-linux-arm64.
515523
runs-on: ubuntu-24.04-arm
516524
env:
@@ -575,8 +583,12 @@ jobs:
575583
576584
xterm_patch_sync:
577585
name: xterm patch sync
578-
needs: [code_paths]
579-
if: needs.code_paths.outputs.xterm_patch_sync == 'true'
586+
needs: [code_paths, preflight]
587+
if: >-
588+
!cancelled() &&
589+
needs.code_paths.result == 'success' &&
590+
needs.code_paths.outputs.xterm_patch_sync == 'true' &&
591+
needs.preflight.result == 'success'
580592
# Why ARM: the patch check rebuilds 4 packages x 2 builds and byte-compares against the
581593
# checked-in bundles. Those were generated on Linux x64 and reproduce byte-for-byte on
582594
# darwin-arm64, so the output is neither host-arch nor host-OS dependent.
@@ -604,8 +616,12 @@ jobs:
604616

605617
shell_contracts:
606618
name: shell contracts
607-
needs: [code_paths]
608-
if: needs.code_paths.outputs.shell_contracts == 'true'
619+
needs: [code_paths, preflight]
620+
if: >-
621+
!cancelled() &&
622+
needs.code_paths.result == 'success' &&
623+
needs.code_paths.outputs.shell_contracts == 'true' &&
624+
needs.preflight.result == 'success'
609625
# Why ARM: fish 4.x is published for noble/arm64 and zsh is in the arm64 archive.
610626
runs-on: ubuntu-24.04-arm
611627
# Why: this job's cost is almost entirely package download, and a stalled mirror has
@@ -758,8 +774,12 @@ jobs:
758774
# would pay for it on every shard to run one file in whichever shard it landed in.
759775
orcad_browser:
760776
name: orcad browser provider
761-
needs: [code_paths]
762-
if: needs.code_paths.outputs.orcad_browser == 'true'
777+
needs: [code_paths, preflight]
778+
if: >-
779+
!cancelled() &&
780+
needs.code_paths.result == 'success' &&
781+
needs.code_paths.outputs.orcad_browser == 'true' &&
782+
needs.preflight.result == 'success'
763783
runs-on: ubuntu-latest
764784

765785
steps:
@@ -811,7 +831,7 @@ jobs:
811831
# in this job loads node-pty.
812832
- uses: ./.github/actions/install-node-dependencies
813833
with:
814-
native-runtime: node
834+
native-runtime: none
815835
cache-dependency-path: |
816836
pnpm-lock.yaml
817837
mobile/pnpm-lock.yaml
@@ -872,8 +892,12 @@ jobs:
872892
873893
cross-version-wire:
874894
name: cross-version wire compatibility
875-
needs: [code_paths]
876-
if: needs.code_paths.outputs.cross-version-wire == 'true'
895+
needs: [code_paths, preflight]
896+
if: >-
897+
!cancelled() &&
898+
needs.code_paths.result == 'success' &&
899+
needs.code_paths.outputs.cross-version-wire == 'true' &&
900+
needs.preflight.result == 'success'
877901
# Why ARM: source-only: tagged checkout plus in-process vitest, no docker or browser.
878902
runs-on: ubuntu-24.04-arm
879903

@@ -916,8 +940,12 @@ jobs:
916940

917941
managed_hook_node18:
918942
name: managed hooks on Node 18
919-
needs: [code_paths]
920-
if: needs.code_paths.outputs.managed_hook_node18 == 'true'
943+
needs: [code_paths, preflight]
944+
if: >-
945+
!cancelled() &&
946+
needs.code_paths.result == 'success' &&
947+
needs.code_paths.outputs.managed_hook_node18 == 'true' &&
948+
needs.preflight.result == 'success'
921949
# Why ARM: Node 18 publishes linux-arm64; the per-platform runtime files are read as data.
922950
runs-on: ubuntu-24.04-arm
923951

@@ -1263,8 +1291,19 @@ jobs:
12631291

12641292
e2e:
12651293
name: e2e
1266-
needs: code_paths
1267-
if: needs.code_paths.outputs.e2e_should_run == 'true'
1294+
needs: [code_paths, preflight]
1295+
if: >-
1296+
!cancelled() &&
1297+
needs.code_paths.result == 'success' &&
1298+
needs.code_paths.outputs.e2e_should_run == 'true' &&
1299+
(
1300+
needs.preflight.result == 'success' ||
1301+
(
1302+
needs.preflight.result == 'skipped' &&
1303+
needs.code_paths.outputs.static_analysis == 'false' &&
1304+
needs.code_paths.outputs.typecheck == 'false'
1305+
)
1306+
)
12681307
# Why: reusable e2e.yml only checkouts, builds, and uploads artifacts.
12691308
permissions:
12701309
contents: read

‎.github/workflows/ssh-windows-hosts.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,17 @@ jobs:
8484
- uses: actions/checkout@v6
8585
with:
8686
persist-credentials: false
87+
# Keep complete server/test trees; missing future imports fail the unchanged builds.
88+
sparse-checkout: |
89+
.github
90+
config
91+
native
92+
resources
93+
tests
94+
src/main
95+
src/shared
96+
src/relay
97+
src/types
8798
- name: Self-test the provisioning scripts before touching the machine
8899
shell: pwsh
89100
run: |

‎.github/workflows/terminal-ime-e2e.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@ on:
55
# change is worth a real ibus session. A pull_request trigger here would run it on every PR.
66
workflow_call:
77
workflow_dispatch:
8+
inputs:
9+
diagnose_wayland_input:
10+
description: Capture passive Wayland input diagnostics while running both native lanes
11+
required: false
12+
type: boolean
13+
default: false
814
schedule:
915
- cron: '30 9 * * *'
1016

1117
permissions:
1218
contents: read
1319

20+
env:
21+
ORCA_BACKGROUND_LAUNCH: '1'
22+
1423
jobs:
1524
linux-x11:
1625
name: Linux X11 terminal IME
@@ -98,6 +107,7 @@ jobs:
98107
- name: Run native Wayland Hangul terminating digit
99108
env:
100109
SKIP_BUILD: '1'
110+
ORCA_E2E_WAYLAND_INPUT_DIAGNOSTICS: ${{ inputs.diagnose_wayland_input && '1' || '' }}
101111
run: node config/scripts/run-terminal-ibus-hangul-e2e.mjs --nested-wayland
102112
- name: Upload Wayland terminal IME evidence
103113
if: always()

‎cloud/apps/relay/src/assignment-cleanup-steps.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function stubStore(overrides: Partial<AssignmentCleanupStore> = {}) {
1616
abortExpiredRegionalRehomes: method('abortExpiredRegionalRehomes'),
1717
reapRegionalRehomeAttempts: method('reapRegionalRehomeAttempts'),
1818
releaseExpiredActivityLeases: method('releaseExpiredActivityLeases'),
19+
pruneReleasedControlReservations: method('pruneReleasedControlReservations'),
1920
releaseExpiredActivity: method('releaseExpiredActivity'),
2021
releaseExpiredRegionPreferences: method('releaseExpiredRegionPreferences'),
2122
evacuateDeadCells: method('evacuateDeadCells'),
@@ -43,6 +44,7 @@ describe('assignment cleanup steps', () => {
4344
'abortExpiredRegionalRehomes',
4445
'reapRegionalRehomeAttempts',
4546
'releaseExpiredActivityLeases',
47+
'pruneReleasedControlReservations',
4648
'releaseExpiredActivity',
4749
'releaseExpiredRegionPreferences',
4850
'evacuateDeadCells'

‎cloud/apps/relay/src/assignment-cleanup-steps.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { runRelayBackgroundOperation } from './relay-background-operation.js'
22

3-
// The eleven periodic assignment sweeps the director runs every 30s. Each step
3+
// The twelve periodic assignment sweeps the director runs every 30s. Each step
44
// re-derives its state from the database and is idempotent, so they carry no
55
// intra-tick ordering dependency — which is what makes per-step isolation
6-
// sound: one failing sweep costs one tick of itself, never the other ten.
6+
// sound: one failing sweep costs one tick of itself, never the other eleven.
77
// (A single poisoned rehome row once silenced the whole chained form
88
// fleet-wide.) Sweep failures are logged, never fed into the rehome worker's
99
// dispatch-failure budget: a sweep exception is not a dispatch failure and
@@ -17,6 +17,7 @@ export type AssignmentCleanupStore = {
1717
abortExpiredRegionalRehomes(): Promise<unknown>
1818
reapRegionalRehomeAttempts(): Promise<unknown>
1919
releaseExpiredActivityLeases(): Promise<unknown>
20+
pruneReleasedControlReservations(): Promise<unknown>
2021
releaseExpiredActivity(): Promise<unknown>
2122
releaseExpiredRegionPreferences(): Promise<unknown>
2223
evacuateDeadCells(): Promise<unknown>
@@ -34,6 +35,10 @@ function assignmentCleanupSteps(
3435
['abort-expired-regional-rehomes', () => assignments.abortExpiredRegionalRehomes()],
3536
['reap-regional-rehome-attempts', () => assignments.reapRegionalRehomeAttempts()],
3637
['release-expired-activity-leases', () => assignments.releaseExpiredActivityLeases()],
38+
[
39+
'prune-released-control-reservations',
40+
() => assignments.pruneReleasedControlReservations()
41+
],
3742
['release-expired-activity', () => assignments.releaseExpiredActivity()],
3843
['release-expired-region-preferences', () => assignments.releaseExpiredRegionPreferences()],
3944
['evacuate-dead-cells', () => assignments.evacuateDeadCells()]

0 commit comments

Comments
 (0)