createFnAgent now delegates to createResolvedAgentSession — deriving the CLI runtime hint (cursor/claude/grok/omp/hermes), mock/test-mode forcing, and session:runtime-resolved visibility — using a host-registered default PluginRunner keyed by project root (published by InProcessRuntime at plugin init). DefaultPiRuntime re-enters via a __rawPiSession marker so the seam's own pi bridge cannot recurse, and the raw constructor survives as createPiAgentSessionRaw for that bridge and pi-internal tests. Mission and milestone/slice interviews additionally pass their request-scoped pluginRunner through the seam and prompt via the engine promptWithFallback dispatcher (plugin CLI runtime sessions have no session.prompt()). This fixes "Configured model cursor-cli/auto ... was not found in the pi model registry" in mission planning while chat on the same model worked, and closes the same gap for every remaining bare createFnAgent lane. Also updates the pi skill-filtering test that still asserted pre-FN-9114 allow-list narrowing; requested skill names are ensure-present since FN-9114. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
693 B
693 B
@runfusion/fusion
| @runfusion/fusion |
|---|
| patch |
summary: Route every AI lane through runtime resolution so CLI-runtime models (e.g. Cursor CLI) work everywhere chat does.
category: fix
dev: createFnAgent now delegates to createResolvedAgentSession (CLI runtime hint derivation, mock forcing, runtime-resolved visibility) with a host-registered default PluginRunner per project root; DefaultPiRuntime re-enters via a __rawPiSession marker into createPiAgentSessionRaw. Mission and milestone/slice interviews also pass their request-scoped pluginRunner and prompt via the engine promptWithFallback dispatcher, fixing "cursor-cli/auto ... not found in the pi model registry" in mission planning.