Skip to content

feat: OpenClaw via SDK update - #8

Merged
mislavivanda merged 3 commits into
mainfrom
feat/openclaw-update
Jul 29, 2026
Merged

feat: OpenClaw via SDK update#8
mislavivanda merged 3 commits into
mainfrom
feat/openclaw-update

Conversation

@mislavivanda

@mislavivanda mislavivanda commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Summary by cubic

Updates the OpenClaw example to @daytona/sdk v0.201.0 and runs the gateway on loopback behind an in-sandbox local pairing proxy. Previews are safer by default (private sandbox, token in URL fragment), and startup is hardened with readiness checks, duplicate-start protection, port validation, and failure cleanup.

  • New Features

    • Gateway binds to loopback; preview targets LOCAL_PROXY_PORT via src/local-pairing-proxy.cjs to strip forwarding headers and auto-approve local pairing after token auth.
    • Preview origin is resolved early and allowlisted in gateway.controlUi.allowedOrigins.
    • Token is passed in the URL fragment (#token=); the Control UI reads and clears it. Private sandbox requires Daytona sign-in.
    • Startup waits for gateway readiness with retries; lifecycle isn’t tied to the log stream. Defaults: MAKE_PUBLIC=false, PERSIST_SANDBOX=true, model anthropic/claude-sonnet-4-6. README notes LOCAL_PROXY_PORT.
  • Bug Fixes

    • Prevent duplicate gateway starts by retrying only after the previous command exited.
    • Validate local pairing proxy ports (1–65535).
    • Delete the sandbox on startup failure even when PERSIST_SANDBOX=true to avoid stragglers.

Written for commit b447108. Summary will update on new commits.

Review in cubic

Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>
@mislavivanda
mislavivanda force-pushed the feat/openclaw-update branch from 44db4ce to fda5e6a Compare July 29, 2026 13:44

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed against the latest diff

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread typescript/openclaw/src/index.ts
Comment thread typescript/openclaw/src/index.ts
Comment thread typescript/openclaw/src/index.ts
Comment thread typescript/openclaw/src/local-pairing-proxy.cjs Outdated
…idation

Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread typescript/openclaw/src/index.ts
Signed-off-by: Mislav Ivanda <mislavivanda454@gmail.com>
@mislavivanda
mislavivanda merged commit dcb37f1 into main Jul 29, 2026
8 checks passed
@mislavivanda
mislavivanda deleted the feat/openclaw-update branch July 29, 2026 16:57
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant