Repository navigation
Conversation
Add an activity_state query parameter to project and organization agent lists, apply it in SQL so pagination stays correct, and expose the same filter in the dashboard Status menu and CLI list output.
Resolve the spec conflict by keeping the shared AgentActivityState schema and moving main's note about running processes and working subagents onto it. Keep both additions in the agents overview. Regenerate the Go server, the SDK and the published OpenAPI copy from the merged spec. Complete the agent-status test fixture for the activity fields main now requires.
|
Merged current main in 9b248ae to clear the conflicts. They were in the OpenAPI spec and the agents overview, plus the generated files. In the spec, main changed the
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9b248ae. Configure here.
The Status filter could empty a project that still has agents, but the list only counted name search as filtering, so it showed the empty copy and launch action. Count a selected status as filtering too.
|
Fixed the Status empty state Bugbot flagged in ac7aa7b. A selected status now counts as filtering alongside name search, so a status with no matches shows "No results." instead of the empty copy and launch action. This covers both the project and org agent lists, since they share
|
The only conflict was in the generated internal/httpapi/openapi/api.gen.go. Regenerate it from the merged spec instead of editing it by hand.
|
Merged current main in 97ac2e0 to clear the new conflict. The only conflict was the embedded spec in the generated
The integration tests compile but did not run here, because the test harness needs the compose database. The CI workflows on this head show |

Summary
List agents (project and organization) now accepts
activity_stateso callers can keep only agents whose currentactivity.stateisrunning,idle,waiting_on_interaction, orarchived. The filter runs in the list query, so pages and cursors stay aligned with the filtered set. Passingactivity_state=archivedincludes archived agents even wheninclude_archivedis omitted.The dashboard Instances filters menu adds a Status choice for the same values.
omnara agents list --activity-stateis generated from the query parameter, and the table includes an activity column.Testing
make sqlc-checkmake sql-rulesgo test ./internal/httpapi ./internal/storage/executionstorego test -count=1 -tags=integration -run '^TestListAgentsByActivityState$' ./internal/httpapicd frontend && pnpm run typecheck && pnpm run lint && pnpm --filter @omnara/web run testDemo