Skip to content

feat(ui): approval UX overhaul β€” inline cards, fair queue, shortcuts, badges - #110989

Merged
steipete merged 10 commits into
mainfrom
claude/approvals-ui
Jul 19, 2026
Merged

steipete merged 10 commits into
mainfrom
claude/approvals-ui

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Pending exec/plugin approvals are easy to miss and slow to act on: the global modal shows only the newest request (starving older ones toward their 30-minute expiry), there is no in-conversation approval surface, no per-agent/per-session indicators, no expiry visibility, and no keyboard path.

Why This Change Was Made

Fleet operators supervising multiple agents need approvals to be scannable and fast to decide without losing safety. Queue becomes oldest-first with a selectable list; the active chat session renders its approval inline between transcript and composer (suppressed from the modal); Ctrl/Cmd chord shortcuts (Ctrl/Cmd+Enter allow once, +Shift always, +D deny) with auto-repeat guards; live mm:ss expiry countdown; per-agent count pills and per-session warning badges in the sidebar. Errors are scoped per approval id so one request's failure never hides another's. The displayed card is pinned so late-arriving requests cannot swap the command under the user's cursor.

User Impact

Approvals surface where the user is working, oldest requests stop starving, fleet state is visible per agent/session, and keyboard users get a safe fast path. No gateway or protocol changes; UI-only.

