Commit Graph

411 Commits (052d988add4da2cac125589d2874b8413eb8561c)

Author SHA1 Message Date
Peter Steinberger 3faf5ada2e ci(test): raise node heap for CI vitest 9 months ago
Vignesh Natarajan 277b2de491 fix (cli): harden daemon compat shim for minimal bundle exports 9 months ago
Peter Steinberger 960850445b fix(build): restore daemon-cli legacy shim 9 months ago
Peter Steinberger 3b08f3058b perf(test): isolate imessage monitor tests from vmForks 9 months ago
Peter Steinberger d355fecd4d fix(ci): avoid Windows spawn EINVAL in test runner 9 months ago
Peter Steinberger fef86e475b refactor: dedupe shared helpers across ui/gateway/extensions 9 months ago
Peter Steinberger 2690dfa77b test: quiet docker onboard e2e noise 9 months ago
Peter Steinberger 107cc03140 ci: reduce docker e2e log brittleness 9 months ago
Peter Steinberger a7eb0dd9a5 fix(security): harden Windows child process spawning 9 months ago
Peter Steinberger 852c897956 refactor(sandbox): add sandbox-common dockerfile 9 months ago
artale 3189430ad0 fix(sandbox): switch to root user for package installation in sandbox-common-setup
The base image (Dockerfile.sandbox) sets USER sandbox at the end, so
when sandbox-common-setup.sh builds FROM it, apt-get runs as the
unprivileged sandbox user and fails with 'Permission denied'.

Add USER root before apt-get/npm/curl install steps, and restore
USER sandbox at the end to preserve the non-root runtime default.

Fixes #16420
9 months ago
Peter Steinberger a429380e33 fix(scripts): harden clawtributors updater 9 months ago
Peter Steinberger d9d321f94b chore(security): bump qs and golang.org/x/net 9 months ago
Peter Steinberger e03dc987e3 chore(test): keep gateway vitest on forks 9 months ago
Glucksberg f537bd1796
fix(telegram): exclude plugin commands from setMyCommands when native=false (openclaw#15164) thanks @Glucksberg
Verified:
- pnpm install --frozen-lockfile
- pnpm build
- pnpm check
- pnpm test

Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
9 months ago
Tak Hoffman 3369ef5aef test: add macmini low-cpu test profile 9 months ago
Peter Steinberger 709c225b2b fix(podman): bootstrap config and token 9 months ago
Christoph Spörk 81b5e2766b
feat(podman): add optional Podman setup and documentation (#16273)
* feat(podman): add optional Podman setup and documentation

- Introduced `setup-podman.sh` for one-time host setup of OpenClaw in a rootless Podman environment, including user creation, image building, and launch script installation.
- Added `run-openclaw-podman.sh` for running the OpenClaw gateway as a Podman container.
- Created `openclaw.podman.env` for environment variable configuration.
- Updated documentation to include Podman installation instructions and a new dedicated Podman guide.
- Added a systemd Quadlet unit for managing the OpenClaw service as a user service.

* fix: harden Podman setup and docs (#16273) (thanks @DarwinsBuddy)

* style: format cli credentials

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
9 months ago
Peter Steinberger 9fb48f4dff refactor(scripts): make run-node main testable 9 months ago
Peter Steinberger 9a134c8a10 perf(test): tune parallel vitest worker split 9 months ago
Tanwa Arpornthip c76288bdf1
fix(slack): download all files in multi-image messages (#15447)
* fix(slack): download all files in multi-image messages

resolveSlackMedia() previously returned after downloading the first
file, causing multi-image Slack messages to lose all but the first
attachment. This changes the function to collect all successfully
downloaded files into an array, matching the pattern already used by
Telegram, Line, Discord, and iMessage adapters.

The prepare handler now populates MediaPaths, MediaUrls, and
MediaTypes arrays so downstream media processing (vision, sandbox
staging, media notes) works correctly with multiple attachments.

Fixes #11892, #7536

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(slack): preserve MediaTypes index alignment with MediaPaths/MediaUrls

The filter(Boolean) on MediaTypes removed entries with undefined contentType,
shrinking the array and breaking index correlation with MediaPaths and MediaUrls.
Downstream code (media-note.ts, attachments.ts) requires these arrays to have
equal lengths for correct per-attachment MIME type lookup. Replace filter(Boolean)
with a nullish coalescing fallback to "application/octet-stream".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(slack): align MediaType fallback and tests (#15447) (thanks @CommanderCrowCode)

* fix: unblock plugin-sdk account-id typing (#15447)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
9 months ago
Peter Steinberger ec399aaddf perf(test): parallelize unit-isolated 9 months ago
Peter Steinberger 6543ce717c perf(test): avoid plugin-sdk barrel imports 9 months ago
Peter Steinberger d1f01de59a perf(test): default to vmForks on Node 25; unstub envs 9 months ago
Peter Steinberger 38a157ff23 perf(test): reduce setup overhead; isolate sharp-heavy suites 9 months ago
Peter Steinberger 748d6821d2 fix(config): add forensic config write audit and watch attribution 9 months ago
Peter Steinberger f86840f4df perf(cli): reduce read-only startup overhead 9 months ago
Peter Steinberger fecb3f326e perf(test): trim models/browser suite overhead 9 months ago
Joseph Krug 4e9f933e88
fix: reset stale execution state after SIGUSR1 in-process restart (#15195)
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 676f9ec45135be0d3471bb0444bc2ac7ce7d5224
Co-authored-by: joeykrug <5925937+joeykrug@users.noreply.github.com>
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com>
Reviewed-by: @gumadeiras
9 months ago
Gustavo Madeira Santana 42eaee8b7e chore: fix root_dir resolution/stale scripts during PR review 9 months ago
Nathaniel Kelner 66f6d71ffa Update clawdock-helpers.sh compatibility with Zsh
Unlike Bash, Zsh has several "special" readonly variables (status, pipestatus, etc.) that the shell manages automatically. Shadowing them with local declarations triggers an error.
9 months ago
Peter Steinberger 8899f9e94a perf(test): optimize heavy suites and stabilize lock timing 9 months ago
Sebastian 5d37b204c0 Tests: disable vmForks on Node 24 and document override 9 months ago
Peter Steinberger 78ec0a1edf fix: stabilize test runner and daemon-cli compat 9 months ago
Peter Steinberger ba7dccc49d test: speed up test suite and trim redundant onboarding tests 9 months ago
Peter Steinberger 711597c02b fix(update): repair daemon-cli compat exports after self-update 9 months ago
Peter Steinberger f9e444dd56 fix: include plugin sdk dts tsconfig in onboard docker image 9 months ago
Gustavo Madeira Santana 04a1ed5e53 chore: make changelog mandatory in PR skills 9 months ago
Shadow 3b6bd202da
Scripts: add issue labeler state + PR support 9 months ago
Gustavo Madeira Santana 49188caf94 chore(pr-skills): suppress output for successful commands (pnpm install/build/test/etc) to lower context usage 9 months ago
Gustavo Madeira Santana 1123357c62
chore: refining review PR additional prompts 9 months ago
Peter Steinberger 069670388e perf(test): speed up test runs and harden temp cleanup 9 months ago
Peter Steinberger 8fce7dc9b6 perf(test): add vitest slowest report artifact 9 months ago
Peter Steinberger 9f507112b5 perf(test): speed up vitest by skipping plugins + LLM slug 9 months ago
Karim Naguib 7a0591ef87
fix(whatsapp): allow media-only sends and normalize leading blank payloads (#14408)
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
9 months ago
Tak Hoffman c28cbac512
CI: add PR size autolabel workflow (#14410) 9 months ago
cpojer c2178e2522
chore: Cleanup useless CI job. 9 months ago
Gustavo Madeira Santana 940ce424c8 chore: make review mode switching idempotent 9 months ago
Gustavo Madeira Santana 72fbfaa755 chore: making PR review chores deterministic + less token hungry 9 months ago
Daniel Olshansky 31f616d45b
feat: `ClawDock` - shell docker helpers for OpenClaw development (#12817)
Discussion: https://github.com/openclaw/openclaw/discussions/13528

## Checklist

- [x] **Mark as AI-assisted in the PR title or description** - Implemented by 🤖, reviewed by 👨‍💻 
- [x] **Note the degree of testing** - fully tested and I use it myself
- [x] **Include prompts or session logs if possible (super helpful!)** - I can try doing a "resume" on a few sessions, but don't think it'll provide value. Lmk if this is a blocker.
- [x] **Confirm you understand what the code does** - It's simple :)

## Summary of changes

- **ClawDock** - Shell helpers replace verbose `docker-compose` commands with simple `clawdock-*` shortcuts
- **Zero-config setup** - First run auto-detects the OpenClaw project directory from common paths and saves the config for future use
- **No extra dependencies** - Just bash
- **Built-in auth & device pairing helpers** - `clawdock-fix-token`, `clawdock-dashboard`, etc to handle gateay setup, streamline web UI, etc...
- **Updated Docker docs** - Installation docs now include the optional ClawDock helper setup for users who want simplified container management

## Example Usage

```bash
$ clawdock-help

🦞 ClawDock - Docker Helpers for OpenClaw

⚡ Basic Operations
  clawdock-start       Start the gateway
  clawdock-stop        Stop the gateway
  clawdock-restart     Restart the gateway
  clawdock-status      Check container status
  clawdock-logs        View live logs (follows)

🐚 Container Access
  clawdock-shell       Shell into container (openclaw alias ready)
  clawdock-cli         Run CLI commands (e.g., clawdock-cli status)
  clawdock-exec <cmd>  Execute command in gateway container

🌐 Web UI & Devices
  clawdock-dashboard   Open web UI in browser (auto-guides you)
  clawdock-devices     List device pairings (auto-guides you)
  clawdock-approve <id> Approve device pairing (with examples)

⚙️  Setup & Configuration
  clawdock-fix-token   Configure gateway token (run once)

🔧 Maintenance
  clawdock-rebuild     Rebuild Docker image
  clawdock-clean       ⚠️  Remove containers & volumes (nuclear)

🛠️  Utilities
  clawdock-health      Run health check
  clawdock-token       Show gateway auth token
  clawdock-cd          Jump to openclaw project directory
  clawdock-config      Open config directory (~/.openclaw)
  clawdock-workspace   Open workspace directory

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 First Time Setup
  1. clawdock-start          # Start the gateway
  2. clawdock-fix-token      # Configure token
  3. clawdock-dashboard      # Open web UI
  4. clawdock-devices        # If pairing needed
  5. clawdock-approve <id>   # Approve pairing

💬 WhatsApp Setup
  clawdock-shell
    > openclaw channels login --channel whatsapp
    > openclaw status

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

💡 All commands guide you through next steps!
📚 Docs: https://docs.openclaw.ai
```\n\nCo-authored-by: Gustavo Madeira Santana <gumadeiras@gmail.com>
9 months ago