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

Function isQuestionRejected

packages/core/src/session/runner/llm.ts:144–145  ·  view source on GitHub ↗
(cause: Cause.Cause<unknown>)

Source from the content-addressed store, hash-verified

142
143 // Match V1: dismissing a question halts the loop instead of becoming model-facing tool output.
144 const isQuestionRejected = (cause: Cause.Cause<unknown>) =>
145 cause.reasons.some((reason) => Cause.isDieReason(reason) && reason.defect instanceof QuestionV2.RejectedError)
146
147 type TurnTransition =
148 // Automatic compaction completed; rebuild the request from compacted history.

Callers 1

llm.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected