Skip to content

Surface prompt cache-write usage in TUI summaries - #516

Merged
GraciousGazelles merged 1 commit into
mainfrom
fix/w10571-prompt-cache-write-summary
Jul 22, 2026
Merged

GraciousGazelles merged 1 commit into
mainfrom
fix/w10571-prompt-cache-write-summary

Conversation

@GraciousGazelles

@GraciousGazelles GraciousGazelles commented Jul 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Preserve provider-reported cache_write_input_tokens from app-server notifications in the TUI usage model.
  • Include non-zero cache-write usage in terminal session summaries and shared final output summaries.
  • Keep legacy persisted TUI usage data compatible by defaulting a missing field to zero.

Root cause

The durable provider parser and SQLite ledger migration already captured prompt cache-write tokens. The TUI's app-server conversion omitted the field, so terminal summaries could not display it.

Validation

  • cargo fmt --all
  • git diff --check
  • Full hosted Rust checkpoint: passed run #29897516128 for c77ea2a405c24d719edbdca7aad68ac90885c68e
  • w8046 review ladder: three independent Luna coverage reviews, Terra synthesis, and Sol evidence challenge; all clean on the exact candidate.

@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@GraciousGazelles
GraciousGazelles force-pushed the fix/w10571-prompt-cache-write-summary branch from 36d86fb to c77ea2a Compare July 22, 2026 06:39
@GraciousGazelles
GraciousGazelles marked this pull request as ready for review July 22, 2026 08:15
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@GraciousGazelles
GraciousGazelles merged commit 35bb8fc into main Jul 22, 2026
107 checks passed
@GraciousGazelles
GraciousGazelles deleted the fix/w10571-prompt-cache-write-summary branch July 22, 2026 10:13
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