Skip to content

[bug] (Magic Context Dashboard): Cache Hit Timeline chart bars influenced by context window size #173

@Zireael

Description

@Zireael

Short description

[bug] (Magic Context Dashboard): Cache Hit Timeline chart bars influenced by context window size

What happened?

I see implementation of #130 started, so this visual bug will be probably sorted out eventually.
Currently in dashboard-v0.7.0 the height of chart bars does not match cache hit %, but rather seems to be taken from context window fill %.
In screenshots below I have a session that started with model 1M context window, then I messed up config a bit and opencode 12k default config window was applied (and lits of Historian panicking and trying to compact it), and finally I switches to 256k context window.
Most of the bars are 99% cache hit rate so most of them should be the same height. Some of the bars even went over 100% 😆

Image Image Image

Diagnostics

N/A

Plugin version

0.26.0

OpenCode version

1.17.8

Platform

windows x64

Client

OpenCode TUI (CLI)

Log output (optional)

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions