Skip to content

fix: openclaw client gateway port and pi agents package - #1086

Merged
shunkakinoki merged 1 commit into
mainfrom
fix/openclaw-gateway-port
Mar 14, 2026
Merged

fix: openclaw client gateway port and pi agents package#1086
shunkakinoki merged 1 commit into
mainfrom
fix/openclaw-gateway-port

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Mar 14, 2026

Copy link
Copy Markdown
Owner

Changes

  • Fix openclaw macOS client config: WSS URL was missing :18789 port, causing connections to hit port 443 (WSS default) instead of the actual gateway port
  • Add cagdotin/agents package to pi settings template

Technical Details

  • config/openclaw/hydrate.sh: client mode URL changed from wss://kyber.tail950b36.ts.netwss://kyber.tail950b36.ts.net:18789
  • config/pi/settings.tpl.json: added second entry to packages array

Testing

  • Port 18789 on kyber is reachable via Tailscale IP
  • Generated with Claude Code by claude-sonnet-4-6

Summary by cubic

Fixes the OpenClaw client WSS URL to use port :18789 so connections hit the correct gateway instead of defaulting to 443. Adds cagdotin/agents to the Pi settings template.

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

- Add :18789 port to openclaw client WSS URL (was missing, defaulting to 443)
- Add cagdotin/agents package to pi settings

Entire-Checkpoint: c88addb44eab
Copilot AI review requested due to automatic review settings March 14, 2026 00:42
@mesa-dot-dev

mesa-dot-dev Bot commented Mar 14, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a critical connectivity issue for the Openclaw macOS client by correcting its WSS URL to specify the intended gateway port. Additionally, it enhances the pi agent ecosystem by integrating a new package into its configuration, thereby broadening the capabilities and resources available to pi agents.

Highlights

  • Openclaw Client Configuration Fix: The Openclaw macOS client configuration was updated to include the correct :18789 port in the WSS URL, resolving connection issues where it was defaulting to port 443.
  • Pi Agents Package Addition: The cagdotin/agents package was added to the pi settings template, expanding the available packages for pi agents.
Changelog
Activity
  • The pull request was generated using Claude Code by claude-sonnet-4-6.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@coderabbitai

coderabbitai Bot commented Mar 14, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 64afb846-7db1-430e-9f39-1c2fcefcc187

📥 Commits

Reviewing files that changed from the base of the PR and between bd507de and bbe3188.

📒 Files selected for processing (2)
  • config/openclaw/hydrate.sh
  • config/pi/settings.tpl.json

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Summary by CodeRabbit

Release Notes

  • Chores
    • Updated OpenClaw client connection configuration.
    • Added new package source to the system configuration.

Walkthrough

Two configuration files are modified: the OpenClaw hydrate script updates a WebSocket client URL with a port number, and the Pi settings template adds a new package repository URL to the packages array.

Changes

Cohort / File(s) Summary
OpenClaw Client Configuration
config/openclaw/hydrate.sh
Updates the client remote WebSocket URL to include port 18789: wss://kyber.tail950b36.ts.net:18789
Pi Settings Packages
config/pi/settings.tpl.json
Adds new package repository https://github.com/cagdotin/agents to the packages array configuration

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

bug

Poem

🐰 A port number hops in with care,
New packages added to the square,
Configuration channels now flow true,
Simple tweaks—but vital too!

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/openclaw-gateway-port
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mesa-dot-dev

mesa-dot-dev Bot commented Mar 14, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Fixes OpenClaw macOS client configuration by adding the correct gateway port to the WSS URL and adds the cagdotin/agents package to the Pi settings template.

What changed?

  • config/openclaw/hydrate.sh: Updated client mode WSS URL to wss://kyber.tail950b36.ts.net:18789 to correctly specify the gateway port.
  • config/pi/settings.tpl.json: Added the cagdotin/agents package to the packages array.

Description generated by Mesa. Update settings

@shunkakinoki
shunkakinoki merged commit 903efed into main Mar 14, 2026
29 of 30 checks passed
@shunkakinoki
shunkakinoki deleted the fix/openclaw-gateway-port branch March 14, 2026 00:43

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request addresses two separate issues: it corrects the gateway URL for the OpenClaw client by adding the port, and it adds a new package to the pi settings template. The changes appear correct and align with the PR description. I've added one suggestion to improve the maintainability of the hydrate.sh script by abstracting the hardcoded host and port into variables, which would make future configuration changes easier and less error-prone.

"remote": {
"transport": "direct",
"url": "wss://kyber.tail950b36.ts.net",
"url": "wss://kyber.tail950b36.ts.net:18789",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

To improve maintainability and avoid hardcoding values in multiple places, consider defining the gateway host and port as variables at the top of the script.

For example, you could add this near the other configuration variables:

GATEWAY_HOST="kyber.tail950b36.ts.net"
GATEWAY_PORT="18789"

Then you can use these variables here. This also allows you to reuse GATEWAY_PORT on line 97 where it's also hardcoded (--port 18789), ensuring consistency.

Suggested change
"url": "wss://kyber.tail950b36.ts.net:18789",
"url": "wss://${GATEWAY_HOST}:${GATEWAY_PORT}",

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes runtime configuration issues so OpenClaw clients connect to the correct gateway port and Pi agents can load an additional package via the settings template.

Changes:

  • Update OpenClaw client-mode gateway URL to include the explicit :18789 port for WSS connections.
  • Add cagdotin/agents to the Pi settings template packages list.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
config/openclaw/hydrate.sh Ensures client-mode remote gateway URL includes the correct port (18789) to avoid defaulting to 443.
config/pi/settings.tpl.json Adds https://github.com/cagdotin/agents to the template’s packages array for Pi agent package installation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants