feat(agents): managed-agent control UI — delegate, approve/deny, send, cancel (Phase 3b)#109
Merged
Conversation
…, cancel (Phase 3b) The user-facing control surface for managed agents (backend in #108), in the GUI agents card: - "Delegate a task" composer → POST /api/agents/managed/start; the new agent appears in the roster via SSE. - Per managed row: Approve/Deny buttons when it's paused on a mutating tool (activity.pendingPermission), a "send a follow-up…" input (Enter → /send), and a ⏹ Cancel. Externally-started CLIs stay observe-only (no controls) — honest. - managedAction() helper POSTs /api/agents/managed/<id>/{send,cancel,approve} then refreshes. All string-concat (no regex/backtick) to respect the client script's no-interpolation template-literal invariant. - lisa-css: .delegate composer + .session-ctrl (mc approve/deny/cancel + mc-send). 705 tests pass; MAIN_HTML/ISLAND_HTML parse (html-syntax guard); snapshot updated; typecheck + build clean. (UI is DOM in the template — guarded by the parse + snapshot tests; the managed backend it drives is unit-tested.) This completes the control plane: see every agent's progress/status (Phase 1) and command LISA-run managed agents end-to-end (start/steer/approve/cancel). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The user-facing control surface for managed agents (backend in #108) — so you can start + steer + approve + cancel them from LISA. In the GUI agents card:
POST /api/agents/managed/start; the new agent appears in the roster via SSE.activity.pendingPermission), a "send a follow-up…" input (Enter →/send), and a ⏹ Cancel. Externally-started CLIs stay observe-only (no controls) — honest.managedAction()POSTs/api/agents/managed/<id>/{send,cancel,approve}then refreshes. All string-concat (no regex/backtick) to respect the client script's documented no-interpolation template-literal invariant..delegatecomposer +.session-ctrl(approve/deny/cancel + send input).Verification
MAIN_HTML/ISLAND_HTMLparse (html-syntax guard); snapshot updated;npm run typecheck+npm run buildclean.Result
Completes the control plane the user asked for:
Remaining (per plan): Phase 4 (advisor one-click serialize/cancel) — small; Phase 5 (PTY/peerProtocol to steer externally-started CLIs) — deferred, feature-flagged.
🤖 Generated with Claude Code