feat(dashboard): agent-scoped e/p, drop discover-and-prompt path #41
Reference in New Issue
Block a user
Delete Branch "chunk-4-agent-scoped-edits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
PRD 0019 chunk 4 (the last one). The
e(routes edit) andp(pipelock edit) keys now require an agent selection in the agents pane. Pressing them with the proposals pane focused, with no active agents, or with an out-of-range selection is a no-op with a status hint (no agent selected; Tab into the agents pane first).The discover-and-prompt scaffolding inside
_operator_edit_routes_flow/_operator_edit_allowlist_flow/_operator_edit_flowis gone. The flows take anActiveAgent+ required-service name; they refuse with a clear message when the bottle lacks the requested sidecar (e.g.,routes editagainst a bottle with nobottle.egress.routesdeclared, so no egress sidecar). Thediscover_egress_slugs+discover_pipelock_slugs+_discover_active_with_servicehelpers come out — they had no remaining callers.Footer reflects the new model:
[e/p] edit selected agent.Status
_selected_agentand the require-service guard)TestDiscoverEgressSlugs.test_returns_empty_when_docker_unavailable) — covered the deleted helpers; the new agents-pane discovery path's empty-docker behavior is covered bydiscover_active_agentstests alreadyPRD 0019 chunk 4 (final). The `e` (routes edit) and `p` (pipelock edit) keys now require an agent selection in the agents pane. Pressing them with the proposals pane focused, with no active agents, or with an out-of-range selection is a no-op with a status hint ("no agent selected; Tab into the agents pane first"). The discover-and-prompt scaffolding inside `_operator_edit_routes_flow` / `_operator_edit_allowlist_flow` / `_operator_edit_flow` is gone. The flows now take an `ActiveAgent` + required-service name; they refuse with a clear message when the bottle lacks the requested sidecar (e.g., `routes edit` against a bottle with no `bottle.egress.routes` declared). The `discover_egress_slugs` + `discover_pipelock_slugs` + `_discover_active_with_service` helpers come out — they had no remaining callers. Footer now reads `[e/p] edit selected agent`.