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

Function selectionDetail

sdk/coding-agent-cli/src/agent.ts:372–381  ·  view source on GitHub ↗
(selection: ModelSelection)

Source from the content-addressed store, hash-verified

370}
371
372function selectionDetail(selection: ModelSelection) {
373 if (selection.params?.length) {
374 return selection.params
375 .map((param) => labelFromId(param.value))
376 .filter(Boolean)
377 .join(", ")
378 }
379
380 return selection.id
381}
382
383function modelSelectionKey(selection: ModelSelection) {
384 const params = [...(selection.params ?? [])]

Callers 1

addSelectionDetailFunction · 0.85

Calls 1

labelFromIdFunction · 0.70

Tested by

no test coverage detected