Skip to content

Conversation

@daniloc
Copy link
Collaborator

@daniloc daniloc commented Jan 16, 2026

Fixes the bug Landon reported: sometimes the cleanup stage of the agent was failing, causing a harmless error that looked much more dramatic when propagated to the CLI.

This pull prevents this and adds a unit test to prove it.

Claude Code suggests this is a related issue:

anthropics/claude-agent-sdk-typescript#41

@daniloc daniloc force-pushed the fix-agent-interface-race-condition branch from b15ff67 to 7e63c8e Compare January 16, 2026 19:39
@daniloc daniloc requested a review from a team January 16, 2026 19:39
@daniloc daniloc changed the title Resilience to Agent SDK cleanup burps fix: Resilience to Agent SDK cleanup burps Jan 16, 2026
@daniloc daniloc enabled auto-merge (squash) January 16, 2026 19:49
@daniloc daniloc disabled auto-merge January 16, 2026 19:49
daniloc and others added 3 commits January 16, 2026 14:51
Users with an Anthropic API key in their environment would fail to
authenticate with the LLM gateway, which expects the wizard's OAuth token.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Users with an existing Claude Code /login session would have those
credentials take precedence over the wizard's OAuth token. Setting
CLAUDE_CODE_OAUTH_TOKEN explicitly overrides stored credentials.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

3 participants