- Fix loadConversationHistory() calls missing await (was returning Promise instead of data)
- Fix saveConversationHistory() calls missing await in 4 locations
- Fix clearConversationHistory() calls missing await
- Fix getChatHistory() calls missing await in 6 locations
- Fix updateChatHistory() calls missing await in 5 locations
All dynamic import wrapper functions are now properly awaited, resolving:
- "History length: undefined" error (Promise.length was undefined)
- "Raw history from localStorage: Promise { <state>: "pending" }" console output
- localStorage operations not completing before UI updates
This fixes the localStorage breakage caused by async wrapper functions not being awaited.
|
||
|---|---|---|
| css | ||
| src | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| biome.json | ||
| CLAUDE.md | ||
| demo.html | ||
| favicon.ico | ||
| index.html | ||
| integration_tests.js | ||
| jest.config.js | ||
| journal.rst | ||
| Makefile | ||
| package.json | ||
| simple_tests.js | ||
| uncloseai.js | ||
| uncloseai.js.orig | ||
| validate_exports.js | ||