Skip to content

fix: display the number of tokens consumed in the chat UI#699

Draft
jeffmaury wants to merge 611 commits intokortex-hub:mainfrom
jeffmaury:GH-490
Draft

fix: display the number of tokens consumed in the chat UI#699
jeffmaury wants to merge 611 commits intokortex-hub:mainfrom
jeffmaury:GH-490

Conversation

@jeffmaury
Copy link
Contributor

@jeffmaury jeffmaury commented Nov 7, 2025

Relates to #490

Might request reset of the chat database as a new field is added into the Message table

tokens

cbr7 and others added 30 commits October 27, 2025 20:50
* chore(test): initial draft for flows e2e test suite

Signed-off-by: Vladimir Lazar <vlazar@redhat.com>

* feat(test): moving skip check to higher scope

Signed-off-by: Vladimir Lazar <vlazar@redhat.com>

* feat(test): calling assert on checker method

Signed-off-by: Vladimir Lazar <vlazar@redhat.com>

* feat(test): remove unneeded const

Signed-off-by: Vladimir Lazar <vlazar@redhat.com>

* feat(test): add test ids

Signed-off-by: Vladimir Lazar <vlazar@redhat.com>

---------

Signed-off-by: Vladimir Lazar <vlazar@redhat.com>
…rtex-hub#622)

* chore(test): some refactoring and improvements for test framework
* chore: handle fetch mcp servers from registries error
Signed-off-by: Sonia_Sandler <sandler.sonia@gmail.com>

* chore: apply suggestions
Signed-off-by: Sonia_Sandler <sandler.sonia@gmail.com>

* chore: apply suggestions
Signed-off-by: Sonia_Sandler <sandler.sonia@gmail.com>
)

Signed-off-by: Vladimir Lazar <vlazar@redhat.com>
Signed-off-by: Vladimir Lazar <vlazar@redhat.com>
Signed-off-by: serbangeorge-m <serbangeorge.m@gmail.com>
* chore(test): removing some duplicate code
* chore(test): create general dialog handling method
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…rtex-hub#635)

