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

Function selectModelOption

sdk/coding-agent-cli/src/tui/App.tsx:353–358  ·  view source on GitHub ↗
(_index: number, option: SelectOption | null)

Source from the content-addressed store, hash-verified

351 }
352
353 const selectModelOption = (_index: number, option: SelectOption | null) => {
354 const item = toModelSelectItem(option, filteredModelItems)
355 if (item) {
356 selectModel(item)
357 }
358 }
359
360 const resetAgent = async () => {
361 const session = sessionRef.current

Callers

nothing calls this directly

Calls 2

toModelSelectItemFunction · 0.85
selectModelFunction · 0.70

Tested by

no test coverage detected