(value)
| 290 | } |
| 291 | |
| 292 | function updateOtherText(value) { |
| 293 | if (!currentQuestionItem) return; |
| 294 | currentOtherTexts[currentQuestionIdx] = value; |
| 295 | const question = currentQuestionItem.questions[currentQuestionIdx]; |
| 296 | if (!value.trim() || question?.multiSelect) return; |
| 297 | const selected = currentAnswers[currentQuestionIdx]; |
| 298 | if (!selected || selected.size === 0) return; |
| 299 | currentAnswers[currentQuestionIdx] = new Set(); |
| 300 | renderCurrentQuestion(); |
| 301 | } |
| 302 | |
| 303 | export function handleQuestionSubmissionError(toolUseId, error) { |
| 304 | if (!currentQuestionItem) return; |
no test coverage detected