Add 10 new regression tests in Section 10 targeting specific errors encountered:
🚨 Session Error Prevention:
- Async generator wrapper validation (prevents "not iterable" errors)
- Dynamic import wrapper error handling (prevents undefined function errors)
- Module import path verification (prevents wrong module imports)
- Variable scope isolation (prevents direct chatHistory access)
- Runtime function availability (prevents window.function undefined errors)
- Module export consistency (prevents import/export mismatches)
- Async/await pattern validation (prevents promise handling errors)
- Error boundary patterns (prevents cascading failures)
- Generator function delegation (prevents yield* delegation errors)
- Function signature compatibility (prevents parameter mismatches)
These tests specifically target the JavaScript errors we encountered:
- sendMessageWithCustomHistory(...) is not iterable
- fetchModelsFromEndpoints is not a function
- loadConversationHistory is not a function
- clearConversationHistory is not a function
- saveConversationHistory is not a function
- getSelectedModel is not a function
- chatHistory is not defined
- window.openTTSModal is not a function
- window.openTranslateModal is not a function
All tests validate current fixes and prevent regression of these specific patterns.
|
||
|---|---|---|
| css | ||
| src | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| biome.json | ||
| CLAUDE.md | ||
| demo.html | ||
| favicon.ico | ||
| index.html | ||
| integration_tests.js | ||
| journal.rst | ||
| Makefile | ||
| package.json | ||
| simple_tests.js | ||
| uncloseai.js | ||
| uncloseai.js.orig | ||
| validate_exports.js | ||