Bumps [@ai-sdk/openai-compatible](https://github.com/vercel/ai) from 1.0.23 to 1.0.24.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/openai-compatible@1.0.23...@ai-sdk/openai-compatible@1.0.24)

---
updated-dependencies:
- dependency-name: "@ai-sdk/openai-compatible"
  dependency-version: 1.0.24
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(test): create mcp github connection

Signed-off-by: serbangeorge-m <serbangeorge.m@gmail.com>

* chore(test): fix pr comments

Signed-off-by: serbangeorge-m <serbangeorge.m@gmail.com>

* chore(test): resolve pr comments

Signed-off-by: serbangeorge-m <serbangeorge.m@gmail.com>

* chore(test): resolve pr comments

Signed-off-by: serbangeorge-m <serbangeorge.m@gmail.com>

* chore(test): update mcpsetup in fixture

Signed-off-by: serbangeorge-m <serbangeorge.m@gmail.com>

---------

Signed-off-by: serbangeorge-m <serbangeorge.m@gmail.com>
Bumps [@ai-sdk/svelte](https://github.com/vercel/ai/tree/HEAD/packages/svelte) from 3.0.82 to 3.0.84.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/@ai-sdk/svelte@3.0.84/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/commits/@ai-sdk/svelte@3.0.84/packages/svelte)

---
updated-dependencies:
- dependency-name: "@ai-sdk/svelte"
  dependency-version: 3.0.84
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
Bumps [@ai-sdk/google](https://github.com/vercel/ai) from 2.0.25 to 2.0.26.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/google@2.0.25...@ai-sdk/google@2.0.26)

---
updated-dependencies:
- dependency-name: "@ai-sdk/google"
  dependency-version: 2.0.26
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
* chore(test): refactored some part of the test framework
Bumps [@ai-sdk/svelte](https://github.com/vercel/ai/tree/HEAD/packages/svelte) from 3.0.84 to 3.0.86.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/@ai-sdk/svelte@3.0.86/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/commits/@ai-sdk/svelte@3.0.86/packages/svelte)

---
updated-dependencies:
- dependency-name: "@ai-sdk/svelte"
  dependency-version: 3.0.86
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@ai-sdk/openai-compatible](https://github.com/vercel/ai) from 1.0.24 to 1.0.25.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/openai-compatible@1.0.24...@ai-sdk/openai-compatible@1.0.25)

---
updated-dependencies:
- dependency-name: "@ai-sdk/openai-compatible"
  dependency-version: 1.0.25
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: serbangeorge-m <serbangeorge.m@gmail.com>
Bumps [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk) from 1.20.2 to 1.21.0.
- [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
- [Commits](modelcontextprotocol/typescript-sdk@1.20.2...1.21.0)

---
updated-dependencies:
- dependency-name: "@modelcontextprotocol/sdk"
  dependency-version: 1.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@ai-sdk/google](https://github.com/vercel/ai) from 2.0.26 to 2.0.27.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/google@2.0.26...@ai-sdk/google@2.0.27)

---
updated-dependencies:
- dependency-name: "@ai-sdk/google"
  dependency-version: 2.0.27
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@ai-sdk/openai-compatible](https://github.com/vercel/ai) from 1.0.25 to 1.0.26.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/openai-compatible@1.0.25...@ai-sdk/openai-compatible@1.0.26)

---
updated-dependencies:
- dependency-name: "@ai-sdk/openai-compatible"
  dependency-version: 1.0.26
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot bot and others added 25 commits January 15, 2026 12:58
Bumps [@ai-sdk/provider](https://github.com/vercel/ai) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/provider@3.0.2...@ai-sdk/provider@3.0.3)

---
updated-dependencies:
- dependency-name: "@ai-sdk/provider"
  dependency-version: 3.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the ai-sdk group with 2 updates: [@ai-sdk/mcp](https://github.com/vercel/ai) and [ai](https://github.com/vercel/ai).


Updates `@ai-sdk/mcp` from 1.0.6 to 1.0.8
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/mcp@1.0.6...@ai-sdk/mcp@1.0.8)

Updates `ai` from 6.0.33 to 6.0.36
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/ai@6.0.33...ai@6.0.36)

---
updated-dependencies:
- dependency-name: "@ai-sdk/mcp"
  dependency-version: 1.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ai-sdk
- dependency-name: ai
  dependency-version: 6.0.36
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ai-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@ai-sdk/google](https://github.com/vercel/ai) from 3.0.7 to 3.0.9.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/google@3.0.7...@ai-sdk/google@3.0.9)

---
updated-dependencies:
- dependency-name: "@ai-sdk/google"
  dependency-version: 3.0.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@ai-sdk/openai-compatible](https://github.com/vercel/ai) from 2.0.9 to 2.0.11.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/openai-compatible@2.0.9...@ai-sdk/openai-compatible@2.0.11)

---
updated-dependencies:
- dependency-name: "@ai-sdk/openai-compatible"
  dependency-version: 2.0.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@ai-sdk/svelte](https://github.com/vercel/ai/tree/HEAD/packages/svelte) from 4.0.37 to 4.0.38.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/commits/@ai-sdk/svelte@4.0.38/packages/svelte)

---
updated-dependencies:
- dependency-name: "@ai-sdk/svelte"
  dependency-version: 4.0.38
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@ai-sdk/openai-compatible](https://github.com/vercel/ai) from 2.0.11 to 2.0.13.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/openai-compatible@2.0.11...@ai-sdk/openai-compatible@2.0.13)

---
updated-dependencies:
- dependency-name: "@ai-sdk/openai-compatible"
  dependency-version: 2.0.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [@ai-sdk/google](https://github.com/vercel/ai) from 3.0.9 to 3.0.10.
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/@ai-sdk/google@3.0.9...@ai-sdk/google@3.0.10)

---
updated-dependencies:
- dependency-name: "@ai-sdk/google"
  dependency-version: 3.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@ai-sdk/mcp: 1.0.10
@ai: 6.0.39
@ai-sdk/provider: 3.0.4

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…x-hub#929)

Bumps the ai-sdk group with 1 update: [ai](https://github.com/vercel/ai).


Updates `ai` from 6.0.39 to 6.0.40
- [Release notes](https://github.com/vercel/ai/releases)
- [Changelog](https://github.com/vercel/ai/blob/main/CHANGELOG.md)
- [Commits](https://github.com/vercel/ai/compare/ai@6.0.39...ai@6.0.40)

---
updated-dependencies:
- dependency-name: ai
  dependency-version: 6.0.40
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ai-sdk
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Relates to kortex-hub#490

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 9.52381% with 19 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...erer/src/lib/chat/components/ipc-chat-transport.ts 0.00% 6 Missing ⚠️
packages/main/src/chat/chat-manager.ts 0.00% 5 Missing ⚠️
...kages/renderer/src/lib/chat/components/chat.svelte 0.00% 5 Missing ⚠️
packages/preload/src/index.ts 33.33% 2 Missing ⚠️
packages/renderer/src/lib/chat/utils/chat.ts 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@benoitf
Copy link
Contributor

benoitf commented Mar 6, 2026

moving to draft as it needs to solve conflicts

@benoitf benoitf marked this pull request as draft March 6, 2026 12:48
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.