Skip to content

Commit d2c04d4

Browse files
authored
Merge branch 'main' into fix/cli-runner-suppress-heartbeat-for-cron-sessions
2 parents bb429fc + 8023f4c commit d2c04d4

713 files changed

Lines changed: 38713 additions & 9443 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/actions/setup-node-env/action.yml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: Setup Node environment
22
description: >
3-
Initialize submodules with retry, install Node 22, pnpm, optionally Bun,
3+
Initialize submodules with retry, install Node 24 by default, pnpm, optionally Bun,
44
and optionally run pnpm install. Requires actions/checkout to run first.
55
inputs:
66
node-version:
77
description: Node.js version to install.
88
required: false
9-
default: "22.x"
9+
default: "24.x"
10+
cache-key-suffix:
11+
description: Suffix appended to the pnpm store cache key.
12+
required: false
13+
default: "node24"
1014
pnpm-version:
1115
description: pnpm version for corepack.
1216
required: false
@@ -16,7 +20,7 @@ inputs:
1620
required: false
1721
default: "true"
1822
use-sticky-disk:
19-
description: Use Blacksmith sticky disks for pnpm store caching.
23+
description: Request Blacksmith sticky-disk pnpm caching on trusted runs; pull_request runs fall back to actions/cache.
2024
required: false
2125
default: "false"
2226
install-deps:
@@ -54,7 +58,7 @@ runs:
5458
uses: ./.github/actions/setup-pnpm-store-cache
5559
with:
5660
pnpm-version: ${{ inputs.pnpm-version }}
57-
cache-key-suffix: "node22"
61+
cache-key-suffix: ${{ inputs.cache-key-suffix }}
5862
use-sticky-disk: ${{ inputs.use-sticky-disk }}
5963

6064
- name: Setup Bun

‎.github/actions/setup-pnpm-store-cache/action.yml‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ inputs:
88
cache-key-suffix:
99
description: Suffix appended to the cache key.
1010
required: false
11-
default: "node22"
11+
default: "node24"
1212
use-sticky-disk:
13-
description: Use Blacksmith sticky disks instead of actions/cache for pnpm store.
13+
description: Use Blacksmith sticky disks instead of actions/cache for pnpm store on trusted runs; pull_request runs fall back to actions/cache.
1414
required: false
1515
default: "false"
1616
use-restore-keys:
1717
description: Whether to use restore-keys fallback for actions/cache.
1818
required: false
1919
default: "true"
2020
use-actions-cache:
21-
description: Whether to restore/save pnpm store with actions/cache.
21+
description: Whether to restore/save pnpm store with actions/cache, including pull_request fallback when sticky disks are disabled.
2222
required: false
2323
default: "true"
2424
runs:
@@ -51,21 +51,23 @@ runs:
5151
run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
5252

5353
- name: Mount pnpm store sticky disk
54-
if: inputs.use-sticky-disk == 'true'
54+
# Keep persistent sticky-disk state off untrusted PR runs.
55+
if: inputs.use-sticky-disk == 'true' && github.event_name != 'pull_request'
5556
uses: useblacksmith/stickydisk@v1
5657
with:
57-
key: ${{ github.repository }}-pnpm-store-${{ runner.os }}-${{ inputs.cache-key-suffix }}
58+
key: ${{ github.repository }}-pnpm-store-${{ runner.os }}-${{ github.ref_name }}-${{ inputs.cache-key-suffix }}-${{ hashFiles('pnpm-lock.yaml') }}
5859
path: ${{ steps.pnpm-store.outputs.path }}
5960

6061
- name: Restore pnpm store cache (exact key only)
61-
if: inputs.use-actions-cache == 'true' && inputs.use-sticky-disk != 'true' && inputs.use-restore-keys != 'true'
62+
# PRs that request sticky disks still need a safe cache restore path.
63+
if: inputs.use-actions-cache == 'true' && (inputs.use-sticky-disk != 'true' || github.event_name == 'pull_request') && inputs.use-restore-keys != 'true'
6264
uses: actions/cache@v4
6365
with:
6466
path: ${{ steps.pnpm-store.outputs.path }}
6567
key: ${{ runner.os }}-pnpm-store-${{ inputs.cache-key-suffix }}-${{ hashFiles('pnpm-lock.yaml') }}
6668

6769
- name: Restore pnpm store cache (with fallback keys)
68-
if: inputs.use-actions-cache == 'true' && inputs.use-sticky-disk != 'true' && inputs.use-restore-keys == 'true'
70+
if: inputs.use-actions-cache == 'true' && (inputs.use-sticky-disk != 'true' || github.event_name == 'pull_request') && inputs.use-restore-keys == 'true'
6971
uses: actions/cache@v4
7072
with:
7173
path: ${{ steps.pnpm-store.outputs.path }}

‎.github/workflows/ci.yml‎

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,40 @@ jobs:
233233
- name: Check docs
234234
run: pnpm check:docs
235235

236+
compat-node22:
237+
name: "compat-node22"
238+
needs: [docs-scope, changed-scope]
239+
if: needs.docs-scope.outputs.docs_only != 'true' && (github.event_name == 'push' || needs.changed-scope.outputs.run_node == 'true')
240+
runs-on: blacksmith-16vcpu-ubuntu-2404
241+
steps:
242+
- name: Checkout
243+
uses: actions/checkout@v4
244+
with:
245+
submodules: false
246+
247+
- name: Setup Node 22 compatibility environment
248+
uses: ./.github/actions/setup-node-env
249+
with:
250+
node-version: "22.x"
251+
cache-key-suffix: "node22"
252+
install-bun: "false"
253+
use-sticky-disk: "true"
254+
255+
- name: Configure Node 22 test resources
256+
run: |
257+
# Keep the compatibility lane aligned with the default Node test lane.
258+
echo "OPENCLAW_TEST_WORKERS=2" >> "$GITHUB_ENV"
259+
echo "OPENCLAW_TEST_MAX_OLD_SPACE_SIZE_MB=6144" >> "$GITHUB_ENV"
260+
261+
- name: Build under Node 22
262+
run: pnpm build
263+
264+
- name: Run tests under Node 22
265+
run: pnpm test
266+
267+
- name: Verify npm pack under Node 22
268+
run: pnpm release:check
269+
236270
skills-python:
237271
needs: [docs-scope, changed-scope]
238272
if: needs.docs-scope.outputs.docs_only != 'true' && (github.event_name == 'push' || needs.changed-scope.outputs.run_node == 'true' || needs.changed-scope.outputs.run_skills_python == 'true')
@@ -401,14 +435,14 @@ jobs:
401435
- name: Setup Node.js
402436
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
403437
with:
404-
node-version: 22.x
438+
node-version: 24.x
405439
check-latest: false
406440

407441
- name: Setup pnpm + cache store
408442
uses: ./.github/actions/setup-pnpm-store-cache
409443
with:
410444
pnpm-version: "10.23.0"
411-
cache-key-suffix: "node22"
445+
cache-key-suffix: "node24"
412446
# Sticky disk mount currently retries/fails on every shard and adds ~50s
413447
# before install while still yielding zero pnpm store reuse.
414448
# Try exact-key actions/cache restores instead to recover store reuse

‎.github/workflows/docker-release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/checkout@v4
3737

3838
- name: Set up Docker Builder
39-
uses: useblacksmith/setup-docker-builder@v1
39+
uses: docker/setup-buildx-action@v3
4040

4141
- name: Login to GitHub Container Registry
4242
uses: docker/login-action@v3
@@ -137,7 +137,7 @@ jobs:
137137
uses: actions/checkout@v4
138138

139139
- name: Set up Docker Builder
140-
uses: useblacksmith/setup-docker-builder@v1
140+
uses: docker/setup-buildx-action@v3
141141

142142
- name: Login to GitHub Container Registry
143143
uses: docker/login-action@v3

‎.github/workflows/install-smoke.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
uses: actions/checkout@v4
4242

4343
- name: Set up Docker Builder
44-
uses: useblacksmith/setup-docker-builder@v1
44+
uses: docker/setup-buildx-action@v3
4545

4646
# Blacksmith can fall back to the local docker driver, which rejects gha
4747
# cache export/import. Keep smoke builds driver-agnostic.

‎.github/workflows/openclaw-npm-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
cancel-in-progress: false
1111

1212
env:
13-
NODE_VERSION: "22.x"
13+
NODE_VERSION: "24.x"
1414
PNPM_VERSION: "10.23.0"
1515

1616
jobs:

‎.github/workflows/sandbox-common-smoke.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
submodules: false
2828

2929
- name: Set up Docker Builder
30-
uses: useblacksmith/setup-docker-builder@v1
30+
uses: docker/setup-buildx-action@v3
3131

3232
- name: Build minimal sandbox base (USER sandbox)
3333
shell: bash

‎.gitignore‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,11 @@ dist/protocol.schema.json
123123
# Synthing
124124
**/.stfolder/
125125
.dev-state
126+
docs/superpowers/plans/2026-03-10-collapsed-side-nav.md
127+
docs/superpowers/specs/2026-03-10-collapsed-side-nav-design.md
128+
.gitignore
129+
test/config-form.analyze.telegram.test.ts
130+
ui/src/ui/theme-variants.browser.test.ts
131+
ui/src/ui/__screenshots__/navigation.browser.test.ts/control-UI-routing-auto-scrolls-chat-history-to-the-latest-message-1.png
132+
ui/src/ui/__screenshots__/navigation.browser.test.ts/control-UI-routing-auto-scrolls-chat-history-to-the-latest-message-1.png
133+
ui/src/ui/__screenshots__/navigation.browser.test.ts/control-UI-routing-auto-scrolls-chat-history-to-the-latest-message-1.png

‎.npmignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/node_modules/

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
- Keep files concise; extract helpers instead of “V2” copies. Use existing patterns for CLI options and dependency injection via `createDefaultDeps`.
119119
- Aim to keep files under ~700 LOC; guideline only (not a hard guardrail). Split/refactor when it improves clarity or testability.
120120
- Naming: use **OpenClaw** for product/app/docs headings; use `openclaw` for CLI command, package/binary, paths, and config keys.
121+
- Written English: use American spelling and grammar in code, comments, docs, and UI strings (e.g. "color" not "colour", "behavior" not "behaviour", "analyze" not "analyse").
121122

122123
## Release Channels (Naming)
123124

0 commit comments

Comments
 (0)