Evidence

  • Focused suites green: ui/src/app/exec-approval.test.ts, ui/src/components/exec-approval.test.ts, ui/src/app/overlays.test.ts, ui/src/app/approval-presentation.test.ts, ui/src/pages/chat/chat-view.test.ts (238 tests).
  • Remote check-changed (typecheck/lint/format shards) green on Blacksmith Testbox.
  • Structured autoreview: clean, no actionable findings (5 rounds; shortcut design hardened to modifier chords, per-request error map, pinned selection).

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Jul 18, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’‘ Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7451f4975a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +23 to +25
queue.find(
(entry) =>
normalizeSessionKeyForUiComparison(entry.request.sessionKey) === normalizedSessionKey,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Match approval session aliases before choosing presentation

Use the UI's session-equivalence rules here rather than raw normalized equality. Route and persisted state can still identify the default conversation as main, while gateway approval events carry agent:main:main; areUiSessionKeysEquivalent() explicitly treats those as the same session. In that common alias case this check fails, so the approval remains modal instead of rendering inline, and the identical exact-match logic in sessionHasPendingApproval() also omits its session badge.

Useful? React with πŸ‘Β / πŸ‘Ž.

@steipete

Copy link
Copy Markdown
Contributor Author

Before/after screenshots (mock-gateway harness, deterministic fixtures β€” three pending approvals across two agents):

Modal β€” before (newest request presented first, older ones starve unseen; coarse expiry):
modal before

Modal β€” after (oldest-first with pinned card, risky-span highlight, live mm:ss countdown, selectable "other pending" list with per-item expiry):
modal after

Inline approval in the active chat session (modal suppressed for this entry; card sits between transcript and composer):
inline after

Sidebar (per-session warning badge + attention chip while approvals are pending):
sidebar after

@steipete steipete closed this Jul 18, 2026
@steipete steipete reopened this Jul 18, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 19, 2026, 4:14 AM ET / 08:14 UTC.

Summary
The PR redesigns Control UI exec/plugin approvals with oldest-first queues, inline chat cards, decision shortcuts, expiry countdowns, and agent/session pending indicators.

PR surface: Source +558, Tests +571. Total +1129 across 27 files.

Reproducibility: yes. from source with high confidence: make an approval match the active session while the dashboard hides its chat dock or the responsive layout hides the chat surface; the branch suppresses that approval from the modal despite the inline card being unreachable.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: serialized state: ui/src/components/session-row-badges.test.ts, serialized state: ui/src/components/session-row-badges.ts, unknown-data-model-change: ui/src/components/session-row-badges.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: πŸ¦ͺ silver shellfish
Proof: πŸ¦ͺ silver shellfish
Patch quality: 🦐 gold shrimp
Result: blocked until stronger real behavior proof is added.

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

Rank-up moves:

  • Keep approvals in the modal whenever their inline chat card is not visible, with dashboard and responsive-layout coverage.
  • Post redacted live Control UI proof showing a pending approval, a decision dispatch, and the resolved state; updating the PR body should trigger re-review, or a maintainer can comment @clawsweeper re-review if it does not.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The before/after screenshots are useful but explicitly use a mock-gateway harness, so add redacted live Control UI evidence of a real approval arriving, being decided, and resolving; redact private endpoints, IPs, tokens, and commands as needed. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Mantis proof suggestion
A redacted web UI chat proof would directly verify the changed inline approval and fallback behavior in a real interaction. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis web UI chat proof: reproduce an approval while the active chat surface is hidden and verify it remains reachable in the modal; capture redacted before/after evidence.

Risk before merge

  • [P2] Merging before a visibility-aware fallback is added can hide a time-limited approval whenever the active chat is not rendered, blocking the operator from acting on it until they manually restore the chat surface.
  • [P1] The PR changes a security-adjacent decision surface, but the available screenshots use mocked fixtures and do not prove live request delivery, decision dispatch, or post-resolution behavior.

Maintainer options:

  1. Restore the modal fallback (recommended)
    Only remove an approval from the modal when the inline card is demonstrably visible and reachable; cover hidden dashboard and narrow/mobile layouts before merge.
  2. Accept modal suppression
    Maintain the current inline-only behavior for active sessions and explicitly accept that hidden chat layouts require manually reopening chat to act.
  3. Pause the broad UX change
    Close or defer this branch if maintainers do not want to establish a visibility-dependent approval presentation contract now.

Next step before merge

  • [P2] A concrete fallback defect and proof gap remain, while the protected, security-adjacent approval UX redesign needs maintainer confirmation of its permanent presentation contract.

Maintainer decision needed

  • Question: Should approval cards become the default active-session surface only when the chat pane is visibly reachable, with the modal retained as the fallback for hidden chat layouts?
  • Rationale: This is a broad, security-adjacent interaction redesign; the mechanical fallback fix is clear, but maintainers need to confirm the intended permanent presentation contract for dashboards and responsive layouts.
  • Likely owner: steipete β€” This contributor is the current recent area contributor for the approval UX branch and has public OpenClaw history adjacent to exec-approval work.
  • Options:
    • Require visible-surface fallback (recommended): Keep inline cards for visible active chats, but retain the modal whenever the card cannot be reached; add focused dashboard/mobile coverage and live proof.
    • Keep modal authority: Show inline cards as a duplicate convenience surface while always retaining the approval in the modal queue.
    • Pause the redesign: Keep the existing modal-only behavior until maintainers choose a smaller approval UX scope.

Security
Cleared: The diff changes approval presentation rather than gateway authorization, protocol, dependencies, or secret handling; the remaining concern is availability of the approval control, not a demonstrated authorization bypass.

Review findings

  • [P2] Keep hidden-chat approvals in the modal β€” ui/src/pages/chat/chat-pane.ts:2753-2755
Review details

Best possible solution:

Use one visibility-aware presentation decision so an approval is suppressed from the modal only while its inline card is actually reachable, then provide redacted live Control UI proof covering request arrival, a decision, and resolution.

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

Yes, from source with high confidence: make an approval match the active session while the dashboard hides its chat dock or the responsive layout hides the chat surface; the branch suppresses that approval from the modal despite the inline card being unreachable.

Is this the best way to solve the issue?

No: the current active-session-only selection is not the safest solution because it conflates session matching with visible presentation. A single visibility-aware decision shared by inline rendering and modal filtering is narrower and preserves a reachable fallback.

Full review comments:

  • [P2] Keep hidden-chat approvals in the modal β€” ui/src/pages/chat/chat-pane.ts:2753-2755
    The active-session match is sufficient to classify an approval as inline even when the dashboard or responsive layout hides the chat surface. That same ID is then excluded from the modal queue, leaving the time-limited request unreachable until the operator manually reopens chat. Gate suppression on actual inline visibility, with a modal fallback.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 59124313f44a.

Label changes

Label changes:

  • add rating: πŸ¦ͺ silver shellfish: Overall readiness is πŸ¦ͺ silver shellfish; proof is πŸ¦ͺ silver shellfish and patch quality is 🦐 gold shrimp.
  • remove rating: πŸ§‚ unranked krab: Current PR rating is rating: πŸ¦ͺ silver shellfish, so this older rating label is no longer current.
  • remove merge-risk: 🚨 security-boundary: Current PR review merge-risk labels are merge-risk: 🚨 availability.

Label justifications:

  • P2: This is a user-facing approval-flow regression with bounded blast radius: affected operators can recover by reopening chat, but a time-limited request is hidden from its normal fallback surface.
  • merge-risk: 🚨 availability: A merged hidden-chat path can leave pending approvals unreachable until the operator changes layout, delaying or blocking agent work.
  • rating: πŸ¦ͺ silver shellfish: Overall readiness is πŸ¦ͺ silver shellfish; proof is πŸ¦ͺ silver shellfish and patch quality is 🦐 gold shrimp.
  • status: πŸ“£ needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The before/after screenshots are useful but explicitly use a mock-gateway harness, so add redacted live Control UI evidence of a real approval arriving, being decided, and resolving; redact private endpoints, IPs, tokens, and commands as needed. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • proof: πŸ“Έ screenshot: Contributor real behavior proof includes screenshot evidence. The before/after screenshots are useful but explicitly use a mock-gateway harness, so add redacted live Control UI evidence of a real approval arriving, being decided, and resolving; redact private endpoints, IPs, tokens, and commands as needed.
Evidence reviewed

PR surface:

Source +558, Tests +571. Total +1129 across 27 files.

View PR surface stats
Area Files Added Removed Net
Source 20 828 270 +558
Tests 7 598 27 +571
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 27 1426 297 +1129

What I checked:

  • Hidden-surface regression: The inline lookup depends on the active session and its key, but does not establish that the chat approval card is visible; the matching approval can therefore be omitted from the modal while the chat dock is hidden. (ui/src/pages/chat/chat-pane.ts:2753, b22200705644)
  • Modal suppression path: The branch's presentation helper excludes the selected inline approval ID from the modal queue without a visibility-aware fallback. (ui/src/app/approval-presentation.ts:31, b22200705644)
  • Prior review continuity: The latest completed review already identified this exact hidden-chat/modal-suppression defect; the current supplied head still uses active-session matching rather than an inline-visible predicate, so the blocker remains unresolved. (ui/src/pages/chat/chat-pane.ts:2753, 33a643fea395)
  • Real-behavior proof: The only posted visual evidence explicitly uses a mock-gateway harness with deterministic fixtures. It demonstrates intended rendering but not a live Control UI request, decision dispatch, and resolved-state path. (b22200705644)
  • Area provenance: Public OpenClaw activity shows steipete recently landing work on main, and the repository's public security history includes exec-approval work attributed to steipete; this is supporting routing evidence rather than a claim of formal ownership. (b22200705644)

Likely related people:

  • steipete: The PR history contains the current approval UX work, and public repository activity/security history also connects this contributor to main and exec-approval-adjacent work. (github.com) (role: recent area contributor; confidence: medium; commits: 4afdf9823d0d, 160802bc3694, b22200705644; files: ui/src/app/exec-approval.ts, ui/src/pages/chat/chat-pane.ts, ui/src/components/exec-approval.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-07-18T22:35:11.620Z sha e9c8ec06176f27810cca6be56fd3921af88d426b :: needs real behavior proof before merge. :: [P2] Use UI session equivalence for approval matching
  • reviewed 2026-07-18T23:26:27.024Z sha f13bec9 :: needs real behavior proof before merge. :: [P2] Match approval session aliases before selecting inline presentation | [P2] Keep inline approval controls reachable in short panes
  • reviewed 2026-07-19T05:33:27.723Z sha 3e68cbf9b3a195d942b7d1ef847ef04336123d99 :: needs real behavior proof before merge. :: [P2] Match UI session aliases before selecting inline approvals | [P2] Keep inline approval controls reachable in constrained panes
  • reviewed 2026-07-19T07:21:13.061Z sha fb1bebf :: needs real behavior proof before merge. :: [P2] Use UI session equivalence for inline approvals | [P1] Pin the inline approval until it resolves | [P2] Keep inline approval controls reachable in short panes | [P2] Reset approval scroll state when selection changes
  • reviewed 2026-07-19T07:57:59.722Z sha fddd2ec285d0db900f508548e5049c717d4a232c :: needs real behavior proof before merge. :: [P2] Use UI session equivalence for inline approvals | [P2] Handle keyboard decisions on the inline approval surface
  • reviewed 2026-07-19T08:06:26.151Z sha 33a643fea3952c04cb82c46b84e61a634e1e85d5 :: needs real behavior proof before merge. :: [P2] Keep hidden-chat approvals in the modal

@steipete
steipete force-pushed the claude/approvals-ui branch from e9c8ec0 to f13bec9 Compare July 18, 2026 22:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’‘ Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f13bec96c5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +152 to +158
.chat-inline-approval {
box-sizing: border-box;
flex: 0 0 auto;
width: calc(100% - 36px - 2 * clamp(6px, 1vw, 12px));
max-width: var(--chat-thread-max-width);
margin: 8px auto;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep inline approval actions within the pane

On short panes or mobile viewports, where ui/src/styles/components.css stacks all approval buttons vertically, a long command plus the metadata rows can make this non-shrinking wrapper taller than the available chat area. Neither this wrapper nor the inline card has a height limit or overflow scrolling, while .chat-main clips overflow, so the decision buttons can be pushed below the visible pane and become unreachable. Constrain the inline surface to the available height and give it an internal scroll region.

Useful? React with πŸ‘Β / πŸ‘Ž.

@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. P2 Normal backlog priority with limited blast radius. labels Jul 18, 2026
@steipete
steipete force-pushed the claude/approvals-ui branch from f13bec9 to 3e68cbf Compare July 19, 2026 05:29
@steipete steipete self-assigned this Jul 19, 2026
@steipete steipete closed this Jul 19, 2026
@steipete steipete reopened this Jul 19, 2026
@steipete
steipete force-pushed the claude/approvals-ui branch 2 times, most recently from fb62998 to d510033 Compare July 19, 2026 07:08

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’‘ Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d51003339e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +23 to +25
queue.find(
(entry) =>
normalizeSessionKeyForUiComparison(entry.request.sessionKey) === normalizedSessionKey,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pin the inline approval until it leaves the queue

When an older-created request for the active session arrives after an inline card is already displayed, enqueueExecApprovalPrompt() re-sorts the queue and this lookup immediately replaces the visible card with the late arrival. Since the action buttons remain in the same position, a user clicking the card they were reading can authorize the newly substituted command instead; the modal avoids this exact hazard by pinning selectedApprovalId, but the inline surface has no equivalent state.

Useful? React with πŸ‘Β / πŸ‘Ž.

Comment on lines +390 to +392
onSelect: (approvalId) => {
this.selectedApprovalId = approvalId;
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reset scroll positions when selecting another approval

When a user scrolls a long command or the modal stack and then selects another queued request, this handler only changes the selected ID. Lit reuses the existing .exec-approval-command and .exec-approval-modal-stack elements, so their scrollTop values survive and the newly selected command can open midway through its text or with the card header off-screen, allowing a decision without the user seeing the start of the command. Reset both scroll containers or replace/key the card when selection changes.

Useful? React with πŸ‘Β / πŸ‘Ž.

@steipete
steipete force-pushed the claude/approvals-ui branch from d510033 to fb1bebf Compare July 19, 2026 07:19
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Jul 19, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’‘ Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fb1bebf784

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +295 to +296
if (event.key === "Enter") {
return event.shiftKey ? "allow-always" : "allow-once";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Delay modal shortcuts after focus is stolen

When an approval for another session opens while a user is composing, the modal steals focus and immediately treats Ctrl/Cmd+Enter as allow-once. That chord is also the chat send shortcut (ui/src/pages/chat/components/chat-composer.ts:2402), so a user already pressing it can authorize a newly appeared command before seeing it. Add a short arming delay after the active approval/modal changes or use a chord that does not overlap composer actions.

Useful? React with πŸ‘Β / πŸ‘Ž.

Comment on lines +594 to +603
${props.inlineApproval && props.onApprovalDecision
? html`<div class="chat-inline-approval">
${renderExecApprovalCard({
approval: props.inlineApproval,
busy: props.approvalBusy === true,
error: props.approvalErrors?.get(props.inlineApproval.id) ?? null,
nowMs: props.approvalNowMs ?? Date.now(),
variant: "inline",
onDecision: props.onApprovalDecision,
})}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Wire shortcuts to the inline approval surface

For an approval matching the active chat, this branch renders only renderExecApprovalCard(), while the keyboard handler is attached exclusively to the suppressed modal in ui/src/components/exec-approval.ts:370-374. Consequently Ctrl/Cmd+Enter, Ctrl/Cmd+Shift+Enter, and Ctrl/Cmd+D do nothing for the approval users most commonly see unless they first reopen the global modal from the sidebar, defeating the advertised keyboard path.

Useful? React with πŸ‘Β / πŸ‘Ž.

@steipete
steipete force-pushed the claude/approvals-ui branch 2 times, most recently from 2dc6209 to fddd2ec Compare July 19, 2026 07:55
@clawsweeper clawsweeper Bot added the proof: πŸ“Έ screenshot Contributor real behavior proof includes screenshot evidence. label Jul 19, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’‘ Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fddd2ec285

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/app/app-host.ts
Comment on lines +1318 to +1320
const inlineApproval =
activeRoute === "chat"
? findInlineApproval(overlaySnapshot.approvalQueue, this.activeSessionKey)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep approvals modal when the chat surface is hidden

When the active session is showing a dashboard with its chat dock hidden (ui/src/styles/chat/board.css:106) or a mobile detail sidebar (ui/src/styles/chat/sidebar.css:1563), this still classifies its approval as inline. The shell consequently passes that ID as inlineApprovalId, so modalApprovalQueue() filters it out, while the only card is rendered inside the hidden chat DOM. The time-limited request is therefore invisible until the user manually reopens chat; only suppress the modal when the inline surface is actually visible.

Useful? React with πŸ‘Β / πŸ‘Ž.

@steipete
steipete force-pushed the claude/approvals-ui branch 2 times, most recently from 0118969 to 33a643f Compare July 19, 2026 08:04
@clawsweeper clawsweeper Bot removed the rating: πŸ¦ͺ silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Jul 19, 2026
@clawsweeper clawsweeper Bot added rating: πŸ§‚ unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 19, 2026
@steipete
steipete force-pushed the claude/approvals-ui branch from 5d70fbb to b222007 Compare July 19, 2026 08:12
@clawsweeper clawsweeper Bot added rating: πŸ¦ͺ silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: πŸ§‚ unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 19, 2026
@steipete
steipete merged commit 430147f into main Jul 19, 2026
104 of 106 checks passed
@steipete
steipete deleted the claude/approvals-ui branch July 19, 2026 08:18
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 20, 2026
… badges (openclaw#110989)

* feat(ui): overhaul approval experience

* fix(ui): guard approval shortcuts against key auto-repeat and keep scoped errors on enqueue

* fix(ui): arm approval shortcuts after focus settles and scope error clearing to the settled request

* fix(ui): approval hardening β€” modifier-chord shortcuts, pinned active card, badge fallback, quiet countdown

* fix(ui): scope approval errors per request

* style(ui): format approval queue test

* fix(ui): tolerate missing approval overlays

* perf(ui): lazy-load approval modal controls

* fix(ui): satisfy approval lazy-load guards

* style(ui): satisfy approval card lint
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
… badges (openclaw#110989)

* feat(ui): overhaul approval experience

* fix(ui): guard approval shortcuts against key auto-repeat and keep scoped errors on enqueue

* fix(ui): arm approval shortcuts after focus settles and scope error clearing to the settled request

* fix(ui): approval hardening β€” modifier-chord shortcuts, pinned active card, badge fallback, quiet countdown

* fix(ui): scope approval errors per request

* style(ui): format approval queue test

* fix(ui): tolerate missing approval overlays

* perf(ui): lazy-load approval modal controls

* fix(ui): satisfy approval lazy-load guards

* style(ui): satisfy approval card lint
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 maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. proof: πŸ“Έ screenshot Contributor real behavior proof includes screenshot evidence. rating: πŸ¦ͺ silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: πŸ“£ needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant