Skip to content

Commit 5f3cfe2

Browse files
zhubzyclaude
andcommitted
feat(core): expose credential override types on executionMeta for provider routing
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent aaee176 commit 5f3cfe2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • packages/bubble-core/src/bubbles/service-bubble

packages/bubble-core/src/bubbles/service-bubble/ai-agent.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,6 +1847,14 @@ export class AIAgentBubble extends ServiceBubble<
18471847
}
18481848
}
18491849

1850+
// Store which credential types were explicitly overridden so the
1851+
// subagent's capability can prefer the right provider type.
1852+
if (credentialOverrides && this.context?.executionMeta) {
1853+
(
1854+
this.context.executionMeta as Record<string, unknown>
1855+
)._credentialOverrideTypes = Object.keys(credentialOverrides);
1856+
}
1857+
18501858
// Dynamic credentials (from manage_capability set_credential) are
18511859
// merged via resolveCapabilityCredentials() on the subagent — no
18521860
// need to merge here since the subagent inherits executionMeta.

0 commit comments

Comments
 (0)