Skip to content

feat(android): digest and compaction chips (phase 0 receipts) - #1246

Open
aivsomkar wants to merge 1 commit into
phase-0/2-budget-metrics-replayfrom
phase-0/chips-android
Open

aivsomkar wants to merge 1 commit into
phase-0/2-budget-metrics-replayfrom
phase-0/chips-android

Conversation

@aivsomkar

Copy link
Copy Markdown
Collaborator

Android twin of #1245, stacked on #1243 (phase 0 part 2), which introduces the two message kinds this renders.

What changes

  • Message.Kind gains DIGEST and COMPACTION; Message gains digest: WorkDigest? and compaction: Compaction? with the fields the chip counts from. Unknown keys stay ignored, so a newer digest never fails the decode.
  • Chat: a quiet ReceiptChip under the reply, "4 tool calls · 2 files" or "Context compacted · 12,345 tokens summarised", tap to expand the full text. Copy gives the full text.
  • Hidden together with tool activity (isActivityReceipt), never folded into a run of it. Roster preview and the updates line use the chip text.

Test plan

  • DecodingTest: digest counts, digest without files, compaction record (chip text)
  • ChatPreferencesTest: hidden drops the receipts, reduced keeps a digest as its own row and breaks the run
  • NOT compiled on the authoring Mac (no Java runtime there); this PR's CI runs :core:test and :app:testDebugUnitTest and builds both APKs. Please treat a red CI as mine to fix.
  • not run: on-device look (android/README.md)

Platforms

Platform Applies? Status
macOS n/a phone-only change
Windows n/a phone-only change
iOS yes #1245 (twin)
Android yes in this PR; NOT compiled locally, CI compiles it
Companion n/a no route changed; the phone reads the kinds off the existing messages route

🤖 Generated with Claude Code

@vercel

vercel Bot commented Sep 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openmausbot-docs Ready Ready Preview Sep 15, 2026 3:30pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: a9c2b2d5-68ce-4553-88e7-23bb4f8dd254

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Port of the iOS change: the harness's two new receipts under a reply, the
work digest and the compaction record, become their own message kinds
with the structured half the chip counts from ("4 tool calls · 2 files",
"Context compacted · 12,345 tokens summarised"), the full text on tap.
Hidden with tool activity, never folded into a run of it; copyable for
their full text.

Tests: DecodingTest (digest counts, digest without files, compaction
record), ChatPreferencesTest (hidden drops the receipts, reduced keeps a
digest as its own row). Not compiled on the authoring Mac (no Java
runtime); pull-request CI runs :core:test and :app:testDebugUnitTest.

Co-Authored-By: Claude Fable 5.1 <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