Repository navigation
Replies: 1 comment
|
Mobile has this now. Four PRs on
A chip in the composer row shows the token count. Tap it to switch between compacting first and keeping the full history. The chip is highlighted when the next send compacts first and muted when the next send keeps the full history. With compaction on, the app runs I read the PRs and code on |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
When resuming a long Claude thread from my phone after its prompt cache has expired, native mobile does not offer the compact-before-send choice available on desktop/web. Switching clients changes how I can manage context before sending the next message.
The original desktop/web implementation, #16631, explicitly notes that native mobile has no compact offer. This is a request for feature parity, not a claim that an existing mobile feature regressed.
Proposed behavior
For a Claude thread that meets the same eligibility rules as desktop/web:
/compactfirst and queue the drafted message behind it.Relationship to idle compaction
The server-side Compact idle Claude threads (beta) feature in #21682 proactively compacts eligible threads before cache expiry. It is opt-in and does not cover every case where someone returns to an already-stale thread without prior compaction.
This request concerns the choice presented when sending a message after expiry. It does not assume that compacting after expiry avoids the uncached cost of processing the existing history.
Related mobile context visibility proposal
#6954 proposes a mobile context-window indicator, with an Android prototype and optional manual compaction discussed in the comments. I support that proposal independently. Context visibility should not have to wait for this send-time behavior, so I am tracking this request separately and linking the two.
Verification
Based on observed mobile behavior and source inspection, including the explicit mobile exclusion in #16631. A controlled reproduction across native devices has not been performed.
Would maintainers support bringing this desktop/web choice to native mobile as a follow-up to context visibility?
All reactions