MoonshotAI / MoonshotAI/kimi-cli
[Bug] compaction.unable error when reviewing project with local Ollama model
Open
Nobody has claimed this yet.
bug
- Dominant language
- Python
- Stars
- 11.4k
- Forks
- 1.3k
- Avg merge
- 9h 47m
- Merged PRs (30d)
- 2
Description
What version of Kimi Code CLI is running?
0.11.0
Which open platform/subscription were you using?
Kimi Code
Which model were you using?
Local Ollama
What platform is your computer?
Linux 6.8.0-117-generic x86_64 x86_64
What issue are you seeing?
Asked the Kimi Code CLI to review project status and after reading 5 files it give the following message:
Error: [compaction.unable] No prefix that can be compacted in current history.
If this persists, run `/export-debug-zip` and share the file with us for diagnosis.
What steps can reproduce the bug?
$ kimi
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ ▐█▛█▛█▌ Welcome to Kimi Code! │
│ ▐█████▌ Send /help for help information. │
│ │
│ Directory: /mnt/disk1/prj/confback-project │
│ Session: session_a2b30b48-f5e8-4b1c-b39b-1a56faa7e77f │
│ Model: qwen3.6-27b-agentic │
│ Version: 0.11.0 │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✨ Please make a review of a project status
● The user wants me to review the project status. Let me start by reading the AGENTS.md file and the project rules to understand the
project, then explore the codebase to assess its current state.
● Read 5 files · 630 lines
├─ AGENTS.md · 7 lines
├─ README.md · 269 lines
├─ .rules/00-project-overview.md · 73 lines
├─ .rules/20-workflow.md · 147 lines
└─ docs/BACKLOG.md · 134 lines
Error: [compaction.unable] No prefix that can be compacted in current history.
If this persists, run `/export-debug-zip` and share the file with us for diagnosis. Please don't share it publicly.
What is the expected behavior?
No response
Additional information
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with Kimi Code CLI 0.11.0, a local Ollama model, and the project-status review prompt. Inspect the attached session debug zip and follow the compaction.unable path after the five listed files are read. Done means the review proceeds without this error and the behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ollama, python
- Domain
- ai, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100