Commit Graph

143 Commits

Author SHA1 Message Date
Nyk 3f2ecad411 chore: resolve merge conflict with main for PR #178 2026-03-05 12:44:32 +07:00
nyk 8a577590b5
Merge pull request #177 from bhavikprit/feat/163-agent-diagnostics
feat(#163): add Agent Self-Diagnostics API endpoint
2026-03-05 12:36:55 +07:00
Nyk 4296943e05 fix(workload): harden signal recommendations and add route e2e coverage 2026-03-05 12:35:01 +07:00
Nyk a63ec39d3b chore: resolve merge conflict with main for PR #177 2026-03-05 12:27:51 +07:00
Nyk 0f8f0a87e4 fix(agents): enforce diagnostics self-scope and validation 2026-03-05 12:12:32 +07:00
nyk 0e14683a12
Merge pull request #201 from builderz-labs/fix/184-assignment-status-normalization
fix(tasks): auto-normalize assignment status transitions
2026-03-05 12:05:01 +07:00
nyk 32f1e4b48a
Merge pull request #200 from builderz-labs/fix/198-auth-ux-redirect
fix(auth): redirect unauthenticated panel requests to login
2026-03-05 12:04:43 +07:00
Nyk 722c690cf4 fix(e2e): run standalone server in Playwright CI startup 2026-03-05 12:00:43 +07:00
Nyk a34caa1752 fix(e2e): run standalone server in Playwright CI startup 2026-03-05 11:42:25 +07:00
Nyk dd759dcdb9 fix(e2e): increase playwright webServer startup timeout 2026-03-05 11:28:47 +07:00
Nyk 99833f5c53 fix(websocket): declare ping support ref for type safety 2026-03-05 11:21:27 +07:00
Nyk 17b51623be fix(websocket): declare ping support ref for type safety 2026-03-05 11:16:52 +07:00
Nyk 4e3b52c06c fix(tasks): auto-normalize assignment status transitions 2026-03-05 11:13:48 +07:00
Nyk d2edc71861 fix(auth): redirect unauthenticated panel requests to login 2026-03-05 11:11:16 +07:00
ResistanceDown 41bfff8f79
Mission Control: Habi readiness wiring + office segmentation (#187)
* fix mission control wiring for habi memory/orchestration/retention

* feat office org-chart segmentation controls

---------

Co-authored-by: Jeremy Phelps <kokoro@Kokoro.local>
2026-03-05 11:00:54 +07:00
beeman 9d39e51f56
fix: prevent Live Feed sidebar from sliding in on page navigation (#181)
Only apply the slide-in-right animation when the user actively
re-expands the panel, not on initial mount. Also remove dead
duplicate files src/live-feed.tsx and src/page.tsx.
2026-03-05 11:00:44 +07:00
Patrick 6f2f0e74af
feat: add configurable PORT for dev and start servers (#179)
- package.json: dev and start scripts now use ${PORT:-3000}
- Dockerfile: healthcheck uses ${PORT:-3000}, ENV PORT=3000 as default
- docker-compose.yml: passes PORT env to container, maps MC_PORT to PORT
- .env.example: documents PORT variable

Set PORT=<number> to change the listening port. Defaults to 3000.
Previously dev used Next.js default (3000) and start hardcoded 3005.
2026-03-05 11:00:34 +07:00
Bhavik Patel 298fbef562
fix: lock task comment author to authenticated user
- Remove manual Author text input from comment form (security concern)
- Use authenticated currentUser.username as comment author automatically
- Display 'Posting as <username>' read-only indicator
- Add inline documentation explaining comment vs broadcast semantics
- Document subscription model: auto-subscribed on create, assign, comment, @mention

Fixes #167
2026-03-05 10:58:53 +07:00
Bhavik Patel 3ef4c5a83a
feat: expand OpenAPI spec coverage and docs metadata
- Add 11 missing API routes to openapi.json (70 total paths now)
  - /api/docs, /api/mentions, /api/projects, /api/projects/{id},
    /api/projects/{id}/tasks, /api/quality-review, /api/claude/sessions,
    /api/github, /api/releases/check, /api/webhooks/retry,
    /api/webhooks/verify-docs
- Add 5 new tags: Projects, Mentions, Quality, Releases, Docs
- Add Project schema to components
- Bump spec version to 1.3.0
- Sort all paths alphabetically for consistency
- Interactive Scalar docs page already at /docs (unchanged)

Fixes #158
2026-03-05 10:58:51 +07:00
Bhavik Patel 4ab6f8a5a1
fix: improve workspace creation discoverability in super admin
- Add prominent '+ Add Workspace' button in the Super Admin header
  (always visible, next to Refresh)
- Replace hidden 'Show Create Client Instance' toggle with a clear
  'Create New Workspace' section with close (×) button
- Highlight the create form with primary border when open
- Improve instructional text for the creation workflow

Fixes #169
2026-03-05 10:58:49 +07:00
Bhavik Patel 0557bd7385
fix: restore @mention autocomplete visibility in task modal
- Increase MentionTextarea dropdown z-index to z-[60] so it renders
  above z-50 modals (was z-20, clipped by overflow-y-auto on modal)
- Replace plain textarea in broadcast section with MentionTextarea
  for consistent @mention support across all text inputs
- Add hint text to broadcast placeholder about @mention usage

Fixes #172
2026-03-05 10:58:47 +07:00
Bhavik Patel b130b881a0
docs: improve workspace and memory UX guidance
Issue #146 — How to add workspace:
- Add Workspace Management section to README with Super Admin panel docs
- Add Super Admin API endpoints to API overview table
- Add info banner in Settings panel (admin only) linking to Super Admin

Issue #143 — Memory tab in agent view:
- Add info banner in agent Memory tab clearly distinguishing agent
  working memory (DB scratchpad) from workspace memory files
- Add clickable link to Memory Browser page from agent Memory tab
- Improve subtitle text with WORKING.md storage detail

Fixes #146
Fixes #143
2026-03-05 10:58:45 +07:00
nyk ec9ba45628
feat: provision full OpenClaw workspaces from agent creation 2026-03-05 10:57:17 +07:00
fulgore d59b2e70a1
fix: macOS compatibility for status commands and gateway client id
Replace Linux-only commands (uptime -s, free -m, df --output=pcent) with
cross-platform alternatives using process.platform detection and Node.js
os module. Rename gateway client ID from control-ui to openclaw-control-ui.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 10:57:15 +07:00
Bhavikprit b38ad43272 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 #160
2026-03-04 23:12:45 +04:00
Bhavikprit 047216dbe2 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 #163
2026-03-04 23:10:19 +04:00
Nyk 79984702de feat: provision full OpenClaw workspaces from agent creation 2026-03-05 00:17:23 +07:00
nyk 4cb86bc80b
Merge pull request #168 from builderz-labs/fix/165-agent-modal-ui
feat: improve agent detail modal visual design
2026-03-05 00:14:23 +07:00
nyk 12b82168e5
Merge pull request #166 from builderz-labs/fix/164-token-cost-subscription-detection
fix: correct token cost math and add subscription-aware provider detection
2026-03-05 00:14:02 +07:00
Nyk 2413ab22a0 feat: improve agent detail modal visual design 2026-03-05 00:10:49 +07:00
Nyk 13e91d3d33 fix: correct token costing and add provider subscription detection 2026-03-05 00:05:14 +07:00
nyk e8623ac7f0
Merge pull request #162 from builderz-labs/feat/156-task-mentions
feat: add validated @mentions for task descriptions and comments
2026-03-04 23:56:22 +07:00
Nyk 36d5891d85 feat: add validated @mentions for tasks and comments 2026-03-04 23:37:45 +07:00
nyk dc4a3c539c
Merge pull request #155 from builderz-labs/feat/issues-146-143-145
feat: workspace discoverability and multi-project task support
2026-03-04 23:25:06 +07:00
nyk 68b4de83d1
Merge pull request #157 from builderz-labs/fix/154-unified-agent-save
fix: unify agent config save in one backend operation
2026-03-04 23:23:20 +07:00
Nyk eebaaacda3 test: exclude openclaw harness spec from default e2e suite 2026-03-04 23:21:29 +07:00
Nyk 914a6c4cd0 fix: unify agent config save across mission control and gateway 2026-03-04 23:18:23 +07:00
Nyk caf1dbf5ef merge: resolve PR conflicts and add OpenClaw offline E2E harness 2026-03-04 23:11:59 +07:00
nyk e3c33a6a0c
Merge pull request #139 from bhavikprit/feat/39-structured-logging
feat(#39): replace console.log/error/warn with structured client logger
2026-03-04 22:49:06 +07:00
Nyk a9df1a25a5 feat: add workspace discoverability and multi-project task support 2026-03-04 22:44:57 +07:00
nyk f866861eb4
Merge pull request #141 from telnyxpete/security-hardening
Fix XSS in memory-browser-panel
2026-03-04 22:28:16 +07:00
nyk e67350095b
Merge branch 'main' into feat/39-structured-logging 2026-03-04 22:27:52 +07:00
nyk e8229cd290
feat: add URL-based task deep links and agent task links 2026-03-04 22:26:06 +07:00
Nyk 4b3781c9cc feat: add task URL deep-linking and agent task links 2026-03-04 22:24:42 +07:00
Nyk d1d75b3b15 fix: resolve cron calendar and auth regressions from open issues 2026-03-04 22:18:57 +07:00
Nyk 0e01f5d4b3 fix: add OpenClaw 3.2 compatibility for spawn and gateway health 2026-03-04 21:59:20 +07:00
nyk a79a6c22dd
Merge branch 'main' into feat/39-structured-logging 2026-03-04 21:21:38 +07:00
nyk 6a49751599
Merge pull request #138 from bhavikprit/feat/40-accessibility
feat(#40): improve frontend accessibility (WCAG 2.1 AA)
2026-03-04 21:20:49 +07:00
Bhavik Patel 882fbcb74c
fix: enable editing identity, sandbox, and tools in agent config UI (#148)
* fix(#140): enable editing of identity, sandbox, and tools in agent config UI

The ConfigTab's structured view only showed read-only displays for
Identity, Sandbox, and Tools sections even when in edit mode. Added
inline editing controls:

- Identity: emoji, name, theme/role inputs + identity content textarea
- Sandbox: mode/workspace dropdowns + network input
- Tools: allow/deny lists with add/remove buttons and Enter key support

Also added helper functions (updateIdentityField, updateSandboxField,
addTool, removeTool) and state for new tool entries.

Fixes #140

* fix: align sandbox edit values with agent schema

---------

Co-authored-by: Nyk <0xnykcd@googlemail.com>
2026-03-04 17:00:25 +07:00
Bhavik Patel 49158507d8
fix: improve Docker build reliability and layer caching (#137)
- Fix deps stage: copy only package.json + pnpm-lock.yaml* for proper
  layer caching instead of COPY . . which invalidates cache on any change
- Copy node_modules from deps into build stage separately from source
- Copy schema.sql into runtime stage (migration 001_init reads it at
  runtime via process.cwd(), but standalone output omits source files)
- Remove broken public* glob COPY (no public/ dir exists; Docker COPY
  fails silently with incorrect glob syntax)
- docker-compose: add container_name, configurable port via MC_PORT,
  mark .env as optional to avoid startup failure if missing

Fixes #129
2026-03-04 16:57:00 +07:00