Skip to content

fix(cron): wire auth profile env injection into isolated cron runner#2081

Merged
alexey-pelykh merged 1 commit intomainfrom
fix/cron-auth-env-injection
Apr 6, 2026
Merged

fix(cron): wire auth profile env injection into isolated cron runner#2081
alexey-pelykh merged 1 commit intomainfrom
fix/cron-auth-env-injection

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Wrap ChannelBridge creation + bridge.handle() in withAuthKeyRetry in src/cron/isolated-agent/run.ts, mirroring the auto-reply path at agent-runner-execution.ts:376-402
  • Cron isolated sessions now receive auth credentials via env injection, with profile rotation on rate-limit/auth errors
  • Add run.auth-retry.test.ts (9 tests) covering auth retry wiring: options passing, baseEnv propagation, error extractor, runtimeEnv injection, error propagation

Closes #2079

Test plan

  • All 215 cron tests pass
  • New auth retry wiring tests verify correct withAuthKeyRetry integration
  • Existing run.channel-bridge.test.ts tests unaffected (mock passthrough added)
  • Typecheck clean, lint clean, format clean
  • CI green

🤖 Generated with Claude Code

…2079)

Wrap ChannelBridge creation + execution in withAuthKeyRetry, mirroring
the auto-reply path — cron sessions now receive auth credentials via env
injection with profile rotation on rate-limit/auth errors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 6, 2026 08:52
@alexey-pelykh alexey-pelykh merged commit ec9bf83 into main Apr 6, 2026
9 checks passed
@alexey-pelykh alexey-pelykh deleted the fix/cron-auth-env-injection branch April 6, 2026 09:02
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.

fix(cron): wire auth profile env injection into isolated cron runner

1 participant