Managed-gateway provenance probe only asks `systemctl --user`; a gateway run as a system unit can't pair the web chat
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- bash, csharp, linux
- Domain
- infrastructure
Research direction
Start with ManagedLocalGatewayPortProvenanceService.IsStrongCredentialAllowed and trace where it gets the cached ExpectedManagedGateway probe result and builds the WSL probe. Check how the probe handles a missing user-unit PID, then run the relevant tests or add coverage for the system-unit fallback. Done means it checks the system manager only when the user-manager query returns no PID and still requires the same strict listener-owner match.
Written by the indexing model from the issue text.
Description
Version: Companion 2026.9.8-1, managed local gateway in a WSL distro, mirrored networking, loopback gateway URL.
What happens: with "Use gateway's web chat interface" on, Chat shows "Web Chat Unavailable: Open Connection settings to finish pairing with a gateway", even though the saved gateway record has a shared token.
Cause (from reading the source at v2026.9.8-1): ManagedLocalGatewayPortProvenanceService.IsStrongCredentialAllowed (:298-322) only releases the shared token to the web chat when a cached ExpectedManagedGateway probe result exists. The probe runs wsl.exe -d <distro> -- bash -s with a script equivalent to:
pid=$(systemctl --user show openclaw-gateway -p MainPID --value); test "${pid:-0}" -gt 0 && ss -ltnp | grep -E ':18789([^0-9]|$)' | grep -F "pid=$pid,"
That only passes when the gateway is a systemd user unit. If the gateway is installed as a system unit (User= set in /etc/systemd/system/openclaw-gateway.service, a reasonable hardening step: a user unit can undo sandbox options such as InaccessiblePaths=), the user manager has no such unit, MainPID is 0, and the probe fails even though that unit's process is the one listening on the port. The probe itself is fast (about 0.1 s against the 5 s timeout); the answer is simply wrong for system units.
Expected: if the user-manager query returns no pid, fall back to the system manager (systemctl show openclaw-gateway.service -p MainPID --value) and then do the same ss pid match. The listener-owner check stays as strict as before.
Workaround on our side: a root-owned systemctl wrapper earlier on the distro's PATH that answers exactly that one --user show ... MainPID query from the system manager and passes everything else through.
Possibly related: #1333 (listener owner could not be verified).
- Dominant language
- C#
- Stars
- 2.1k
- Forks
- 315
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 169
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openclaw/openclaw-windows-node
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openclaw/openclaw-windows-node#1762 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:source-repro impact:ux-release-blocker issue-rating: 🦞 diamond lobster P0
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openclaw/openclaw-windows-node#1723 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:needs-info clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:ux-friction issue-rating: 🦐 gold shrimp P1 stale
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openclaw/openclaw-windows-node#1145 · 5 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
WSL setup: no window appears at all after post-setup restart (native-handoff ai-v3: path throws InvalidOperationException/Unavailable)Possibly taken @joelagnel claimed this today. Openclawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:ux-release-blocker issue-rating: 🦪 silver shellfish P0 status: 🚢 actively landing
Difficulty 4/5 3-5 days Newbie friendliness 25/100
openclaw/openclaw-windows-node#1781 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:crash-loop impact:message-loss impact:ux-release-blocker issue-rating: 🦪 silver shellfish P0
Difficulty 4/5 3-5 days Newbie friendliness 44/100
openclaw/openclaw-windows-node#1779 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
All issues in openclaw/openclaw-windows-node
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
elsa-workflows/elsa-foundation#3130 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
KnifeLemon/Filee#294 ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
GlebKievsky/git-tips#4 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 77/100
OrchardCMS/OrchardCore#20088 · 1 comment ·
Maintainers usually reply within 1 day