Spaces:
Runtime error
Runtime error
Commit History
-
fix: correct model display logic in session details panel (#69)
nykUnverified signaturegetModelInfo() always returned the first model (haiku) for unrecognized model names because providerAliases was a truthy string used directly as a .find() predicate. Fix by comparing m.alias === matchedAlias. Credit: @TGLTommy (PR #67)c23875d -
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 -
fix: resolve all 44 failing CI E2E tests (#64)
nykUnverified signature* fix: resolve all 44 failing CI E2E tests - Bypass non-critical rate limiters in test env (MC_DISABLE_RATE_LIMIT=1) to prevent 429s when 165 tests share the same IP bucket - Make admin seed idempotent (INSERT OR IGNORE) to fix UNIQUE constraint race when multiple Next.js workers initialize concurrently - Add distinct x-forwarded-for headers to login-flow tests so they never share the critical login rate-limit bucket with other test suites - Add missing 018_token_usage migration that the heartbeat POST handler depends on, fixing the 500 on inline token reporting * docs: update README with latest features and test count - Update migration count from 15 to 18 - Update E2E test count from 146 to 165 - Move Direct CLI, OpenAPI docs, and GitHub sync to completed roadmap - Add Direct CLI and GitHub sync feature descriptions - Add /api/connect and /api/github to API reference - Remove resolved known limitation (vitest stubs) - Update repo description * fix: prevent build-time admi…1a89aa4 -
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 -
fix: resolve reconnect storm and improve Ubuntu deployment
NykFix WebSocket reconnect storm (issue #53) caused by stale closure reading connection.reconnectAttempts from Zustand state. Use a ref to track attempts, avoiding the closure capture problem entirely. Improve Dockerfile: create .data directory with correct ownership for SQLite, set PORT/HOSTNAME env vars explicitly. Add deployment guide documenting Ubuntu prerequisites (python3, make, g++ for better-sqlite3 native compilation) and platform-specific build constraints.8bdb2e3 -
Merge pull request #54 from rezero-household/fix/websocket-auth-token-field
nykUnverified signaturefix: use correct auth field in gateway WebSocket handshake842a4fa -
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
-
fix: use correct auth field in gateway WebSocket handshake
rezero-householdOpenClaw gateway configured with auth.mode='token' expects { token: '...' } in the connect handshake params, not { password: '...' }. Sending 'password' causes the gateway to reject the handshake, resulting in a disconnect→reconnect loop that floods the error log. Tested against OpenClaw gateway v2026.2.25 with auth.mode='token'.2303c2e -
fix: send jobId/jobName instead of command when triggering cron jobs
NykThe triggerJob function was sending { command: job.command } to the API, but the backend expects jobId or jobName to identify the job. This caused all manual cron triggers to fail with "Job ID required" (400 error). Also adds the missing `id` field to the CronJob store interface so TypeScript recognizes the field already returned by the API.8649dcc -
test: add 94 E2E tests covering all CRUD routes + fix middleware location
NykAdd comprehensive Playwright E2E test coverage for all major API routes: - tasks-crud (18 tests): full lifecycle, filters, Aegis approval gate - agents-crud (15 tests): CRUD, lookup by name/id, admin-only delete - task-comments (7 tests): threaded comments, validation - workflows-crud (8 tests): workflow template lifecycle - webhooks-crud (9 tests): secret masking, regeneration - alerts-crud (8 tests): alert rule lifecycle - notifications (7 tests): delivery tracking, read status - quality-review (6 tests): reviews with batch lookup - search-and-export (7 tests): global search, export, activities - user-management (8 tests): user admin CRUD - helpers.ts: shared factory functions and cleanup utilities Infrastructure fixes: - Move middleware.ts to src/middleware.ts (Next.js 16 Turbopack requires middleware in src/ when using src/app/ directory — the root-level file was silently ignored, breaking CSRF protection) - Add MC_DISABLE_RATE_LIMIT env var to bypass non-critical rate limit…447138e -
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 -
fix: enable foreign_keys pragma and add missing indexes
Nyk- Add `PRAGMA foreign_keys = ON` to db.ts — without this, all ON DELETE CASCADE constraints across 7 tables are silently ignored (SQLite disables foreign keys by default) - Add migration 015 with indexes on hot query paths: notifications(read_at), notifications(recipient, read_at), activities(actor), activities(entity_type, entity_id), messages(read_at)88c7604 -
test: add 52 Playwright E2E tests covering all critical fixes
Nyk8 test suites verifying: - Auth guards on 19 GET endpoints (Issue #4) - Timing-safe API key comparison (Issue #5) - Legacy cookie auth removal (Issue #7) - Login rate limiting (Issue #8) - CSRF Origin header validation (Issue #20) - DELETE body standardization (Issue #18) - Query limit caps at 200 (Issue #19) - Login flow and session lifecycle Also fixes migration 013 crash on fresh DB when gateways table doesn't exist (created lazily by gateways API, not in migrations).e1e5820 -
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