You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "faga295 (via GitHub)" <gi...@apache.org> on 2026/09/20 18:08:37 UTC

[I] bug(desktop): context usage remains stale after compaction [maka]

faga295 opened a new issue, #5547:
URL: https://github.com/apache/maka/issues/5547

   ## What happened
   
   After successful context compaction, the Desktop composer's context-usage gauge can continue displaying the token count/percentage from the pre-compaction request. That measurement describes the old prompt, so presenting it as current usage is misleading.
   
   Expected: show an unknown reading (`?`) with an explanation that context was compacted until a subsequent provider request supplies a fresh measurement. A failed-open compaction should retain the valid reading because the raw history was still sent.
   
   ## How to reproduce
   
   1. Run a Desktop conversation until a provider request has reported token usage and the composer displays a percentage.
   2. Run `/compact` successfully.
   3. Before another provider request settles, inspect the context gauge: it can still show the previous percentage.
   4. For mid-turn compaction, the indicator should recover as soon as a post-compaction request settles, without waiting for the entire turn to finish.
   
   ## Environment
   
   - Surface: Desktop (conversation composer and WorkHub composer)
   - Source baseline: `feb9cf22f`
   - Identified from source and regression tests; no specific OS/provider restriction established.
   
   ## Logs, screenshots, or additional context
   
   The transcript selector skips anchorless token-usage rows, but must also recognize a newer `context_compacted` system note as invalidating earlier measurements. Live diagnostics need their request completion timestamp so pre-compaction snapshots cannot override this state.
   
   Prepared by OpenAI Codex on behalf of the contributor.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [I] bug(desktop): context usage remains stale after compaction [maka]

Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han closed issue #5547: bug(desktop): context usage remains stale after compaction
URL: https://github.com/apache/maka/issues/5547


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [I] bug(desktop): context usage remains stale after compaction [maka]

Posted by "faga295 (via GitHub)" <gi...@apache.org>.
faga295 commented on issue #5547:
URL: https://github.com/apache/maka/issues/5547#issuecomment-5751673303

   take


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org