Skip to content

fix(spawn): scope out ambient ANTHROPIC_API_KEY from claude launches - #4

Merged
brchue-ux merged 1 commit into
mainfrom
fm/nomistakes-connectors-authkey
Aug 7, 2026
Merged

fix(spawn): scope out ambient ANTHROPIC_API_KEY from claude launches#4
brchue-ux merged 1 commit into
mainfrom
fm/nomistakes-connectors-authkey

Conversation

@brchue-ux

Copy link
Copy Markdown
Owner

Intent

Scope out ambient ANTHROPIC_API_KEY from firstmate-launched claude worker panes so Claude Code prefers OAuth claude.ai login over API-key billing, restoring org connectors. Root cause and fix already diagnosed in backlog item nomistakes-connectors-authkey; captain approved skipping every claude-spawning pipeline step (review, test, document, lint) for this run since each hits the exact bug this fix resolves via the no-mistakes daemon's own agent invocations, and validating instead via the already-passing local test suite (27/27, including the 2 new cases added for this fix).

What Changed

910ecac fix(spawn): scope out ambient ANTHROPIC_API_KEY from claude launches

Testing

  • ⏭️ Test - skipped

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⏭️ **Review** - skipped

Step was skipped.

⏭️ **Test** - skipped

Step was skipped.

⏭️ **Document** - skipped

Step was skipped.

⏭️ **Lint** - skipped

Step was skipped.

✅ **Push** - passed

✅ No issues found.

herdr server sets ANTHROPIC_API_KEY in its own environment and passes it
to every child pane, which makes claude prefer API-key billing over the
OAuth claude.ai login and disables org connectors. env -u ANTHROPIC_API_KEY
on the claude launch line unsets it for that one process, verified
empirically (claude doctor) to satisfy claude's own auth-source check.
@brchue-ux
brchue-ux merged commit 5f2bdaa into main Aug 7, 2026
10 checks passed
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