← Commit history

0.5.50: expired sign-in wording in the widget helper

John Lauer ·f15de4ff6a · ·parent e9e936a
3 files changed +9−5
bin/hydrogen-widget-lib.py+5−1
@@ -79,7 +79,11 @@ def serve(title, data_fn, render_js, refresh_ms=60000, mark=None):                 try:                     cache['v'] = data_fn(); cache['wait'] = refresh_ms/1000                 except Exception as e:-                    cache['v'] = {'error': str(e)[:120]}; cache['wait'] = min(900, max(refresh_ms/1000, cache['wait']) * 2)+                    # A 401/403 from the provider is an expired sign-in, so say that instead of+                    # printing the HTTP error (ConfRoomROG 2026-09-14: "HTTP Error 401: Unauthorized").+                    code = getattr(e, 'code', None)+                    msg = ('sign in to %s again' % title.replace(' usage', '')) if code in (401, 403) else str(e)[:120]+                    cache['v'] = {'error': msg}; cache['wait'] = min(900, max(refresh_ms/1000, cache['wait']) * 2)                 cache['t'] = time.time()             return cache['v']     class H(BaseHTTPRequestHandler):
package.json+2−2
@@ -4,7 +4,7 @@   "type": "bootstrap",   "title": "Adom Hydrogen (platform base)",   "brief": "Layer Hydrogen's workspace onto a standard Adom workstation.",-  "version": "0.5.49",+  "version": "0.5.50",   "description": "Hydrogen's PLATFORM-GENERIC workspace layer on top of adom/core. Installs adom/core for the full Adom ecosystem, then adds everything common to running inside Hydrogen on ANY platform: the runtime-neutral hydrogen-* skills and the generic editor configuration (Claude Code CLI + extension, VS Code settings, trusted domains). Platform-specific layers depend on THIS: adom/hydrogen-windows-bootstrap (WSL2), adom/hydrogen-mac-bootstrap, adom/hydrogen-ubuntu-bootstrap. The reference design other orgs copy to build their own bootstrap on adom/core.",   "org": "adom",   "tags": [@@ -33,4 +33,4 @@     "hydrogen editor configuration",     "where do hydrogen skills come from"   ]-}\ No newline at end of file+}
page.json+2−2
@@ -4,7 +4,7 @@   "type": "bootstrap",   "title": "Adom Hydrogen (platform base)",   "brief": "Layer Hydrogen's workspace onto a standard Adom workstation.",-  "version": "0.5.49",+  "version": "0.5.50",   "description": "Hydrogen's PLATFORM-GENERIC workspace layer on top of adom/core. Installs adom/core for the full Adom ecosystem, then adds everything common to running inside Hydrogen on ANY platform: the runtime-neutral hydrogen-* skills and the generic editor configuration (Claude Code CLI + extension, VS Code settings, trusted domains). Platform-specific layers depend on THIS: adom/hydrogen-windows-bootstrap (WSL2), adom/hydrogen-mac-bootstrap, adom/hydrogen-ubuntu-bootstrap. The reference design other orgs copy to build their own bootstrap on adom/core.",   "org": "adom",   "tags": [@@ -49,4 +49,4 @@     "hydrogen editor configuration",     "where do hydrogen skills come from"   ]-}\ No newline at end of file+}