openclaw icon indicating copy to clipboard operation
openclaw copied to clipboard

[Bug]: Exec approval dialog shows no command/context details on macOS

Open GraemeCaldwell opened this issue 10 months ago • 2 comments

Summary

When the gateway (running on one Mac) broadcasts exec.approval.requested, the Mac app (running on a different node) displays the approval dialog, but the accessory view (command + context) is empty. Only the title and buttons render.

Steps to reproduce

  1. Trigger any command that requires exec approval (gateway broadcasts exec.approval.requested).
  2. On macOS app, observe the approval dialog.

Expected behavior

Dialog shows the command plus context.

Actual behavior

Dialog shows only the title and buttons; no command/context details.

Environment

  • Clawdbot version: 2026.1.23-1
  • macOS app version: 2026.1.23 (7750)
  • OS: macOS Tahoe 26.2
  • Install method: install.sh script

Codex analysis

Accessory view built in ExecApprovalsPromptPresenter.buildAccessoryView has no explicit size on the root NSStackView, so NSAlert collapses it to height 0.

Relevant code: apps/macos/Sources/Clawdbot/ExecApprovalsSocket.swift (ExecApprovalsPromptPresenter)

Logs or screenshots

Image

GraemeCaldwell avatar Jan 24 '26 19:01 GraemeCaldwell

Closing this issue due to inactivity (no updates in 3+ days). If this is still relevant, please feel free to reopen with any additional context or updates.

Thanks for taking the time to report this!

sebslight avatar Jan 29 '26 13:01 sebslight

I updated to the latest gateway and Mac app version and this is still an issue. It's a security vulnerability to not display what one is approving in the approval request dialogs.

GraemeCaldwell avatar Jan 31 '26 13:01 GraemeCaldwell