MCPcopy
hub / github.com/codeaashu/claude-code / resolveTeammateModel

Function resolveTeammateModel

src/tools/shared/spawnMultiAgent.ts:93–101  ·  view source on GitHub ↗
(
  inputModel: string | undefined,
  leaderModel: string | null,
)

Source from the content-addressed store, hash-verified

91 * Exported for testing.
92 */
93export function resolveTeammateModel(
94 inputModel: string | undefined,
95 leaderModel: string | null,
96): string {
97 if (inputModel === 'inherit') {
98 return leaderModel ?? getDefaultTeammateModel(leaderModel)
99 }
100 return inputModel ?? getDefaultTeammateModel(leaderModel)
101}
102
103// ============================================================================
104// Types

Callers 3

handleSpawnSplitPaneFunction · 0.85
handleSpawnInProcessFunction · 0.85

Calls 1

getDefaultTeammateModelFunction · 0.85

Tested by

no test coverage detected