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>
1 parent af8dfdb commit f74de4f04d60ef41c99157c12a767d9d489ec2d8
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 16 Apr
Showing 8 changed files
View
navi/api/routes/sessions.py
View
webclient/dist/assets/index-CjZ4v1Fa.js 100644 → 0
Not supported
View
webclient/dist/assets/index-Cw_6H-kR.css 100644 → 0
View
webclient/dist/assets/index-DTihm0Z2.js 0 → 100644
Not supported
View
webclient/dist/assets/index-Xfui1UUJ.css 0 → 100644
View
webclient/dist/index.html
View
webclient/src/components/ui/ContextBar.vue
View
webclient/src/stores/chat.js