Spaces:
Runtime error
Runtime error
Commit History
-
feat(#159): add Agent-Level Identity & Attribution
- Add agent_name field to User interface for agent-level tracking - Extract X-Agent-Name header in getUserFromRequest for attribution - New GET /api/agents/[id]/attribution endpoint with sections: - identity: agent profile, lifetime stats, session info - audit: full activity trail + audit log entries for the agent - mutations: task changes, comments, status transitions attributed - cost: token usage by model with daily trend breakdown - Backward compatible: X-Agent-Name is optional, existing auth unchanged Fixes #159659dcd6 -
feat(#160): add Real-Time Workload Signals API endpoint
New GET /api/workload endpoint providing system-wide capacity metrics and throttle recommendations for agent load awareness. Response sections: - capacity: active tasks, recent task/error rates, completion throughput - queue: pending task depth by status/priority, estimated wait time - agents: online/busy/idle counts, busy ratio, per-agent load distribution - recommendation: actionable signal (normal|throttle|shed|pause) with reasons, submit_ok flag, and suggested delay - thresholds: current threshold configuration for transparency Recommendation engine factors: - Queue depth (20/50/100 thresholds) - Agent saturation ratio (80%/95%) - Error rate in last 5 minutes (10%/25%) - Agent availability (pause if none online) Fixes #160687f7e3 -
feat(#163): add Agent Self-Diagnostics API endpoint
New GET /api/agents/[id]/diagnostics endpoint enabling agents to query their own performance data for self-optimization. Sections (selectable via ?section= query param): - summary: KPIs (throughput, error rate, activity count) - tasks: completion breakdown by status/priority, throughput/day - errors: error frequency by type, recent error details - activity: activity breakdown with hourly timeline - trends: current vs previous period comparison with auto-alerts - tokens: token usage by model with cost totals Features: - Scoped to requesting agent only (no cross-agent data access) - Configurable time window via ?hours= param (1-720h) - Automatic trend alerts for error spikes, throughput drops, stalls - Works with existing activities, tasks, and token_usage tables Fixes #163255b4ea -
fix: correct token costing and add provider subscription detection
Nyka744127 -
feat: add validated @mentions for tasks and comments
Nyk200c64b -
Merge pull request #155 from builderz-labs/feat/issues-146-143-145
nykUnverified signaturefeat: workspace discoverability and multi-project task support90c8b4e -
fix: unify agent config save across mission control and gateway
Nyka3ca4cc -
merge: resolve PR conflicts and add OpenClaw offline E2E harness
Nyk39fe4a7 -
feat: add workspace discoverability and multi-project task support
Nyk64eac97 -
fix: add OpenClaw 3.2 compatibility for spawn and gateway health
Nyke7f2128 -
feat: upgrade local-mode virtual office and flight deck integration
Nykab90450 -
feat: scope workflows and webhooks to workspace (#132)
nykUnverified signatured1086d3
-
feat: phase 1 workspace isolation across auth and core APIs (#112)
nykUnverified signature* feat: add workspace-scoped auth sessions and core API filtering * feat: extend workspace scoping to search status standup and messaging * feat: scope agent connect github and alert workflows by workspace * fix: scope status sync and session alerts by workspace * feat: add phase2 workspace migration and scope chat pipeline alerts * feat: add model selection for agents and cron jobs * feat: add deterministic agent avatars to task and squad views * feat: add read-only cron calendar and agenda views * feat: render task descriptions with markdown4e0867d -
feat: enrich agent config with workspace identity and tools
nykUnverified signature5be7cdc -
feat: aggregate token usage from db with stable agent grouping
nykUnverified signaturec630ac6 -
fix: sync agent SOUL content with workspace files (#91) (#95)
nykUnverified signatureWorkspace file is now the primary source for soul.md with DB as fallback. Reads prefer workspace → DB. Writes go to both. Config sync imports soul.md from each agent's workspace using double resolveWithin guard to prevent path traversal.beb89d9 -
feat: add Update Available banner with GitHub release check (#94)
nykUnverified signature* fix: migrate middleware.ts to proxy.ts for Next.js 16 (#88) Next.js 16 deprecated the `middleware` file convention in favor of `proxy`. The proxy runs on the Node.js runtime instead of Edge, so safeCompare now uses crypto.timingSafeEqual instead of manual XOR. All auth logic, CSRF validation, host matching, and security headers are preserved unchanged. * feat: add "Update Available" banner with GitHub release check Add a dismissible emerald banner that appears when a newer GitHub release exists, so self-hosting users know an update is available. The banner dismisses per-version (reappears for new releases). - Create src/lib/version.ts as single source of truth from package.json - Add /api/releases/check route with 1hr caching and graceful fallback - Add UpdateBanner component mirroring LocalModeBanner pattern - Add update state to Zustand store with localStorage persistence - Fix hardcoded v2.0 in header-bar.tsx and 2.0.0 in websocket.ts1b11b46 -
fix: task board SSE wiring, priority enum, webhook event, auto-advance, parallel broadcast (#73) (#89)
nykUnverified signature- Wire task board panel into Zustand store for real-time SSE updates instead of local useState; add useSmartPoll fallback when SSE disconnects - Fix priority enum mismatch: UI now uses 'critical' matching the Zod validation schema instead of 'urgent' - Add 'task.status_changed' to webhook EVENT_MAP so external consumers receive status transition events - Auto-advance task to 'done' column when aegis quality review approves, broadcasting task.status_changed for real-time UI update - Parallelize broadcast loop with Promise.allSettled so N agents execute concurrently (~10s) instead of serially (N×10s) Closes #73d29b161 -
fix: deduplicate sessions by sessionId and add task edit modal (#86)
nykUnverified signatureDeduplicate gateway sessions server-side using sessionId as primary key, falling back to agent:key composite for sessions without sessionId. This prevents duplicate React keys when OpenClaw tracks cron runs under the same session ID as the parent session. Also adds EditTaskModal to the task board panel with inline edit button in the task detail modal, and improves CreateTaskModal error handling. Cherry-picked and adapted from PR #77 by @arana198. Closes #8054ae8f3 -
fix: healthcheck auth, secure cookie auto-detect, model object crash (#84)
nykUnverified signatureBug 1 (#78): Dockerfile HEALTHCHECK curled authenticated /api/status, always got 401 in production. Changed to /login which is public. Bug 2 (#78): Login hangs on HTTP deployments because secure=true cookie is silently rejected. Now auto-detects protocol from x-forwarded-proto header, only sets secure when request actually came over HTTPS. Bug 3 (#78): Agent model field from OpenClaw 2026.3.x is {primary: "name"} object instead of string, causing React error #31. Added normalizeModel() helper and applied it in all WebSocket/session mapping code paths.f5d72bc -
feat: add local mode auto-detection for no-gateway users (#83)
nykUnverified signatureWhen no OpenClaw gateway is detected, Mission Control now automatically switches to Local Mode — showing a clear info banner, greying out gateway-dependent panels, and surfacing Claude Code session stats, GitHub profile data, and subscription-aware cost display. Changes: - Add capabilities endpoint to detect gateway, Claude home, subscription - Add dashboardMode/gatewayAvailable/subscription state to Zustand store - Add dismissible LocalModeBanner component - Grey out Agents/Spawn/Config nav items when no gateway - Show blue "Local Mode" indicator instead of red "Disconnected" - Dashboard shows local metric cards (sessions, projects, tokens, cost) - Claude Code Stats panel with session/token/cost breakdown - GitHub panel with repo stats, languages, star/fork counts - Subscription detection from ~/.claude/.credentials.json - Show "Included (Max plan)" instead of dollar cost for subscribers - Fix token cost estimation (cache reads at 10%, not 100%) - Sessions API falls back to local Cla…bfb8731
-
fix: cherry-pick improvements from PR #57 (#71)
nyk +1: Doan Bac TamUnverified signatureCherry-picks three valuable fixes from @doanbactam's WebSocket refactor PR: 1. Feed item ID collision fix — prefix log IDs with 'log-' to avoid React key collisions with activity IDs in the combined feed 2. Jittered reconnect backoff — add random jitter (0-50% of base) to WebSocket exponential backoff to prevent thundering-herd reconnects when multiple tabs reconnect after a server restart 3. Cron job deduplication + async I/O — deduplicate jobs.json entries by name (keeps latest), prevent duplicates on add, and convert sync file reads/writes to async to avoid blocking the event loop Co-authored-by: Doan Bac Tam <24356000+doanbactam@users.noreply.github.com>56c873a -
feat: audit hardening, webhook retry, and local Claude session tracking (#68)
nykUnverified signatureSecurity hardening: - Fix timing-safe comparison bugs in webhooks.ts and auth.ts (was comparing buffer with itself) - Harden rate limiter IP extraction — use rightmost untrusted IP from XFF chain with MC_TRUSTED_PROXIES support - Add 12-char minimum password validation in Zod schema and runtime check - Add Zod validation on PUT /api/tasks bulk status update Webhook retry system (completing in-progress feature): - Exponential backoff with circuit breaker in webhooks.ts - POST /api/webhooks/retry endpoint for manual retry - GET /api/webhooks/verify-docs endpoint for signature verification docs - Scheduler integration for automatic retry processing - Unit tests for signature verification and backoff logic Local Claude Code session tracking: - New claude-sessions.ts scanner parses JSONL transcripts from ~/.claude/projects/ - Extracts model, tokens, messages, cost estimates, active status per session - Migration 020 adds claude_sessions table - GET/POST /api/claude/sessions endpoint with …959f8d7 -
feat: add GitHub Issues sync (Phase 1, Issue #58)
NykImport GitHub issues as Mission Control tasks with duplicate detection, priority mapping from labels, and bidirectional actions (comment/close). - Migration 017: github_syncs table for sync history tracking - GitHub API client (src/lib/github.ts) with fetch, comment, close ops - POST/GET /api/github route with sync, comment, close, status actions - GitHubSyncPanel UI: import form, issue preview, sync history, linked tasks - Nav rail + page router wiring - 6 E2E tests (all passing) - Validation schema + github.synced event type8dc7515 -
feat: add direct CLI integration for gateway-free tool connections
Nyk- Add migration 016 for direct_connections table - Add POST/GET/DELETE /api/connect for CLI tool registration - Enhance heartbeat POST to accept connection_id and inline token_usage - Add connectSchema to validation - Add connection.created/disconnected event types to event bus - Show direct CLI connections in gateway manager panel - Add 5 E2E tests for connection lifecycle - Add CLI integration documentation (docs/cli-integration.md) - Fix openapi.json brace mismatch on line 642 (Phase 2 bug) - Add /api/connect endpoints to OpenAPI specf762929 -
feat: add OpenAPI 3.1 documentation with Scalar UI
Nyk- Add openapi.json spec covering all 59 API routes (~95 operations) - Serve spec at GET /api/docs (no auth required, cached) - Add interactive Scalar API reference UI at /docs - Allow unauthenticated access to /api/docs and /docs in middleware - Add @scalar/api-reference-react dependency - Add 3 E2E tests for spec validation and auth bypass13daa38 -
feat: add per-agent cost breakdown panel
Nyk- Add `agents` field to tokens action=stats response (groups by agent extracted from sessionId split on ':') - Add new action=agent-costs returning per-agent stats, model breakdown, session list, and daily cost/token timeline - New AgentCostPanel with summary cards, pie chart, trend lines, efficiency bars, and expandable ranking table - Add nav-rail entry in OBSERVE group after Tokens - Add ContentRouter case for agent-costs tab - Add 5 E2E tests for the new API endpoints473b701
-
feat: v1.2.0 — validation hardening, unit tests, quality improvements
Nyk- Fix task status enum mismatch (blocked → quality_review) - Add 12 Zod schemas for all unvalidated mutation routes - Apply validateBody() across 11 API route handlers - Add readLimiter (120/min) for GET-heavy endpoints - Extend heavyLimiter to search, backup, cleanup routes - Add security headers (X-Content-Type-Options, X-Frame-Options, Referrer-Policy) - Fill auth test stubs with real assertions (safeCompare, requireRole) - Add validation, rate-limit, and db-helpers unit test suites (60 tests total) - Replace as-any casts with typed interfaces (SessionQueryRow, UserQueryRow, CountRow) - Bump version to 1.2.0, add CHANGELOG.md, update README roadmapbfccd36 -
fix: scrub deployment-specific data from public repo
Nyk- Replace hardcoded Telegram bot integrations (Jarv/Forge/Nefes/Ops) with a single generic Telegram entry - Remove 'forge' agent from hardcoded UI color themes - Replace /home/openclaw/ paths in .env.example with /path/to/ - Fix default port in scripts: 3005 → 3000 (matches docs) - Replace 'Jarvis' placeholder with generic 'my-agent' - Rename 'Forge' → 'Builder' in agent identity registry2d79c1a
-
fix: patch command injection, missing rate limit, Docker build, logger crash
Nyk- Sanitize session ID in control route to prevent command injection via unsanitized URL params interpolated into shell commands - Add mutationLimiter and structured logging to session control endpoint - Install python3/make/g++ in Dockerfile deps stage for better-sqlite3 native addon compilation - Handle missing public/ directory in Docker COPY with glob pattern - Guard pino-pretty transport against missing devDependency at runtimea2745d4 -
Merge remote-tracking branch 'origin/main' into feat/medium-priority-v1.1
Nyk# Conflicts: # src/app/api/agents/route.ts # src/app/api/alerts/route.ts # src/app/api/auth/login/route.ts # src/app/api/spawn/route.ts # src/app/api/tasks/[id]/route.ts # src/app/api/tasks/route.ts # src/app/api/webhooks/route.ts # src/lib/validation.ts05adc4a -
feat: error boundaries, pino logger, a11y, HSTS, zod validation, export limits
Nyk2afed80 -
feat: add Docker support, session controls, model catalog, API rate limiting
Nykb608851 -
chore: CODE_OF_CONDUCT, issue templates, DELETE patterns, limit caps, CSRF origin check
Nyk- Add Contributor Covenant 2.1 Code of Conduct (Closes #16) - Add bug report and feature request issue templates (Closes #17) - Standardize DELETE handlers to use request body instead of query params (Closes #18) - Cap unbounded limit params to Math.min(limit, 200) on 12 endpoints (Closes #19) - Add CSRF Origin header validation for mutating requests in middleware (Closes #20)391842a -
fix: strict mode, test stubs, pagination counts, N+1 queries, CSP hardening
Nyk- Enable TypeScript strict mode and fix all resulting type errors - Add auth test stubs for requireRole and safeCompare - Add proper COUNT(*) pagination totals to agents, tasks, notifications, messages, conversations, and standup history endpoints - Fix N+1 queries by hoisting db.prepare() outside loops in agents, activities, notifications, conversations, standup, gateway health, and notification delivery routes - Remove unsafe-eval from CSP script-src directive - Remove deprecated X-XSS-Protection headerd258620 -
fix: remove legacy auth, add login rate limiting, block SSRF metadata, parameterize migration SQL
Nyk97dff67 -
fix: add auth checks on all GET endpoints, timing-safe comparisons, and XSS sanitization
Nyk1dc7696
-
feat: initial open-source release
NykOpenClaw Mission Control — agent orchestration dashboard. Built with Next.js 16, React 19, TypeScript, SQLite, and Tailwind CSS. MIT License.bbbc03f