Skip to content

fix(chat): update context usage while streaming#542

Open
musnows wants to merge 1 commit into
KunAgent:developfrom
musnows:codex/realtime-context-usage
Open

fix(chat): update context usage while streaming#542
musnows wants to merge 1 commit into
KunAgent:developfrom
musnows:codex/realtime-context-usage

Conversation

@musnows

@musnows musnows commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Update the context usage ring from live conversation blocks while a turn is streaming.
  • Keep provider prompt-token usage as calibration, but let the local live estimate raise stale measured totals during streaming.
  • Add regression coverage for live estimates exceeding an older measured total.

Tests

  • npm run test -- src/renderer/src/lib/context-capacity.test.ts
  • npm run typecheck
  • git diff --check

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