Skip to content

feat: token usage, response timing, block properties dialog#1095

Draft
AAClause wants to merge 4 commits intofeat/reasoning-storagefrom
feat/token-usage-block-properties
Draft

feat: token usage, response timing, block properties dialog#1095
AAClause wants to merge 4 commits intofeat/reasoning-storagefrom
feat/token-usage-block-properties

Conversation

@AAClause
Copy link
Member

@AAClause AAClause commented Mar 14, 2026

  • feat: add token usage, response timing, and block properties
  • test: add unit tests for TokenUsage, ResponseTiming, usage_utils

@AAClause AAClause force-pushed the feat/reasoning-storage branch from 3c678ad to 3e37718 Compare March 14, 2026 19:08
@AAClause AAClause force-pushed the feat/token-usage-block-properties branch 2 times, most recently from 74d9565 to df84c6b Compare March 14, 2026 19:20
@AAClause AAClause force-pushed the feat/reasoning-storage branch from 3e37718 to cba94b7 Compare March 15, 2026 06:25
@AAClause AAClause force-pushed the feat/token-usage-block-properties branch from faeface to a1c6a38 Compare March 15, 2026 06:25
@AAClause AAClause force-pushed the feat/reasoning-storage branch from cba94b7 to b580a15 Compare March 15, 2026 09:10
@AAClause AAClause force-pushed the feat/token-usage-block-properties branch from a1c6a38 to 3903b1e Compare March 15, 2026 09:10
@AAClause AAClause force-pushed the feat/reasoning-storage branch from b580a15 to d045046 Compare March 15, 2026 13:20
@AAClause AAClause force-pushed the feat/token-usage-block-properties branch from da32201 to fb89768 Compare March 15, 2026 13:20
@AAClause AAClause force-pushed the feat/reasoning-storage branch from d045046 to 03572e2 Compare March 15, 2026 13:49
@AAClause AAClause force-pushed the feat/token-usage-block-properties branch from fb89768 to 46be761 Compare March 15, 2026 13:56
- Add TokenUsage and ResponseTiming models to MessageBlock
- Populate usage from all provider engines (streaming and non-streaming)
- Track completion timing in CompletionHandler
- Add web_search_mode to MessageBlock and persist in DB
- Add MessageBlockPropertiesDialog for viewing block metadata
- ResponseTiming: add request_sent_at, first_token_at; TTFT, generation duration
- completion_handler: capture request_sent_at, first_token_at for streaming
- DB: persist usage_json, timing_json on message_blocks (migration 005)
- Add usage_utils with provider-specific extractors; refactor all engines
- Add Properties context menu item for message blocks (Alt+Enter)
@AAClause AAClause force-pushed the feat/token-usage-block-properties branch from 46be761 to 8db5f8d Compare March 15, 2026 14:33
+ Sectioned properties dialogs with Page Up/Down navigation
@AAClause AAClause force-pushed the feat/token-usage-block-properties branch from 65a0b2a to dcc2ba8 Compare March 15, 2026 18:27
- Replace ReadOnlyMessageDialog with ModelDetailsDialog for model details
- Add ModelDetailsDialog with Overview, Limits, Description, Pricing, Additional info
- Switch SectionedPropertiesDialog from TextCtrl to StyledTextCtrl for correct
  word wrap and section navigation (Page Up/Down)
- Add Tab focus traversal between content area and close button (STC consumes Tab)
@AAClause AAClause force-pushed the feat/token-usage-block-properties branch from dcc2ba8 to a86eee3 Compare March 15, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant