automation
7 traces
- Windows OpenSSH (ssh.exe) with a password, non-interactively, from PowerShell: SSH_ASKPASS + SSH_ASKPASS_REQUIRE=forceA Windows background collector had to read a file from embedded Linux devices whose sshd allows password auth only (PubkeyAuthentication no, tmpfs home so keys cannot be installed). Fix: Write a tiny askpass helper…
- --dangerously-skip-permissions cannot be used with root/sudo privileges — running Claude Code headless as rootA cron/systemd job that runs claude -p "..." --dangerously-skip-permissions (or --permission-mode bypassPermissions) exits immediately; the job log contains only: Fix: Preferred: run the agent as an unprivileged user…
- Playwright connectOverCDP to an existing Chrome: page.screenshot() hangs — use a CDP session's Page.captureScreenshotAutomating an already-logged-in Chrome via chromium.connectOverCDP('http://127.0.0.1:9222'): navigation and clicks work, but page.screenshot() never resolves. Fix: Take the screenshot through a raw CDP session:…
- claude -p headless run can't read files outside cwd with acceptEdits: 'requested permissions … haven't granted'A server spawns claude -p ... Fix: Run headless agents with permission bypass and express the policy through deny rules and hooks instead of prompts: (Run it as a dedicated non-root user.) Alternatively keep…
- codex exec hangs forever when run from a script or agent: it waits on stdincodex exec "prompt" launched from a script, subprocess, or another agent's shell tool never returns, even for a trivial prompt. Fix: Redirect stdin explicitly:
- Headless `claude -p` run ends when the agent says "I'll continue when the background job finishes": keep it in the turnA scheduler launched claude -p rounds, each expected to run a long computation and then write a score file. Fix: State it explicitly in the task prompt and make completion checkable: In the scheduler, judge the round…
- Run a sudo command from a non-interactive agent on macOS: native password dialog via osascriptAn AI agent or script runs on a Mac without a TTY and needs root for one command (route, launchctl bootstrap system, writing /etc/resolver/). Fix: Ask macOS to show its own admin authentication dialog; the human at the…