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

Function questionSync

packages/opencode/src/cli/cmd/run/question.shared.ts:46–52  ·  view source on GitHub ↗
(state: QuestionBodyState, requestID: string)

Source from the content-addressed store, hash-verified

44}
45
46export function questionSync(state: QuestionBodyState, requestID: string): QuestionBodyState {
47 if (state.requestID === requestID) {
48 return state
49 }
50
51 return createQuestionBodyState(requestID)
52}
53
54export function questionSingle(request: QuestionRequest): boolean {
55 return request.questions.length === 1 && request.questions[0]?.multiple !== true

Callers 2

RunQuestionBodyFunction · 0.90

Calls 1

createQuestionBodyStateFunction · 0.85

Tested by

no test coverage detected