Repository navigation
feat: pick an automation's agent from a list with avatars - #201213
Conversation
The automation editor's Agent row was a text field: people had to know and type an agent id. It now uses the shared agent picker, showing each agent's avatar and name, a Default choice that leaves the agent to the Gateway, and a stored id that is no longer on the Gateway as Not found until changed. Default replaces the Advanced "Clear agent override" toggle, and the row is left out when the Gateway has one agent. Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 51ba790a-e921-41af-be86-7fc7e04b387e
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesReplaces the automation editor’s agent ID text field with the shared avatar picker, including Default and missing-agent choices. Example: Create an automation for the agent with ID writer and name Writer.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: the picker improves agent selection, but its CSS growth causes the required performance check to fail. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Automations editor presents the Gateway agent roster and updates the existing cron form, whose save owner sends agent IDs or explicit clearing through cron RPCs. flowchart LR
A[Gateway agent roster] --> B[Automation editor]
B --> C[Shared avatar picker]
C --> D[Existing cron form]
D --> E[Cron save owner]
E --> F[Gateway cron RPC]
Technical reviewBest possible solution: Keep the shared-picker integration and existing save owner, while consolidating the added styling enough to satisfy the paired CSS budget. Do we have a high-confidence way to reproduce the issue? Current-main source confirms the existing text-field interaction, and the supplied screenshots demonstrate the proposed picker; no target code was executed during this review. Is this the best way to solve the issue? Reusing the existing picker and retaining the cron save owner is the smallest coherent implementation; the three added browser cases cover distinct selection, clearing, and single-agent behavior. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f7c680434384. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +44, Tests +102. Total +146 across 8 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 18, 2026, 8:30 AM ET / 13:30 UTC. |
…01213) Use the shared avatar picker to choose an automation's agent, while preserving the Gateway default and existing saved IDs. Maintainer-approved exception: generated CSS size only. Other required checks and security review were verified on the reviewed head. CI: https://github.com/openclaw/openclaw/actions/runs/44315721140 Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
When you create or edit an automation, the Agent field is a plain text box: you have to know and type an agent's id (such as
roboclaw), with no names or avatars to recognize.User Impact
User impact: in a new or edited automation, the Agent row is now a list of the Gateway's agents with their avatars and names, picked with one click.
Why This Change Was Made
The row now uses the same agent picker as Settings and the rest of the app; that shared picker is unchanged. The data and save path are unchanged: picking an agent saves its id, Default saves no agent (as the old toggle did), and a stored id is kept until you change it. Removed: the agent suggestion list, the "main or ops" placeholder, the typing help text and the clear-agent toggle.
Accepted edge cases:
This PR and the model/reasoning picker PR both remove suggestion lists from the same four editor files, so whichever lands second needs a small rebase (checked with
git merge-tree).Evidence
The Agent row on a new automation. Mocked Gateway with 25 automations and four agents: Roboclaw (default, custom avatar), Ayaan (generated avatar), a long-named agent, and Ops (emoji avatar). Before =
9d6f4a94adf5(main); after = this branch. Desktop 1280×900 at 2×, light theme unless noted.The row, closed and opened
Headless Chromium doesn't draw the browser's suggestion popup, so the "before, opened" frame shows only the focused field.
Clean comparison (full frame)
Before
After
Before, opened
After, opened
Annotated comparison
Before
After
Before, opened
After, opened
Other states
Read-only (no manage access) and long-name states were also captured and checked: both controls dim together when read-only, and a long agent name fits on desktop and truncates with an ellipsis on a phone.
Checked:
Clearing an explicit agent when only one is available
Before: the original PR revision (
a664e7d29925) hid the Agent row even for a saved override. After: the row remains visible and Default can clear it (dfb857bfe76e). Desktop Chromium with synthetic Gateway data; the original comparisons above show main versus the initial picker implementation.Before
After
Annotated comparison
The new browser regression failed on the previous head because the picker was absent and passes on the repaired head. The test verifies that choosing Default sends
agentId: nullincron.update. All four picker cases passed.Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.