[Bug]: 🐞 OpenClaw – “New session” works for admin but not for user behind Nginx
Context
I’m running OpenClaw in a multi-user setup:
Admin user → direct access to OpenClaw
Client user (ami1) → access behind Nginx reverse-proxy (HTTPS)
Separate gateways and tokens per user
Problem
For admin, everything works normally
For ami1 (behind Nginx):
Clicking “New session” does nothing
URL does not change
No request appears in browser DevTools
No log appears on the OpenClaw gateway
What works
Chat itself works (messages are sent and received)
Models respond correctly
WhatsApp integration works
Direct URLs work:
/new?token=... /reset?token=...
So the backend and gateway are working correctly.
Conclusion
The issue is not OpenClaw backend or gateway. It looks like a front-end / UI issue when the user is accessed behind Nginx:
The “New session” button is not triggering any action
The click is blocked client-side before any request is sent
Hey @mikael1022
Solution of "New session" button not working behind Nginx reverse proxy
Environment
- Multi-user setup with Nginx reverse proxy (HTTPS)
- Admin user (direct access): ✅ Works
- Client user (behind Nginx): ❌ Button does nothing
Symptoms
- Clicking "New session" produces no action
- No URL change, no DevTools network request, no gateway log
- Chat messaging works normally (WebSocket connected)
- Direct URLs (
/new?token=...,/reset?token=...) work
Technical Details
The "New session" button (ui/src/ui/views/chat.ts:400) sends a /new command via the existing WebSocket connection, not an HTTP request:
onNewSession: () => state.handleSendChat("/new", { restoreDraft: true })
The button is only disabled when !props.connected || (!canAbort && props.sending). Since chat works, the connection is active.
Suspected Cause
This appears to be a front-end issue caused by Nginx headers, not an OpenClaw bug. Possible causes:
- Content-Security-Policy headers blocking inline event handlers
- CSS
pointer-events: nonebeing applied via proxy-injected styles - JavaScript errors preventing the click handler from executing
- X-Frame-Options issues if embedded
Suggested Investigation
- Compare response headers between direct vs proxied access
- Check browser console for CSP violations or JS errors
- Inspect button element for
disabledattribute orpointer-events: none - Review Nginx config for header modifications
Thanks for the analysis — small but important clarification based on additional testing.
We reproduced the exact same behavior without Nginx, using a direct local launch of OpenClaw for the user account.
Additional Test (no Nginx, no reverse proxy)
Command used:
sudo -u ami2 -H bash -lc ' cd ~/.openclaw/workspace exec openclaw gateway run '
Environment:
Direct access to the gateway (localhost / loopback)
No Nginx
No HTTPS
No CSP headers
Same user-level gateway setup
Result
Chat works normally (WebSocket connected)
Models respond correctly
/new?token=... and /reset?token=... URLs work
“New session” button still does nothing
No URL change
No network request
No gateway log entry
This is identical to the behavior previously observed behind Nginx.
Conclusion
This rules out:
Nginx
Reverse proxy headers
CSP / security headers
HTTPS-related issues
The issue reproduces purely in a user-level gateway, while the admin gateway works correctly.
So this looks like:
a UI / frontend logic issue specific to non-admin (user) gateways or
a difference in gateway state/permissions affecting how /new is handled when triggered via WebSocket from the UI
At this point, the problem does not appear to be caused by proxying or headers, but by how the frontend handles “New session” for user gateways.
Happy to provide logs or test a patched build if needed.