MCPcopy Create free account
hub / github.com/cursor/cookbook / addSelectionDetail

Function addSelectionDetail

sdk/coding-agent-cli/src/agent.ts:362–370  ·  view source on GitHub ↗
(choice: ModelChoice)

Source from the content-addressed store, hash-verified

360}
361
362function addSelectionDetail(choice: ModelChoice) {
363 const detail = selectionDetail(choice.value)
364
365 if (!detail || labelsMatch(choice.label, detail)) {
366 return choice.label
367 }
368
369 return `${choice.label} - ${detail}`
370}
371
372function selectionDetail(selection: ModelSelection) {
373 if (selection.params?.length) {

Callers 1

Calls 2

selectionDetailFunction · 0.85
labelsMatchFunction · 0.85

Tested by

no test coverage detected