Spaces:
Paused
Paused
Commit History
-
Merge pull request #227 from anurag008w/fix/jupyterlab-assets-not-found
AnuragUnverified signaturefix(devdata): restore devdata sync by fixing SyntaxError in is_jupyter_runningb3eda0e -
fix(jupyter): explicitly unset JUPYTERLAB_DIR to prevent inherited override
anurag008wThree places in start.sh carried comments stating JUPYTERLAB_DIR 'must stay unset' / 'intentionally unset' / 'do NOT override', but none of them actually called unset. A value inherited from a parent environment (old bashrc, exported env var, or runtime injection) would therefore survive and override JupyterLab's prebuilt application assets dir, breaking the UI with 'application assets not found' (the regression fixed in 467fd00, which only removed the export). Add an explicit 'unset JUPYTERLAB_DIR' at each of the three sites: - top-level env block (line ~648) - start_jupyter_once() env block (line ~1829) - the third env block (line ~1925) unset on an already-unset var is a no-op, so this is safe.9ec7be4 -
fix(devdata): add missing docstring opener in is_jupyter_running
anurag008wThe docstring for is_jupyter_running() was missing its opening triple quote, so the closing """ on the last line actually opened a new string that swallowed the next function's docstring. Python failed to parse the module (SyntaxError: unterminated string literal at line 434), which silently killed the entire devdata pipeline at startup: - --restore (workspace restore) crashed - sync_loop (local -> HF dataset push) crashed - prune_remote_deleted_files (deleted-file cleanup) crashed All three share one module, so a parse-time error took down restore, sync, and prune together. Adding the missing opening triple-quote lets the module import and all paths run again.e691527 -
fix(jupyter): stop overriding JUPYTERLAB_DIR (assets not found)
anurag008wJupyterLab 4 ships its prebuilt application assets (static/, schemas/, staging/) inside the pip package and installs them to the system share path (e.g. /usr/local/share/jupyter/lab). JUPYTERLAB_DIR points at that assets directory — it is NOT a user settings/extensions dir. Commit d085e58 ("Fix JupyterLab writable extension paths") redirected JUPYTERLAB_DIR to an empty user-writable folder ($HC_WRITABLE_BASE/.local/share/jupyter/lab), which has no assets, so JupyterLab died on every boot with: JupyterLab application assets not found in "/home/node/.huggingclaw-runtime/.local/share/jupyter/lab" Please run `jlpm run build:core` then `jupyter lab build` or use a different app directory The settings/extensions persistence that d085e58 actually wanted is already handled by JUPYTERLAB_SETTINGS_DIR / JUPYTERLAB_WORKSPACES_DIR / JUPYTER_CONFIG_DIR / JUPYTER_DATA_DIR, which are all kept intact. Only the JUPYTERLAB_DIR override was wrong. Removed the override in all three export bloc…467fd00 -
Fix JupyterLab , key-rotator, proxy domains & runtime sudo
Anurag622b18a -
📝 CodeRabbit Chat: Implement requested code changes
coderabbitai[bot]Unverified signaturea543d47 -
📝 CodeRabbit Chat: Implement requested code changes
coderabbitai[bot]Unverified signature83ef1ca -
fix: apply CodeRabbit auto-fixes
coderabbitai[bot] +1: CodeRabbitUnverified signatureFixed 3 file(s) based on 2 unresolved review comments. Co-authored-by: CodeRabbit <noreply@coderabbit.ai>dee2321 -
fix(devdata): skip nested writable-base subtree in JUPYTER_ROOT snapshot
anurag008wFound by functional testing: in production HC_WRITABLE_BASE (/home/node/.huggingclaw-runtime) is NESTED inside JUPYTER_ROOT (/home/node), so iter_sync_tree(JUPYTER_ROOT) was descending into it and: 1. DOUBLE-uploading the Jupyter settings that snapshot() now also stores under the jupyter-config/ jupyter-data/ tags (once at top-level as .huggingclaw-runtime/.jupyter/... and once tagged) — pollutes the dataset 2. Risking leaking runtime junk under the writable base (pip site-packages, npm-global, ...) into the user's dataset on images where the legacy SKIP_PATH_PREFIXES (.local/lib, site-packages name) didn't catch them Fix: when HC_WRITABLE_BASE resolves to a path inside JUPYTER_ROOT, prune that whole subtree during the os.walk in iter_sync_tree. Settings there are already captured separately and tagged, so nothing is lost. Verified with a clean functional test reproducing the real nested config: - notebooks at root: uploaded - jupyter-config/ + jupyter-da…2671f86 -
fix(jupyter): persist user settings across restarts after writable-base redirect
anurag008wd085e58 redirected JUPYTER_CONFIG_DIR / JUPYTER_DATA_DIR into HC_WRITABLE_BASE (so settings stay writable on read-only-HOME base images), but two things still used the legacy /home/node locations: 1. jupyter-devdata-sync.py restore_once() wrote restored settings into JUPYTER_ROOT (/home/node), not the dir JupyterLab now reads from 2. devdata sync_loop() snapshotted only JUPYTER_ROOT, so new user settings written to HC_WRITABLE_BASE were never uploaded Net effect for the user: settings looked reset every restart, AND any changes made after the redirect were silently lost (never synced). Both directions were broken. Fix (two parts, both verified with functional tests): 1. start.sh: hc_migrate_jupyter_state() merges legacy /home/node/.jupyter and /home/node/.local/share/jupyter into HC_WRITABLE_BASE on every boot (no-clobber so existing/new settings in the writable base are kept), skipping transient trees (runtime/, nbconfig/). Called right before start_jupyt…b7ef6a7
-
fix some bugs
anurag008w1da7c35
-
Fix JupyterLab writable extension paths
Anuragd085e58
-
Preserve venv pip behavior with Jupyter defaults
Anurag1f050ab
-
fix(rotator): support undici 8 dispatch handler interface
OpenClaw bundles undici 8, which renamed the dispatch handler methods onHeaders/onData/onComplete/onError to onResponseStart/onResponseData/ onResponseEnd/onResponseError (statusCode now at arg index 1). The rotator's wrapUndiciHandler only instrumented the classic names, so on undici 8 none of them fired: successes were never recorded, 429/auth failures were never classified (keys never penalized/rotated), and the in-flight lease was only released by its 30s TTL (inflight_lease_expired). Instrument both interfaces in the handler Proxy; the shared settled/statusHandled guards prevent any double-counting. Classic-undici behavior (repo's undici 7) is unchanged. Verified end-to-end against real undici 8.3.0 and 7.27.0: 200 -> success recorded + lease released; 429 -> rate classified + key penalized. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>7106068 -
Merge pull request #209 from anurag008w/devin/1780455719-fix-key-rotator-auth
AnuragUnverified signatureFix Anthropic key rotation (x-api-key), Gemini stickiness, and dashboard pick counting0d5d3bf -
docs(changelog): document key-rotator auth, Gemini stickiness, and dashboard fixes
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>9578a6b -
Add sticky_pick/task_affinity_pick options to event-log filter
The rotator emits sticky_pick and task_affinity_pick events and the dashboard already counts them, but the event-log type filter had no way to select them. Add both so operators can directly confirm Gemini stickiness (and affinity reuse) in the live log. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>2c706a6 -
Fix Gemini stickiness lost when model is detected after key pick
OpenAI-compatible Gemini (and node:http) requests reach nextKey() before the request body reveals the model, so the key is picked under the temporary unknown-model sticky bucket. promoteStickyKeyModel() then deleted that bucket once the model was sniffed, so the next request again picked under an empty unknown bucket and fell back to round-robin -- defeating stickiness entirely (keys rotated on every call). Keep the unknown-model fallback bucket pinned to the same key on promotion so subsequent model-unknown picks stay sticky. The fallback is still cleared on a real provider failure via clearStickyKey()'s fallback-bucket path, so a poisoned key is still abandoned. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>753f734 -
Fix key rotation for Anthropic (x-api-key) and dashboard pick counting
Anthropic's native API authenticates via the x-api-key header, not Authorization: Bearer. The rotator only injected a Bearer header for non-Gemini providers, so anthropic pool keys were never rotated — every request kept using the caller's original x-api-key (the first promoted key). Add a per-provider authHeader and inject the rotated key into the correct header (x-api-key for anthropic) across the fetch, undici, and node:http patch paths. Also add task_affinity_pick to the manager's PICK_TYPES so the dashboard counts affinity reuses as picks instead of undercounting them. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>158e463
-
Merge pull request #208 from anurag008w/codex/fix-key-rotator-for-production-stability
AnuragUnverified signatureKey rotator: add key fingerprints (kid), improve event classification, sticky logic, and HTTP/Fetch patch robustnessfbf7667 -
Fix non-query http overload callback handling
Anuragc01cdd5 -
Merge pull request #207 from anurag008w/codex/fix-key-rotation-and-manager-functionality
AnuragUnverified signaturePropagate requestId for in-flight requests and improve pending accounting & UI4ec0290 -
Correlate rotator requests in manager accounting
Anurag9e499c7 -
Merge pull request #206 from anurag008w/codex/fix-key-rotator-error-handling
AnuragUnverified signatureEnhance key-rotator error parsing/handling and UI metrics; tweak env-builder UX/CSScef2468 -
Fix custom env builder card layout
Anurag9f5cc78 -
Merge pull request #205 from anurag008w/codex/fix-key-rotation-in-key-rotator
AnuragUnverified signatureAdd short same-task key affinity to rotator, improve inflight TTL handling, and harden WhatsApp startup/install and boot scripts72d696f -
Merge branch 'main' into codex/fix-key-rotation-in-key-rotator
AnuragUnverified signature00a44d5 -
Fix OpenClaw abort accounting and provider timeout
Anurag347107f -
Do not penalize keys for caller aborts
Anurag997574c -
Add custom env card builder
Anurag77d78fb -
Prevent boot installs from being captured
Anurag6456d8c -
Merge pull request #204 from anurag008w/codex/fix-key-rotation-in-key-rotator
AnuragUnverified signatureAdd short-lived task-affinity to key rotator and relax in-flight lease failure treatment267942f -
Bound key affinity to short bursts
Anurag4c22d5d -
Merge pull request #203 from anurag008w/codex/fix-api-rate-limit-handling
AnuragUnverified signatureKey rotator: 30s inflight TTL, auto sticky-scope, and stale-pending rotationb921ac1 -
Keep Gemini failures model scoped
Anuragaffbd4d -
Merge pull request #202 from anurag008w/codex/fix-key-rotation-manager-issues-i201hk
AnuragUnverified signatureLimit Cloudflare proxy for AI providers; configurable LLM fallback, sticky scope, and UI/instrumentation improvementsfb81013 -
Route verbose pick logs away from stderr
Anurag09b3bed
-
Merge pull request #200 from anurag008w/codex/investigate-key-rotator-issue
AnuragUnverified signatureImprove key-rotator hostname handling and sync-layer isolation; avoid inheriting NODE_OPTIONS and persisting provider secrets66b3f0d -
Isolate maintenance installs from gateway preloads
Anurag58d9010 -
Merge pull request #199 from anurag008w/codex/investigate-key-rotator-issue
AnuragUnverified signatureImprove host resolution & sync-rotation handling; avoid persisting provider secrets to config by default08da72a -
Keep provider secrets out of OpenClaw config
Anurag882b83c -
Merge pull request #198 from anurag008w/codex/investigate-key-rotator-issue
AnuragUnverified signatureFix key rotator HTTP request logging931d91e -
Fix key rotator http logs
Anurag5ead3a8 -
improve selective traversal, and provider model updates
AnuragUnverified signatureImprove sync reliability: timeouts, temp-path cleanup, selective traversal, and provider model updatesa4e1e4c -
Merge branch 'main' into codex/fix-backup-and-session-issues-in-huggingclaw
AnuragUnverified signature625d1a2 -
Fix NVIDIA GLM model id
Anuragd42fdc0 -
Refresh verified NVIDIA model catalogs
Anuragce96c5b -
fix:sync issue from previous changes
AnuragUnverified signatureMake workspace sync robust: timeouts, temp-path pruning, upload strategies, hashing, and model updatesea03885 -
Merge branch 'main' into codex/fix-backup-and-session-issues-in-huggingclaw
AnuragUnverified signature5073e3f -
Detect tiny config and session rewrites
Anurag4f44d8a