|
Persist context token count: return from API, restore on session load
- GET /sessions/{id} now returns context_token_count and max_context_tokens
(max pulled from settings.ollama_num_ctx)
- loadSession() in chat store sets contextTokens/maxContextTokens from the
response so ContextBar shows the last known fill level immediately on load,
not only after the first new message
- Restore v-if guard on ContextBar (hides for brand-new sessions with 0 tokens)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|---|
|
|
| navi/api/routes/sessions.py |
|---|
| webclient/dist/assets/index-CjZ4v1Fa.js 100644 → 0 |
|---|
|
Not supported
|
| webclient/dist/assets/index-Cw_6H-kR.css 100644 → 0 |
|---|
| webclient/dist/assets/index-DTihm0Z2.js 0 → 100644 |
|---|
|
Not supported
|
| webclient/dist/assets/index-Xfui1UUJ.css 0 → 100644 |
|---|
| webclient/dist/index.html |
|---|
| webclient/src/components/ui/ContextBar.vue |
|---|
| webclient/src/stores/chat.js |
|---|