MCPcopy Create free account
hub / github.com/anomalyco/opencode / selected

Function selected

packages/opencode/src/cli/cmd/run/footer.command.tsx:693–693  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

691 const items = createMemo<QueuedEntry[]>(() => match(query(), entries()))
692 const menu = createFooterMenuState({ count: () => items().length, limit: SUBAGENT_LIST_ROWS })
693 const selected = () => items()[menu.selected()]
694
695 createEffect(() => {
696 query()

Callers 4

RunFooterViewFunction · 0.70
createFooterMenuStateFunction · 0.70
moveFunction · 0.70

Calls 1

itemsFunction · 0.50

Tested by

no test coverage detected