diff options
| author | Adam Malczewski <[email protected]> | 2026-06-12 01:01:32 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-12 01:01:32 +0900 |
| commit | 4bc02b0102e45dc8cce97b7fc8499e0ab23d862f (patch) | |
| tree | 8d8c40ca4f2951a68ec812fb3d0f31c044a76599 /src/app/App.svelte | |
| parent | 4866ebe724d247ab9c1a7615104712cf0ff2e508 (diff) | |
| download | dispatch-web-4bc02b0102e45dc8cce97b7fc8499e0ab23d862f.tar.gz dispatch-web-4bc02b0102e45dc8cce97b7fc8499e0ab23d862f.zip | |
feat(metrics): consume contextSize — current context-usage readout
Backend context-size handoff: re-pin [email protected] / [email protected]
(+ re-mirror .dispatch reference snapshots). Thread the optional contextSize
through core/metrics (done fold + durable + selectCurrentContextSize: latest
turn's defined value, undefined=>unknown never 0, durable-wins-over-live).
Chat store exposes currentContextSize; ContextSizeBadge renders
"N tokens in context" / "context size unknown" above the composer.
GLOSSARY: add context size / context window. 533 tests green.
Diffstat (limited to 'src/app/App.svelte')
| -rw-r--r-- | src/app/App.svelte | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/app/App.svelte b/src/app/App.svelte index daab953..32db54f 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -6,7 +6,13 @@ manifest as cacheWarmingManifest, type WarmFeedback, } from "../features/cache-warming"; - import { ChatView, Composer, manifest as chatManifest, ModelSelector } from "../features/chat"; + import { + ChatView, + Composer, + manifest as chatManifest, + ContextSizeBadge, + ModelSelector, + } from "../features/chat"; import { manifest as conversationCacheManifest } from "../features/conversation-cache"; import { manifest as markdownManifest } from "../features/markdown"; import { @@ -211,6 +217,7 @@ <ScrollToBottom show={smartScroll.showButton} onResume={() => smartScroll.resume()} /> </div> + <ContextSizeBadge contextSize={store.activeChat.currentContextSize} /> <Composer onSend={handleSend} /> </div> |
