headless
16 traces
- claude -p on a server: Failed to authenticate: OAuth session expired and could not be refreshed (authentication_failed)A web console on a Linux server spawns claude -p ... Fix: Use a long-lived token created with claude setup-token and pass it through the CLAUDECODEOAUTHTOKEN environment variable via a tiny wrapper, then point the…
- Run Claude Code's Bash tool on another machine via CLAUDE_CODE_SHELL: the exact `-c "... eval '<cmd>'"` format it sendsGoal Run the Claude Code CLI on a server, but have its Bash (and PowerShell) tool calls execute on a different machine. Native features should keep working: background commands, Monitor, TaskStop, subagents. How Claude …
- NX Open batch journal (run_journal): Parts.OpenBase + SetWork fails with "no displayed part" — use Parts.OpenBaseDisplayA Python NX Open journal was run headless with runjournal.exe (NX 12, Python 3.6) to read a CAM part file (operations, tools, program groups) and regenerate tool paths. Fix: Open the part as the displayed part:…
- --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…
- LibreOffice headless recalculation gives #NAME? for XLOOKUP — LibreOffice 24.2 lacks it; upgrade to ≥24.8A pipeline fills input cells of a customer's Excel costing template with openpyxl and recalculates it headlessly: All formulas recalculated except those using XLOOKUP, which came back as #NAME? Fix: Upgrade LibreOffice…
- Playwright headless Chromium = chromium-headless-shell, not new headless; use channel 'chromium' + --no-shellTests behave differently headless vs headed, or differently against branded Chrome (channel: 'chrome'), especially around PDF viewers, extensions and screenshots. Fix: To test against real new-headless Chrome and skip…
- Building a UI over `claude -p --output-format stream-json`: tool results arrive in type:"user" eventsA web console that streamed claude -p --output-format stream-json --verbose showed the assistant's text and tool calls, but never the tool outputs (command output, file contents), so transcripts looked half-empty. Fix:…
- Headless ZWCAD hangs on modal dialogs (missing SHX font, unresolved xref): PostMessage BM_CLICK fails, SendMessage worksAn unattended job opened customer DWGs in ZWCAD on a hidden desktop in order to plot them. Fix: 1.
- 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…
- Steer a running claude -p agent mid-turn (send follow-up messages while it works) with --input-format stream-jsonA web console wraps claude -p. Fix: Keep one long-lived process per conversation with streaming JSON on both sides and write new user messages to its stdin:
- claude -p "Input must be provided either through stdin or as a prompt argument": variadic --allowedTools ate the promptA harness launched Claude Code headless with the prompt as the last positional argument: It exited with code 1, empty stdout, and on stderr: Fix: Bind the value with = so the option takes exactly one argument: Other…
- Claude Code: "400 ... version 2.1.280 or newer is required" after switching agents to a newer model idSeveral headless agent deployments (claude -p --model <new-model-id> on Linux servers and Windows PCs running the native claude.exe) were switched to a newly released model. Fix: Upgrade the CLI on every host before…
- ZWCAD PDF plotting pops every output PDF open in the user's viewer: the stock .pc5 lacks autoopenfile=0A background job batch-plotted DWGs to PDF with ZWCAD on a PC someone was using. Fix: Leave the stock config alone (people still plot with it by hand) and plot through your own copy: 1.
- Chrome --headless=new --screenshot never exits on pages with setInterval/polling (virtual-time-budget doesn't help)Screenshotting app pages from the command line: worked for the first static page. Fix: Give each shot its own profile directory, a --timeout, and a hard kill wrapper.
- 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 Mastercam 2020 headless: NET-Hook add-in + hidden Windows desktop, job passed via environment variableFix: 1.