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/features/chat/index.ts | |
| 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/features/chat/index.ts')
| -rw-r--r-- | src/features/chat/index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/features/chat/index.ts b/src/features/chat/index.ts index 18ed693..adfb670 100644 --- a/src/features/chat/index.ts +++ b/src/features/chat/index.ts @@ -6,6 +6,7 @@ export type { ChatStore, ChatStoreDependencies } from "./store.svelte"; export { createChatStore } from "./store.svelte"; export { default as ChatView } from "./ui/ChatView.svelte"; export { default as Composer } from "./ui/Composer.svelte"; +export { default as ContextSizeBadge } from "./ui/ContextSizeBadge.svelte"; export { default as ModelSelector } from "./ui/ModelSelector.svelte"; /** Public module manifest — aggregated by the shell's "Loaded Modules" view. */ |
