Skip to content

feat: add hide/unhide agents from UI#451

Closed
danielaustralia1 wants to merge 2 commits intobuilderz-labs:mainfrom
danielaustralia1:feat/hide-agents
Closed

feat: add hide/unhide agents from UI#451
danielaustralia1 wants to merge 2 commits intobuilderz-labs:mainfrom
danielaustralia1:feat/hide-agents

Conversation

@danielaustralia1
Copy link
Contributor

Summary

  • Adds a "Hide" option to agent card action menus, persisted via a new hidden column on the agents table (migration 042)
  • Hidden agents are filtered from the default view; a "Show hidden" toggle in the panel header reveals them
  • API endpoints: POST /api/agents/[id]/hide (hide) and DELETE /api/agents/[id]/hide (unhide)
  • Hidden agents still exist in the DB and receive heartbeats — this is purely a UI filter

Changes

  • Migration 042: ALTER TABLE agents ADD COLUMN hidden INTEGER NOT NULL DEFAULT 0
  • New API route (src/app/api/agents/[id]/hide/route.ts): workspace-scoped, operator auth required
  • Agents list API (src/app/api/agents/route.ts): filters hidden agents by default, ?show_hidden=true to include them
  • Agent panel UI (agent-squad-panel-phase3.tsx): hide/unhide buttons, "Show hidden" toggle, "hidden" badge
  • Store type (src/store/index.ts): added hidden?: number to Agent interface

Test plan

  • Hide an agent → disappears from default view
  • Toggle "Show hidden" → hidden agents appear with "hidden" badge
  • Click "Unhide" → agent returns to normal view
  • State persists across page refresh and service restart
  • Hidden agents continue receiving heartbeats

🤖 Generated with Claude Code

Add min-h-0 to the kanban board flex container and its column children
so that overflow-y-auto on column bodies can actually trigger. Without
this, flexbox min-height:auto causes containers to grow unbounded
instead of constraining height and enabling scroll.

Fixes builderz-labs#376
@danielaustralia1 danielaustralia1 requested a review from 0xNyk as a code owner March 19, 2026 07:14
Add ability to hide agents from the dashboard without deleting them.
Hidden agents still receive heartbeats and exist in the DB — they are
purely hidden from the default UI view.

- Migration 042: adds `hidden` column to agents table
- API: POST/DELETE /api/agents/[id]/hide to toggle visibility
- GET /api/agents filters hidden by default, ?show_hidden=true to include
- UI: "Show hidden" toggle in panel header, Hide/Unhide button on cards
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant