Skip to content

v0.1.12

Choose a tag to compare

@andrea-tomassi andrea-tomassi released this 21 Jul 09:14
· 62 commits to main since this release

Fix: subagent delegation outage

AuthStorage was removed from @earendil-works/pi-coding-agent in 0.80.x. The subagent executor imported it and called AuthStorage.create() unconditionally, throwing Cannot read properties of undefined (reading 'create') and breaking all subagent delegation regardless of the configured model.

Changes

  • src/subagent/executor.ts — extract resilient, injectable buildModelRegistry(). The cosmetic cost/context-window registry now degrades to undefined instead of crashing; downstream usage enrichment already tolerates a missing registry.
  • test/executor.test.ts — regression coverage (missing host symbols, throwing factory, happy path). CI-safe: skips when the optional @earendil-works peer dep is absent.

Compatibility

Backward compatible — identical behavior when AuthStorage is present.