@arhen/pi-core-subagent 1.3.55 → 1.3.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/manager.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arhen/pi-core-subagent",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.56",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "pi extension: fast in-process subagents with a dependency-graph scheduler (needs edges gate tasks and carry upstream output into dependent prompts), plus background runs, intercom and agent-to-agent mailbox. Leader defines agents inline.",
|
|
6
6
|
"license": "MIT",
|
package/src/manager.ts
CHANGED
|
@@ -184,6 +184,11 @@ export async function ensureUsableModel(
|
|
|
184
184
|
if (session && model.provider === session.provider && model.id === session.id) return { model };
|
|
185
185
|
const error = await probeModel(ctx, model, signal);
|
|
186
186
|
if (!error) return { model };
|
|
187
|
+
if (model.provider === "opencode-go" && /MissingSessionID|x-opencode-session/i.test(error)) {
|
|
188
|
+
// ponytail: opencode-go rejects stateless probes but accepts AgentSession requests, which add the session header.
|
|
189
|
+
// Upgrade path: remove this exception when modelRegistry.complete can carry AgentSession request transforms.
|
|
190
|
+
return { model, note: `preflight unavailable (${error}); child session will validate the model` };
|
|
191
|
+
}
|
|
187
192
|
if (!session) throw new Error(`Model ${model.provider}/${model.id} is unusable: ${error}`);
|
|
188
193
|
return {
|
|
189
194
|
model: session,
|