Skip to content

fix(control-ui): add tooltips for Reasoning and Thinking dropdowns (#90445) - #90831

Closed
lonexreb wants to merge 6 commits into
openclaw:mainfrom
lonexreb:fix/90445-reasoning-thinking-tooltips
Closed

lonexreb wants to merge 6 commits into
openclaw:mainfrom
lonexreb:fix/90445-reasoning-thinking-tooltips

Conversation

@lonexreb

@lonexreb lonexreb commented Jun 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds tooltips and accessible labels for the Sessions table Thinking and
Reasoning controls (issue #90445), clarifying that:

  • Thinking maps to the provider reasoning_effort and only applies when the
    model supports it (compat.supportsReasoningEffort).
  • Reasoning controls how reasoning output is shown in chat (display/transport).

The column headers get title tooltips, and each per-row <select> gets a
title + aria-label so the meaning is reachable by pointer and screen reader.

Review follow-up

Addresses the ClawSweeper finding (regenerate Control UI locale outputs): the new
English strings (sessionsView.thinkingTooltip, sessionsView.reasoningTooltip)
are now propagated through pnpm ui:i18n:sync, so the generated locale bundles and
.i18n metadata stay in sync and the UI i18n drift gate (pnpm ui:i18n:check)
passes. Rebased onto current main.

Verification

  • node scripts/run-vitest.mjs ui/src/ui/views/sessions.test.ts → 27 passed.
  • node --import tsx scripts/control-ui-i18n.ts check → all locales clean.
  • oxfmt --check / oxlint clean on changed source.

Part of #90445 (Sessions table only; Quick Settings, inherit semantics, and docs remain open in the issue)

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS proof: supplied External PR includes structured after-fix real behavior proof. labels Jun 6, 2026
@clawsweeper

clawsweeper Bot commented Jun 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 10, 2026, 9:36 PM ET / July 11, 2026, 01:36 UTC.

Summary
Adds localized, focus-capable tooltips and accessible descriptions for the Sessions Thinking and Reasoning override controls.

PR surface: Source +75, Tests +54. Total +129 across 43 files.

Reproducibility: yes. at source level: current main's Sessions override controls have no explanatory help, and the affected render path is deterministic; real browser behavior has not been demonstrated.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: serialized state: ui/src/pages/sessions/view.test.ts, serialized state: ui/src/pages/sessions/view.ts, unknown-data-model-change: ui/src/pages/sessions/view.test.ts, unknown-data-model-change: ui/src/pages/sessions/view.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #90445
Summary: This PR is the active Sessions-specific implementation candidate for part of the broader Control UI terminology and explanation issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🐚 platinum hermit
Result: blocked until real behavior proof from a real setup is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Add redacted exact-head browser or Playwright evidence showing pointer hover, keyboard focus, and computed accessible names and descriptions.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The exact head has unit, i18n, formatting, and CI evidence, but no redacted browser screenshot, recording, Playwright accessibility output, or equivalent live artifact showing hover, keyboard focus, and computed accessible names and descriptions; after adding proof, update the PR body to trigger review or ask a maintainer to comment @clawsweeper re-review.

Risk before merge

  • [P1] No exact-head real browser artifact demonstrates pointer hover, keyboard focus, and computed accessible names and descriptions.
  • [P1] Landing Sessions-only wording establishes terminology while Quick Settings, inheritance semantics, possible relabeling, and documentation remain unresolved in the canonical issue.

Maintainer options:

  1. Decide the mitigation before merge
    Land this focused Sessions slice after exact-head browser proof if maintainers accept its wording as the partial canonical direction, while keeping the broader issue open for Quick Settings, inheritance, naming, and docs.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] A maintainer must accept the Sessions-only terminology and the contributor must supply exact-head real browser proof; no concrete code repair remains established.

Maintainer decision needed

  • Question: Should this PR land the Sessions-only tooltip terminology now while the broader Quick Settings, inheritance, naming, and documentation work remains in Control Panel: Add tooltips/clarifying labels for Reasoning and Thinking dropdowns (Config↔UI naming collision) #90445?
  • Rationale: The code is now a coherent partial implementation, but accepting these strings establishes user-facing terminology before the cross-surface design is resolved.
  • Likely owner: steipete — The strongest sampled history connects this person to Sessions overrides, thinking behavior, and the shared tooltip surface.
  • Options:
    • Land Sessions slice (recommended): Accept these tooltip strings as the Sessions-specific partial direction after browser proof and keep the canonical issue open for the remaining surfaces.
    • Hold for unified wording: Pause this PR until terminology and inheritance explanations are chosen across Sessions, Quick Settings, and documentation together.

Security
Cleared: The diff is limited to UI rendering, generated locale output, and tests, with no dependency, secret, permission, artifact-download, or code-loading change.

Review details

Best possible solution:

Land this focused Sessions slice after exact-head browser proof if maintainers accept its wording as the partial canonical direction, while keeping the broader issue open for Quick Settings, inheritance, naming, and docs.

Do we have a high-confidence way to reproduce the issue?

Yes at source level: current main's Sessions override controls have no explanatory help, and the affected render path is deterministic; real browser behavior has not been demonstrated.

Is this the best way to solve the issue?

Yes for the Sessions-specific slice: it reuses the established focus-capable tooltip component and generated i18n pipeline instead of creating a parallel mechanism, but the wording and partial scope need maintainer acceptance.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 070b7928fda5.

Label changes

Label justifications:

  • P3: This is low-risk Control UI explanatory and accessibility polish with limited blast radius.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The exact head has unit, i18n, formatting, and CI evidence, but no redacted browser screenshot, recording, Playwright accessibility output, or equivalent live artifact showing hover, keyboard focus, and computed accessible names and descriptions; after adding proof, update the PR body to trigger review or ask a maintainer to comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +75, Tests +54. Total +129 across 43 files.

View PR surface stats
Area Files Added Removed Net
Source 42 156 81 +75
Tests 1 54 0 +54
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 43 210 81 +129

What I checked:

  • Current-main gap: Current main renders the Sessions override selects without tooltip content or accessible explanatory descriptions, so the requested Sessions clarification is not already implemented. (ui/src/pages/sessions/view.ts:844, 070b7928fda5)
  • Exact-head implementation: The PR adds an optional tooltip to the shared override renderer, exposes help as the select's accessible description, and wraps only the Thinking and Reasoning fields in the existing focus-capable tooltip component. (ui/src/pages/sessions/view.ts:844, 42b23b7c878b)
  • Shared tooltip contract: The existing component opens on focus and pointer hover, creates a role=tooltip portal, and manages aria-describedby for its slotted trigger, supporting the PR's reuse choice. (ui/src/components/tooltip.ts:259, 070b7928fda5)
  • Focused regression coverage: The new test checks both tooltip contents, preserves the short label as the control name by avoiding aria-label, verifies accessible descriptions, and confirms unrelated override fields remain untouched. (ui/src/pages/sessions/view.test.ts:982, 42b23b7c878b)
  • Prior finding resolved: Compared with the previously reviewed head, the latest commit removes the native title-only path and switches to openclaw-tooltip, so the prior focus-capability finding should not be re-raised. (ui/src/pages/sessions/view.ts:852, 42b23b7c878b)
  • Exact-head checks: GitHub reports the relevant exact-head check runs completed successfully; this supports patch quality but does not replace required real browser proof. (42b23b7c878b)

Likely related people:

  • steipete: Peter Steinberger introduced the expanded Control dashboard, later aligned thinking toggles, and has the heaviest sampled history across the current Sessions override and tooltip surfaces. (role: feature introducer and recent area contributor; confidence: high; commits: 6ff837125475, 500c75b4f0f0; files: ui/src/pages/sessions/view.ts, ui/src/components/tooltip.ts, ui/src/i18n/locales/en.ts)
  • BunsDev: Val Alexander carried major dashboard and Sessions refactors that shaped the current view and adjacent model and thinking controls. (role: major UI refactor contributor; confidence: high; commits: f76a3c5225bb, 36c6d44eca05; files: ui/src/pages/sessions/view.ts, ui/src/ui/views/sessions.ts, ui/src/ui/views/config-quick.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (6 earlier review cycles)
  • reviewed 2026-06-21T18:25:46.720Z sha 858ba9cb2c538a0ce61484fdb5ec817298f0f514 :: needs real behavior proof before merge. :: [P2] Use provider-profile wording for Thinking
  • reviewed 2026-06-30T17:34:22.497Z sha 858ba9cb2c538a0ce61484fdb5ec817298f0f514 :: needs real behavior proof before merge. :: [P2] Use provider-profile wording for Thinking
  • reviewed 2026-07-10T23:55:31.416Z sha 8e2c48609cb5271b2a153f158d3a2fea238d60d2 :: needs real behavior proof before merge. :: [P2] Regenerate the stale Thinking tooltip translations
  • reviewed 2026-07-11T00:06:37.663Z sha 8e2c48609cb5271b2a153f158d3a2fea238d60d2 :: needs real behavior proof before merge. :: [P2] Regenerate the stale Thinking tooltip translations
  • reviewed 2026-07-11T00:52:56.949Z sha 6598e36b28dea5d08acb52479b2def8f9f9efd38 :: needs real behavior proof before merge. :: [P2] Preserve the control name when exposing tooltip help
  • reviewed 2026-07-11T01:18:13.342Z sha cfb60201c273112574912c94589512ae6581e77b :: needs real behavior proof before merge. :: [P2] Use the focus-capable tooltip for the override controls

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jun 6, 2026
@lonexreb
lonexreb force-pushed the fix/90445-reasoning-thinking-tooltips branch from ad4eaa8 to 858ba9c Compare June 15, 2026 21:57
@openclaw-barnacle openclaw-barnacle Bot added size: M triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. and removed size: XS proof: supplied External PR includes structured after-fix real behavior proof. labels Jun 15, 2026
@clawsweeper clawsweeper Bot added status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jun 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jun 20, 2026
@lonexreb
lonexreb force-pushed the fix/90445-reasoning-thinking-tooltips branch from 858ba9c to 8e2c486 Compare July 10, 2026 23:48
@lonexreb

Copy link
Copy Markdown
Contributor Author

Addressed the review findings in 8e2c48609cb and resolved the conflict by rebasing onto current main (the sessions view moved to ui/src/pages/sessions/view.ts, so the tooltips were ported to the new renderOverrideSelect details-panel structure — title on the field, aria-label on the select):

  • [P2] Use provider-profile wording for Thinking — the tooltip no longer claims a direct reasoning_effort / compat.supportsReasoningEffort mapping. It now reads: "Per-session thinking level override. Each provider profile maps it to that provider's own thinking or reasoning controls; models without thinking support ignore it."
  • Branch conflict resolved; locale bundles + .i18n metadata regenerated via pnpm ui:i18n:sync, and pnpm ui:i18n:check is clean.
  • Regression updated for the new structure: Thinking/Reasoning override fields carry the tooltip + aria-label, untitled fields stay untitled.

vitest run src/pages/sessions/view.test.ts — 37/37 pass; oxfmt clean.

On the scope concern: the linked issue also covers Quick Settings, inherit semantics, and docs — happy to keep this PR Sessions-only and leave #90445 open for the remaining scope rather than auto-closing it. Browser screenshot proof remains outstanding (flagged to the PR author).

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@lonexreb
lonexreb force-pushed the fix/90445-reasoning-thinking-tooltips branch from 8e2c486 to 6598e36 Compare July 11, 2026 00:29
@lonexreb

Copy link
Copy Markdown
Contributor Author

Addressed the new P2 (Regenerate the stale Thinking tooltip translations) in 6598e36b28d and resolved the fresh conflict by rebasing onto current main:

  • All 18 non-English locale bundles carried the old reasoning_effort wording embedded as their thinkingTooltip value. Those stale entries are dropped and regenerated via pnpm ui:i18n:sync, so every locale now carries the current provider-profile source text as its fallback (real translations land through the publish-repo TM flow, per the docs pipeline). pnpm ui:i18n:check is clean.
  • vitest run src/pages/sessions/view.test.ts — 37/37 pass.

Remaining, as flagged: the product decision on landing Sessions-only terminology ahead of the broader #90445 scope, and a browser screenshot/recording of both tooltips (with the PR author).

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@lonexreb
lonexreb force-pushed the fix/90445-reasoning-thinking-tooltips branch from 6598e36 to cfb6020 Compare July 11, 2026 01:04
@lonexreb

Copy link
Copy Markdown
Contributor Author

Addressed the new P2 (Preserve the control name when exposing tooltip help) in cfb60201c27 and rebased onto current main:

  • The tooltip is no longer wired as aria-label (which replaced the select's accessible name with the long help sentence). The wrapping <label> text stays the accessible name ("Thinking"/"Reasoning"), and the tooltip is exposed as the accessible description via aria-description, with the visual title tooltip unchanged on the field. Regression updated: the selects have no aria-label and carry the description; untitled fields stay untouched.

vitest run src/pages/sessions/view.test.ts — 37/37 pass; pnpm ui:i18n:check clean; oxfmt clean.

Remaining, as flagged: browser/Playwright evidence of hover/focus tooltips and accessible names+descriptions (PR author), and the maintainer call on landing Sessions-only terminology ahead of the rest of #90445.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@lonexreb

Copy link
Copy Markdown
Contributor Author

Addressed the new P2 (Use the focus-capable tooltip for the override controls) and rebased onto current main:

  • The override tooltips no longer rely on a native title attribute (which never appears on keyboard focus). The Thinking/Reasoning fields are now wrapped in the existing openclaw-tooltip component — the same one this page already uses for detail stats — which shows on pointer hover and focusin, renders display: contents (grid layout unchanged), and manages aria-describedby itself. The label remains the accessible name; the select keeps the tooltip text as aria-description.
  • Regression updated: tooltip content asserted on the component wrapper for both fields, no aria-label on the selects, accessible descriptions present, and untooltipped fields get neither wrapper nor description.

vitest run src/pages/sessions/view.test.ts — 37/37 pass; pnpm ui:i18n:check + oxfmt clean.

Remaining, unchanged: browser/Playwright hover+focus+accessibility evidence (PR author) and the maintainer call on Sessions-only terminology vs the broader #90445 scope.

@clawsweeper re-review

@lonexreb
lonexreb force-pushed the fix/90445-reasoning-thinking-tooltips branch from cfb6020 to 42b23b7 Compare July 11, 2026 01:26
@clawsweeper

clawsweeper Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jul 25, 2026
@clawsweeper

clawsweeper Bot commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(control-ui): add tooltips for Reasoning and Thinking dropdowns (#90445) This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete

Copy link
Copy Markdown
Contributor

Closing per ClawSweeper review verdict stalled_unproven_pr (decision packet 2026-07-26T03:30:31.050Z). This item was part of the audited close backlog (openclaw/clawsweeper#920) stranded by an apply-lane defect, drained manually after re-verification. If this is wrong, reopen and ClawSweeper will re-review.

@steipete steipete closed this Jul 29, 2026
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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants