colana 1.0.0-beta.45 → 1.0.0-beta.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colana",
3
- "version": "1.0.0-beta.45",
3
+ "version": "1.0.0-beta.46",
4
4
  "description": "Agent-First. Multiplied. Multi-agent command center for AI coding agents.",
5
5
  "type": "module",
6
6
  "main": "server/index.js",
package/public/app.js CHANGED
@@ -1514,7 +1514,7 @@ async function sendPersonalChatMessage() {
1514
1514
  assistantBubble.className = 'chat-bubble error';
1515
1515
 
1516
1516
  const isAuthError = err.code === 'GATEWAY_AUTH_FAILED' || err.code === 'GATEWAY_AUTH_MISSING';
1517
- const isTokenError = err.code === 'GATEWAY_TOKEN_MISSING' || err.code === 'GATEWAY_TOKEN_STALE';
1517
+ const isTokenError = err.code === 'GATEWAY_TOKEN_STALE';
1518
1518
 
1519
1519
  if (isAuthError) {
1520
1520
  // Provider API key error: show "Add API Key" button
@@ -96,24 +96,13 @@ export function registerPersonalAgentRoutes(app, { sensitiveLimiter }) {
96
96
  'x-openclaw-agent-id': 'main',
97
97
  };
98
98
 
99
+ // Attach gateway auth token if configured.
100
+ // OpenClaw on some platforms (notably Windows) sets gateway.auth: false,
101
+ // meaning the gateway runs without token auth. In that case, skip the
102
+ // Authorization header entirely — the gateway accepts unauthenticated requests.
99
103
  const authToken = getOpenClawAuthToken();
100
104
  if (authToken) {
101
105
  headers['Authorization'] = `Bearer ${authToken}`;
102
- } else {
103
- // Fail fast: don't send a request we know will get 401'd.
104
- // Log config state for diagnosis on fresh installs.
105
- const cfg = getOpenClawConfig();
106
- const hasConfig = !!cfg;
107
- const hasGateway = !!cfg?.gateway;
108
- const hasAuth = !!cfg?.gateway?.auth;
109
- const authMode = cfg?.gateway?.auth?.mode || 'none';
110
- console.warn(`[personal-agent] No gateway auth token found — config:${hasConfig} gateway:${hasGateway} auth:${hasAuth} mode:${authMode}`);
111
- return res.status(401).json({
112
- error: 'Gateway authentication token not found in OpenClaw config.',
113
- code: 'GATEWAY_TOKEN_MISSING',
114
- fix: 'Click "Restart Gateway" below — this will regenerate the config and auth token.',
115
- configState: { hasConfig, hasGateway, hasAuth, authMode },
116
- });
117
106
  }
118
107
 
119
108
  // 60-second timeout