Skip to content

Skip compact on /reset #521

@ekr1

Description

@ekr1

Issue

I would cecli not to do a compaction and especially not to send LLM requests when I execute /reset. This seems to waste tokens as the history is immediately cleared after the reset anyways (at least judging by the output). If there is a good reason to do the compaction that I am not aware of, it would be great if a message about this would be printed; but if the compaction is effectively a no-op in this scenario, it should be skipped.

agent> /reset
Compacting chat history to make room for new messages...
LiteLLM API Error: litellm.BadRequestError: Github_copilotException - prompt token count of 171721 exceeds the limit of 128000
LiteLLM API Error: litellm.BadRequestError: Github_copilotException - prompt token count of 173067 exceeds the limit of 128000
...chat history compacted.
All files dropped and chat history cleared.
✅ Dropped all files and cleared chat history

Version and model info

cecli v0.99.12.dev5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions