Skip to content

Fix claude-usage poller 401 by adding required system prompt header - #61

Merged
weeeha merged 1 commit into
mainfrom
rescue/claude-usage-401-fix
Sep 28, 2026
Merged

weeeha merged 1 commit into
mainfrom
rescue/claude-usage-401-fix

Conversation

@weeeha

@weeeha weeeha commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Fixes the Mac usage-poller daemon's HTTP 401 by adding the required Claude Code system-prompt header, and logs the response body on auth failure for diagnostics.

Rescued from a stranded worktree on 2026-09-28.

🤖 Generated with Claude Code

The Mac usage-poller daemon was failing auth because Claude Code
subscription OAuth tokens require the exact Claude Code system prompt
on the request. Also logs the response body on auth failure for
easier diagnosis.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@weeeha
weeeha merged commit acfa61a into main Sep 28, 2026
1 check passed
@weeeha
weeeha deleted the rescue/claude-usage-401-fix branch September 28, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant