Repository navigation
fix: match goal checks to the goal indicator - #203987
vyctorbrzezowski wants to merge 1 commit into
Conversation
|
🦞👀 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 maintainer review before merge. What this changesThis PR shares goal artwork across the Control UI and gives goal lookups outcome-aware labels. Example: Chat history contains a successful mcp__openclaw__get_goal lookup.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides focused UI polish that current main does not yet contain; no introduced correctness or security defect was identified. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI projects recorded tool calls and outcomes into chat rows, while the shared icon registry supplies artwork to those rows, the composer, and goal details. flowchart LR
A[Recorded tool call] --> B[Display name normalization]
B --> C[Tool row presenter]
D[Recorded outcome] --> C
E[English catalog] --> C
F[Shared icon registry] --> G[Chat row and goal views]
C --> G
Technical reviewBest possible solution: Retain the shared artwork and existing outcome presenter, then resolve the performance gate without weakening its budget. Do we have a high-confidence way to reproduce the issue? Current-main source still falls through to the generic Get Goal title and bullseye artwork, consistent with the supplied before capture; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch is the smallest complete presentation change: the existing registry owns artwork, both former GoalIcon consumers migrate, and the existing presenter derives copy from recorded outcomes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 50239782858c. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -5, Tests +16. Total +11 across 6 files. Added test files: 0. 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:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 23, 2026, 2:57 AM ET / 07:57 UTC. |
What Problem This Solves
Goal checks in the OpenClaw web chat show the raw title “Get Goal” and a bullseye icon, while the goal strip uses different artwork. The row also does not distinguish a running lookup from a completed one.
User Impact
Goal tool rows now use the same icon as the “Pursuing goal” strip. A lookup reads “Checking goal” while running and “Checked goal” once completed. Failed or unknown outcomes keep a neutral “Check goal” label alongside the existing outcome indicator.
This does not start, resume, complete, or otherwise change a goal. Shell command labels, grouping, and expandable tool results are unchanged.
Why This Change Was Made
The web icon registry now owns the existing goal-strip artwork; the strip and details view consume it instead of maintaining a separate SVG. The three existing goal-tool mappings pick up the same artwork without changing shared metadata or native clients.
The change adds outcome-aware copy in the existing row presenter. Production: 14 lines added, 19 removed. Tests: 16 lines added to the existing rendering suite; no icon snapshots or permanent screenshot harness.
Evidence
Captures use the real bundled Control UI with synthetic Gateway history, not a live agent run. Same 1280×650 viewport, fixed time, expanded group, and 800×480 crop. Before:
b62eec8f6587; after:59dacbeac615.Clean comparison
Before:
After:
Annotated comparison
Before:
After: