Skip to content

fix: show context occupancy beside Send in conversations - #112

Merged
Leeeon233 merged 2 commits into
mainfrom
feat/composer-context-usage
Nov 19, 2026
Merged

Leeeon233 merged 2 commits into
mainfrom
feat/composer-context-usage

Conversation

@Leeeon233

Copy link
Copy Markdown
Collaborator

The conversation composer usage ring only ever showed subscription quota. The CLI writes contextWindowUsage into session meta (the catalog), which is where web reads it, but the runtime read it from the session document, so context was always null and the ring fell back to the five-hour window.

  • Parse contextWindowUsage on catalog sessions and supply it through sessionQuotaProjection, so catalog updates refresh it like quota.
  • projectSessionUsage now owns only compaction from history.
  • The existing UI already matches web: context % first, panel shows the context meter with used / window tokens above quota windows.

Android re-snapshot: LodyAI/lody-android (same branch).

Not run: builds and tests (requested no testing).

🤖 Generated with Claude Code

Leeeon233 and others added 2 commits November 19, 2026 08:25
Model: claude-opus-5-5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Context window usage is session meta, as on web; the runtime read it from the
session document, where the CLI never writes it, so the ring fell back to quota.

Model: claude-opus-5-5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Leeeon233
Leeeon233 marked this pull request as ready for review November 19, 2026 11:16
@Leeeon233
Leeeon233 merged commit 57cffa7 into main Nov 19, 2026
2 of 5 checks passed
Leeeon233 added a commit to LodyAI/Lody that referenced this pull request Nov 19, 2026
Bumps lody-ios (LodyAI/lody-ios#112) and lody-android (LodyAI/lody-android#9).

Model: claude-opus-5-5

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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