Skip to content

fix(agents): bypass stale auth for plugin harnesses - #89305

Merged
steipete merged 1 commit into
mainfrom
inference
Jun 2, 2026
Merged

steipete merged 1 commit into
mainfrom
inference

Conversation

@steipete

@steipete steipete commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary:

  • Let explicit non-Codex plugin harness runtimes bypass stale OpenClaw provider auth cooldowns before the harness starts.
  • Preserve fail-closed missing harness behavior, implicit Codex/OpenClaw auth gating, and configured CLI runtime passthrough.
  • Add a regression for a claude-tmux-style external CLI harness with stale Anthropic auth state and configured fallbacks.

Verification:

  • node scripts/run-vitest.mjs src/agents/model-fallback.test.ts
  • node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.overflow-compaction.test.ts
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.json --incremental false
  • pnpm exec oxfmt --check --threads=1 src/agents/model-fallback.ts src/agents/model-fallback.test.ts
  • /Users/steipete/Projects/agent-scripts/skills/autoreview/scripts/autoreview --mode local

Fixes #85105

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S maintainer Maintainer-authored PR labels Jun 2, 2026
@clawsweeper

clawsweeper Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(agents): bypass stale auth for plugin harnesses This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete

steipete commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready proof for exact head d9e7b0bb515e2c6e2440fd23c2b67c9057e438e5:

Local proof:

  • node scripts/run-vitest.mjs src/agents/model-fallback.test.ts passed
  • node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.overflow-compaction.test.ts passed
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.core.test.json --incremental false passed
  • pnpm exec oxfmt --check --threads=1 src/agents/model-fallback.ts src/agents/model-fallback.test.ts passed
  • /Users/steipete/Projects/agent-scripts/skills/autoreview/scripts/autoreview --mode local clean, no accepted/actionable findings

CI proof:

  • PR checks green via gh pr checks 89305 --watch --interval 15
  • CI run 26796186280 completed successfully across the selected shards
  • CodeQL/Security High, Critical Quality, Dependency Guard, Workflow Sanity, OpenGrep, Real behavior proof all passed or intentionally skipped by path selection

Fixes #85105 by letting explicit non-Codex plugin harness runtimes bypass stale OpenClaw provider auth cooldowns before harness startup while preserving missing-harness fail-closed behavior and Codex/OpenClaw auth gating.

@steipete
steipete merged commit b7d363c into main Jun 2, 2026
181 of 185 checks passed
@steipete
steipete deleted the inference branch June 2, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

External CLI harnesses blocked by stale auth-profiles gate

1 participant