Commit Graph

9 Commits

Author SHA1 Message Date
6213281b3c fix: give sub-agents the provider their pinned model needs
Sub-agent sessions are created with `noExtensions: true`, which also
removes every provider an extension registered through
`pi.registerProvider` from the sub-session's own ModelRuntime. Since
bff187d pinned sub-agents to the invoking session's model, every check
depends on a provider registration it deliberately does not load, so
scans died in about 20ms with "No API key found for neuralwatt" on a
perfectly healthy login — the key was in auth.json, the provider simply
did not exist in that session's runtime.

Thread the invoking session's registry down to the runner and
re-register just the pinned model's provider there, through an inline
extension factory: inline factories load regardless of `noExtensions`,
so the sub-agent authenticates exactly as the host does while every
other extension stays out of its scope. Registrations are narrowed once
at the extension entry point (`asProviderRegistry`) and relayed
untouched — a native provider keeps its own stream and auth wiring.

The generated omp port keeps its isolation: it disables extension
discovery and has no extension registrations to forward, so it carries
the same shapes with a stub for the helper.

Tests: new tests/provider-forwarding.test.ts pins the narrowing and the
relay (native wins over config-only, nothing forwarded for a built-in);
it fails on the previous tree, where the helper does not exist. Full
suite 162 pass with one pre-existing failure (MISC-46, worktree-only).
bun run typecheck clean; port-to-omp regenerates and typechecks.

MISC-45

Co-Authored-By: nw-flash-flex <noreply@neuralwatt.com>
2026-10-20 17:43:54 -04:00
bff187da20 fix: use current selected model
All checks were successful
port-to-omp / port (push) Successful in 10s
publish / publish (push) Successful in 14s
2026-08-21 21:18:15 -04:00
3fd386a637 port: emit publish workflow into omp repos (independent npm releases)
All checks were successful
port-to-omp / port (push) Successful in 4s
2026-08-12 19:37:07 -04:00
c9d384a4fa add scripts/release-tag.sh (bump package.json, tag, push; triggers port + npm publish CI)
All checks were successful
port-to-omp / port (push) Successful in 4s
2026-08-12 19:31:39 -04:00
82888f3137 docs: port is updated only by CI on push — drop manual regeneration usage note
Some checks failed
port-to-omp / port (push) Failing after 5s
2026-08-11 12:16:24 -04:00
663b207df1 port: stub omp README (omp install + source link); source README install via npm
Some checks failed
port-to-omp / port (push) Failing after 4s
2026-08-10 16:07:31 -04:00
c8fba70d1e port: refuse dst inside src (realpath-normalized) + workflow clones omp repo outside checkout
Some checks failed
port-to-omp / port (push) Failing after 6s
2026-08-10 15:56:48 -04:00
be76b31a6e rename port to omp-pygienium (repo renamed)
Some checks failed
port-to-omp / port (push) Failing after 5s
2026-08-10 15:18:01 -04:00
f6f997bb21 add port-to-omp.mjs + Gitea Actions workflow (regenerate omp port on push)
Some checks failed
port-to-omp / port (push) Failing after 4s
2026-08-10 12:24:17 -04:00