Files
multica/tests
Jiayuan db423b53a5 test(#121): Phase 3 - Add comprehensive tests for permission handlers
Add tests for AskUserQuestionHandler (14 tests):
- Multi-question format handling
- Backward compatibility (single question)
- Session mapping edge cases
- Cancel and re-prompt flow with async polling

Add tests for QuestionToolWorkaround (21 tests):
- Question tool detection
- Duplicate prevention with toolCallId tracking
- Session mapping
- Question formatting with/without options
- Cancel and notify flow
- Handled set cleanup after 60s delay

Coverage improvements:
- AskUserQuestionHandler: 2.17% → ~95%
- QuestionToolWorkaround: 11.42% → ~95%
- Overall: 49.3% → 52.52% (above CI threshold)

Part of #121
2026-01-29 00:44:51 +08:00
..