Repository navigation
5.0.0
v5.0.0
New Features
- Translator mode — new "Translator" system prompt with source/target language dropdowns
(75+ languages now supported !!) - LaTeX math hints — toggle that instructs the model to use
$...$ /$$...$$ notation for
math expressions - Markdown rendering — assistant messages now rendered as Markdown (bold, italic, code
blocks, lists) via the mikepenz multiplatform-markdown-renderer library - Smart auto-scroll — dragging up while generating pauses auto-scroll; scrolling back to
the bottom re-enables it
Bug Fixes
- Model unload race condition — unloadModel() is now a suspend function that signals the
native side to stop, then waits for the generation coroutine to fully exit before freeing
native memory (5 s safeguard timeout) - Partial response lost on navigation — switching conversations or starting a new chat now
saves any in-progress partial response before unloading - Custom system prompt not persisting — the custom prompt field now correctly restores its
value when re-opening Settings - Misc bugs patched
Performance
- Token batching — UI updates batched every 3 tokens, reducing Compose recompositions
without visible latency - Stop-sequence scan optimized — only the last 200 characters are scanned per token instead
of the full response string - Thread count auto-detected — defaults to availableProcessors() / 2 (clamped 4–8) instead
of a hardcoded 4
Settings / UX
- Default max tokens raised from 512 → 2048
- Added 3000 / 3500 / 4000 quick-select buttons for max tokens
- isShrinkResources = true enabled for release builds
Build / Dependencies
- AGP 9.1.1, Kotlin 2.3.20, Compose BOM 2026.03.00
- Migrated from kotlinOptions { jvmTarget } to kotlin { compilerOptions { jvmTarget } } DSL
- Dropped kotlin-android plugin (redundant with new compose plugin)
- security-crypto, biometric, Room, coroutines, core-ktx, serialization all bumped to
stable releases - CMake ninja path auto-resolved from local.properties / env vars
- Target/compile SDK bumped to 37
- versionCode = 5