Skip to content

feat: Add session tokens indicator to chat status bar - #319

Merged
edenreich merged 5 commits into
mainfrom
feat/add-session-tokens-indicator
Dec 8, 2025
Merged

edenreich merged 5 commits into
mainfrom
feat/add-session-tokens-indicator

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Adds a new 'session_tokens' indicator to the chat status bar that displays the total token usage for the current session. This provides users with visibility into their token consumption during active sessions. The indicator is configurable and can be enabled/disabled via chat.status_bar.indicators.session_tokens setting.

Changes

  1. Config Schema: Added session_tokens: true to the config schema
  2. Default Config: Set default values for the new indicator
  3. UI Integration: Added SessionTokens field to the status bar indicators struct
  4. UI Logic: Implemented display logic for session token count
  5. Tests: Added comprehensive tests for the new feature

Testing

The feature includes unit tests covering:

  • Indicator display logic
  • Configuration handling
  • Token counting behavior

Configuration

Users can enable/disable the indicator via:

chat:
  status_bar:
    indicators:
      session_tokens: true  # or false to disable

Benefits

  • Provides real-time visibility into token usage
  • Helps users monitor their consumption during sessions
  • Configurable to suit individual preferences
  • Integrates seamlessly with existing status bar system

@edenreich
edenreich merged commit 445fb0a into main Dec 8, 2025
@edenreich
edenreich deleted the feat/add-session-tokens-indicator branch December 8, 2025 21:12
inference-gateway-releaser Bot pushed a commit that referenced this pull request Dec 8, 2025
## [0.84.0](v0.83.0...v0.84.0) (2025-12-08)

### 🚀 Features

* Add git branch indicator to status bar ([#321](#321)) ([e2c45e2](e2c45e2))
* Add session tokens indicator to chat status bar ([#319](#319)) ([445fb0a](445fb0a))

### 🐛 Bug Fixes

* Skip hidden entries in compact async ([8eee131](8eee131))

### 🧹 Maintenance

* Add missing default values to viper config ([5dbbee3](5dbbee3))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.84.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Dec 8, 2025
inference-gateway-releaser Bot pushed a commit that referenced this pull request Dec 9, 2025
## [0.84.0](v0.83.0...v0.84.0) (2025-12-09)

### 🚀 Features

* Add git branch indicator to status bar ([#321](#321)) ([e2c45e2](e2c45e2))
* Add session tokens indicator to chat status bar ([#319](#319)) ([445fb0a](445fb0a))

### 🐛 Bug Fixes

* Skip hidden entries in compact async ([8eee131](8eee131))

### 👷 CI/CD

* Fix release - use latest buildx ([80e8f76](80e8f76))

### 🧹 Maintenance

* **release:** 0.84.0 [skip ci] ([068c301](068c301))
* Add missing default values to viper config ([5dbbee3](5dbbee3))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.84.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant