cloudaxe-opencode/packages/opencode/test/session
Kyle Mistele b1da5714d7 test: add retry behavior tests for structured output
Add 5 new unit tests that verify the retry mechanism for structured
output validation:
- Multiple validation failures trigger multiple onError calls
- Success after failures correctly calls onSuccess
- Error messages guide model to fix issues and retry
- Simulates retry state tracking matching prompt.ts logic
- Simulates successful retry after initial failures

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 11:28:29 -08:00
..
compaction.test.ts fix(session): check for context overflow mid-turn in finish-step (#6480) 2026-01-01 12:03:18 -06:00
message-v2.test.ts test: fix 2026-01-12 12:33:39 -06:00
retry.test.ts core: prevent TimeoutOverflowWarning by capping setTimeout delay to max 32-bit signed integer 2025-12-31 16:15:49 -06:00
revert-compact.test.ts fix: compact command after revert now properly cleans up revert state (#6235) 2025-12-26 22:57:59 -06:00
session.test.ts
structured-output-integration.test.ts feat: structured output 2026-01-12 23:54:53 -08:00
structured-output.test.ts test: add retry behavior tests for structured output 2026-01-19 11:28:29 -08:00