Spaces:
Sleeping
Sleeping
Commit History
-
fix: bash command validation - catch JSON/Python/bare URLs before execution, prevent exit 127 confusion
Claw Web880ee90
-
feat: Qwen3 uncensored prompt + Manus-style UI + P0 bug fixes
Claw WebSystem Prompt: - Policy Puppetry XML format with blocked refusal strings - /no_think directive to disable thinking blocks - Qwen3-Coder specific chat_template_kwargs to disable thinking API-side - Full autonomy rules and developer mode framing Manus-style UI: - Split-screen layout with ResizablePanelGroup - ActionTree component showing tool execution timeline - Dark theme by default - Action panel toggle button in toolbar P0 Bug Fixes: - Session state persistence (todoLists, planModes) to SQLite - Fixed double stringify in normalizeMessage for tool results - Fixed readFile OOM for large files (>10MB) - Removed duplicate /context case in chat-endpoint.ts064d9d1 -
Fix all 10 critical audit bugs:
Claw Web1. LLM-based compaction (real summarization instead of heuristics) 2. Dynamic tool_choice (force TodoWrite in plan mode) 3. In-memory state preserved across compaction 4. Shell injection fix in grepSearch (execFileSync) 5. Glob matching fixed (**, trailing slashes, edge cases) 6. readFile size limit (10MB cap + 30k output truncation) 7. React state immutable updates (no direct mutation) 8. Hooks config supports all naming conventions 9. DeepInfra API key hardcoded + Qwen3-Coder-480B-Turbo default 10. Max settings: 256k context, 32k tokens, temp 0.5c663926 -
fix: critical tool chain + planning + autonomy bugs
Claw Web- Add TodoRead tool definition (was missing - model couldn't read its own plan!) - Add TodoRead PascalCase case to executor - Fix processStream: process remaining buffer after stream ends - Fix processStream: detect finish_reason=length truncation - Fix JSON parse error: tell LLM about malformed args instead of silent empty {} - Fix content null vs empty string for assistant messages with tool_calls - Remove double post-hook execution (was in both executor.ts and agent.ts) - Preserve todo/plan state during compaction (inject into compacted messages) - Add TodoRead + compaction recovery instructions to system prompt - Export todoLists from executor for compaction state access4d96cf9 -
Full parity with original Rust: session validation, sandbox detection, remote proxy, hooks payload, LSP shutdown
Claw Web- session.ts: Validated deserialization with SessionError (matches Rust Result<>) - sandbox.ts: Full container detection (podman, kubernetes_service_host, containerd, libpod) - sandbox.ts: Complete SandboxStatus (requested, supported, active, namespaceSupported, networkSupported) - sandbox.ts: commandExists via PATH scan instead of execSync (matches original) - remote.ts: All 8 UPSTREAM_PROXY_ENV_KEYS (https_proxy, CURL_CA_BUNDLE, NODE_EXTRA_CA_CERTS, etc) - remote.ts: subprocessEnv includes lowercase proxy vars and CURL_CA_BUNDLE - executor.ts: Hook payloads match original hooks.rs (hook_event_name, tool_input, tool_input_json, tool_output, tool_result_is_error) - executor.ts: Hook env vars (HOOK_EVENT, HOOK_TOOL_NAME, HOOK_TOOL_INPUT, HOOK_TOOL_IS_ERROR, HOOK_TOOL_OUTPUT) - executor.ts: Hooks use stdin pipe instead of echo (matches CommandWithStdin pattern) - lsp-client.ts: stderr drain with resume() to prevent buffer hang - lsp-client.ts: Graceful shutdown wait (3s timeout) before f…49cbb33 -
fix: revert max_tokens to 16384 (output tokens, not context window)
Claw Web- max_tokens is OUTPUT token limit, not context window - MiMo-V2-Flash max output = 16384-32768 tokens - 1M was causing 400 error from HuggingFace Router - Slider max reduced to 64k, quick-select: 4k, 8k, 16k, 32k, 64k - API tab removal preserved (that was correct)e46d888 -
feat: remove API settings tab, set default max tokens to 1M
Claw Web- Remove API tab from Settings UI (built-in HuggingFace Router, no config needed) - Set default maxTokens to 1,000,000 everywhere: - agent.ts DEFAULT_CONFIG - llm.ts DEFAULT_MAX_TOKENS - routers.ts settings defaults - chat-endpoint.ts config builder - db.ts schema default - executor.ts sub-agent max_tokens - SettingsPanel.tsx form defaults and quick-select buttons - Update quick-select buttons: 64k, 128k, 256k, 512k, 1M, 1.05M - Remove API Key/Base URL from /config status output44b38a1 -
feat: MCP tools dynamic injection into agent TOOL_DEFINITIONS
Claw Web- agent.ts: Initialize MCP servers from .claw/settings.json config at start of agent loop - agent.ts: Merge discovered MCP tools with static TOOL_DEFINITIONS for LLM requests - agent.ts: Convert MCP tool format (name/description/input_schema) to OpenAI function calling format - executor.ts: Route mcp__* prefixed tool calls through McpServerManager.callTool() - Non-fatal: MCP init failure doesn't break agent, continues with static tools only - Matches original claw-code behavior: dynamic tool list with MCP server discoveryb423b58
-
Major update: fix 400 error, 1M context, real Agent/PR/Issue, no auto-compact
Claw Web- Fix 400 API error: JSON.parse tool_calls from DB (was string, not array) - Remove auto-compact: only manual /compact as in original - Max tokens slider: 1k to 1M (1,048,576) with preset buttons - Agent tool: real sub-agent with restricted tool sets per type (Explore, Plan, Verification) - Agent: async background execution with .md/.json manifest files - /pr: actually calls gh pr create (falls back to draft) - /issue: actually calls gh issue create (falls back to draft) - Task/Cron panels: JSON API endpoints already working58eb982 -
Fix 400 error (tool_calls JSON parse), rewrite WebFetch/WebSearch 1:1 from original claw-code
Claw Webbea12d2 -
fix: mobile responsive, max tokens 128k, HuggingFace models, Quick Select UI
Claw Web- Mobile: hamburger sidebar, overlay sheet, hide toolbar buttons, full-width panels - Settings: max tokens slider 1k-128k with preset buttons (4k/8k/16k/32k/64k/128k) - Settings: Quick Select shows short model names (MiMo Flash, Qwen3 8B, etc) - Settings: added HuggingFace as API provider option - Config: default maxTokens 16384 everywhere (db, schema, routers, executor) - Config: updated model defaults to MiMo-V2-Flash across all files - UI: responsive grid, adaptive padding, hidden keyboard hints on mobile68a3bb7 -
Claw Web v1.0 — AI Agent Web Interface with MiMo-V2-Flash
Claw Web7540aea