@clawlabz/clawskin 1.0.3 → 1.0.4

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": "@clawlabz/clawskin",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "Pixel Agent Skin Engine \u2014 Procedural 32\u00d732 character generator with scenes, animations & customization",
6
6
  "keywords": [
@@ -115,14 +115,10 @@ class ClawSkinApp {
115
115
  this.running = true;
116
116
  this.lastTime = performance.now();
117
117
 
118
- const config = this.settings.load();
119
-
120
- if (config.autoConnect && config.gatewayUrl) {
121
- this.connectToGateway(config.gatewayUrl, config.token);
122
- } else {
123
- this._startDemoMode();
124
- this._tryAutoDetect();
125
- }
118
+ // Always try to fetch fresh config from serve.cjs first.
119
+ // This ensures we have the latest token even if localStorage is stale.
120
+ this._startDemoMode();
121
+ this._tryAutoDetect();
126
122
 
127
123
  this._loop();
128
124
  }