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

Function onSelect

packages/tui/src/feature-plugins/system/diff-viewer.tsx:718–726  ·  view source on GitHub ↗
(dialog)

Source from the content-addressed store, hash-verified

716 options={switchDiffOptions().map((option) => ({
717 ...option,
718 onSelect(dialog) {
719 dialog.clear()
720 props.api.route.navigate(ROUTE, {
721 mode: option.value,
722 sessionID: params()?.sessionID,
723 messageID: params()?.messageID,
724 returnRoute: params()?.returnRoute,
725 })
726 },
727 }))}
728 />
729 ))

Callers

nothing calls this directly

Calls 2

paramsFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected