Developer Builds Auto-Approval Daemon to Bypass Claude Code's Recurring Computer Use Dialog
A developer created a Python daemon that automatically dismisses Claude Code's Computer Use approval dialog, which reappears every time a session boundary is crossed and cannot be suppressed through settings. Investigation of the Claude 2.1.266 binary confirmed that approval state is stored only in session memory and resets on each new process, ruling out any permanent settings-based fix. The script polls all open Terminal tabs every two seconds and sends an Enter keystroke when the dialog is detected. To prevent misfires, the daemon first checks that the cursor is pointing at the 'Allow for this session' option before acting. Key technical hurdles included AppleScript tab-indexing quirks, the performance cost of reading terminal history, and the daemon failing entirely when launched via launchd instead of as a Terminal child process.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in