Skip to content

fix(tui): seed context window on startup - #210

Merged
yishuiliunian merged 3 commits into
mainfrom
fix/tui-context-window-startup
Aug 7, 2026
Merged

fix(tui): seed context window on startup#210
yishuiliunian merged 3 commits into
mainfrom
fix/tui-context-window-startup

Conversation

@yishuiliunian

Copy link
Copy Markdown
Contributor

Summary

  • seed token usage with the selected model's context window during cold start
  • show the context limit before the first LLM response instead of an unknown zero limit
  • update lifecycle and event-ordering regression coverage

Test plan

  • bazel test //crates/loopal-runtime:loopal-runtime_test --test_filter='.*context_budget_test.*'
  • bazel test //crates/loopal-tui:loopal-tui_test
  • bazel build //crates/loopal-runtime:loopal-runtime //crates/loopal-tui:loopal-tui --config=rustfmt
  • bazel build //crates/loopal-runtime:loopal-runtime //crates/loopal-tui:loopal-tui --config=clippy

Emit the selected model's context window before the first LLM call so the
status bar does not initialize with an unknown zero-token limit.
Persist the updated memory index timestamp and recall event generated for this
session.
@yishuiliunian
yishuiliunian merged commit 22cfefc into main Aug 7, 2026
5 of 6 checks passed
@yishuiliunian
yishuiliunian deleted the fix/tui-context-window-startup branch August 7, 2026 13:55
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