Skip to content

fix: match goal checks to the goal indicator - #203987

Closed
vyctorbrzezowski wants to merge 1 commit into
mainfrom
brzezowski/chat-goal-tool-identity
Closed

vyctorbrzezowski wants to merge 1 commit into
mainfrom
brzezowski/chat-goal-tool-identity

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

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

  • 71 focused tests passed, including goal lookup outcomes, goal actions/details, and the shared display contract. The four new outcome cases failed on the base and passed after the fix.
  • Built the Control UI and exercised the expanded goal lookup in dark and light mode. Both browser scenarios passed, including access to the original result.
  • Targeted lint, formatting, i18n baseline/verification, and diff checks passed.
  • Local autoreview (Codex, P0–P2) reported no actionable findings on the final local change. This was a source-context-bounded review, not a repository-wide audit; the implementing agent ran the tests.
  • Full local UI typecheck was blocked before checking source because declaration dependencies are shared through external worktree symlinks. Exact-head PR CI remains the broad validation lane.

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:

Before: bullseye icon and raw Get Goal title

After:

After: goal-strip icon and Checked goal action

Annotated comparison

Before:

Before: mismatched goal identities highlighted

After:

After: shared goal identity highlighted

@clawsweeper

clawsweeper Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 23, 2026 07:40
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 23, 2026
@clawsweeper

clawsweeper Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The row shows “Get Goal” with a bullseye.
  • After: The row shows “Checked goal” with the goal strip’s artwork.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, useful presentation work with direct visual proof and no actionable code finding; broad validation remains incomplete because the performance failure is not yet attributed.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the actual bundled Control UI with synthetic Gateway history and demonstrate the changed completed-lookup label and shared artwork; the reported rendering tests cover the other outcomes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Goal lookup rows use a different visual identity from the goal strip and do not describe lookup progress.
Reason: The maintainer-authored direction provides useful consistency at low cost while preserving actions, results, and execution semantics.

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
Reviewed head: 59dacbeac615dc2870dd171c42d755f5b9192223

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 18136c9 adds ui/src/pages/chat/components/chat-tool-row-presentation.ts:65 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 18136c960eaf; files: ui/src/pages/chat/components/chat-tool-row-presentation.ts)

PR surface

Source -5, Tests +16. Total +11 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 14 19 -5
Tests 1 16 0 +16
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 30 19 +11

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: The change improves visual consistency and activity wording without changing goal execution or blocking a user workflow.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: The change improves visual consistency and activity wording without changing goal execution or blocking a user workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Have the CI owner inspect the paired performance measurements and determine whether the five-byte overage requires a branch repair.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 23, 2026, 2:57 AM ET / 07:57 UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant