MCPcopy Index your code
hub / github.com/anomalyco/opencode / select

Function select

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

Source from the content-addressed store, hash-verified

143 }
144
145 const select = () => {
146 const cur = state()
147 const next = questionSelect(cur, props.request)
148 if (next.state !== cur) {
149 setState(next.state)
150 }
151
152 if (!next.reply) {
153 return
154 }
155
156 void beginReply(next.reply)
157 }
158
159 const submit = () => {
160 void beginReply(questionSubmit(props.request, state()))

Callers 1

RunQuestionBodyFunction · 0.70

Calls 4

questionSelectFunction · 0.90
setStateFunction · 0.85
beginReplyFunction · 0.85
stateFunction · 0.70

Tested by

no test coverage detected