Skip to content

Ctx is not being updated after /compact #92

Closed

Description

@timurkhakhalev

Hi! I ran /compact command and it compacted the convo, then I tried to send some message to ensure ccstatusline is updated it's ctx, but it's not. Then I ran /context to see actual ctx size and see that ccstatusline is not updated ctx after the compact.

Image

Activity

  1. sirmalloc commented on Sep 25, 2025

    @sirmalloc
    Owner

    @timur-khakhalev That's expected, the context in the statusline won't update until you send another message and get a response. Doing /compact or /context doesn't send anything back that gets logged to the jsonl that I can parse the context usage off of. So unfortunately there's no way around this limitation at the moment.

  2. timurkhakhalev commented on Sep 25, 2025

    @timurkhakhalev
    Author

    @sirmalloc I understand that, but I continued the convo and it ctx didn't updated still.

  3. sirmalloc commented on Sep 25, 2025

    @sirmalloc
    Owner

    @timur-khakhalev I see you have ccusage in the line as a custom command. I know that often takes a while to run, are you sure you waited long enough after getting a response for the status line to update? Did any other field update while the context remained the same?

  4. timurkhakhalev commented on Sep 25, 2025

    @timurkhakhalev
    Author

    Yes, I worked in that convo for another 20 min at least. Didn't notice about update other fields

  5. sirmalloc commented on Sep 25, 2025

    @sirmalloc
    Owner

    @timur-khakhalev Does this happen as well on any new conversations or just that one?

  6. timurkhakhalev commented on Sep 25, 2025

    @timurkhakhalev
    Author

    @timur-khakhalev Does this happen as well on any new conversations or just that one?

    I didn't tried new convo but I think only on this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions