[Bug] A message sent while /compact is running will be ignored
Author: Code-MonkeyZhangCreated Sep 18, 2026Updated Sep 18, 2026
Labelsbug
Craft Agents Version
0.13.3
Operating System
macOS (Apple Silicon)
OS Version
macOS 15.6
AI Provider
Anthropic API (custom endpoint)
Model
GLM-5.3 (z.ai via Pi provider)
Description
When the user sends a message while compaction is still running, it will show as a queued message. However, when compaction finishes, this message will be ignored; no reply will ever arrive, so the user has to resend it again.
Steps to Reproduce
- Start a session on a Pi provider connection and give it a long history so compaction runs for a while
- Send /compact
- While compaction is still running, send a normal message
- Wait for compaction to finish
Expected Behavior
After the compaction, the upcoming message should be sent and get a reply like always.
Actual Behavior
The bubble shows the Queued chip while compaction runs. When compaction completes, the chip disappears and the session goes quiet.
Screenshots / Screen Recordings
https://github.com/user-attachments/assets/472d8940-8f75-4001-a206-b5519d8dca5d
Debug Logs
21:14:27 [info] [session] mid-stream send {'sessionId': '260908-pearl-stag', 'behavior': 'steer', 'steered': True, 'queueLengthBefore': 0, 'backend': '_PiAgent'}
21:14:27 [info] [session] [pi] [subprocess stderr] [pi-server] Steering with: "你有那个搜索公司的skill吗"
21:16:00 [info] [session] Got event: info
21:16:00 [info] [session] Session 260908-pearl-stag: compaction complete, marked pending plan ready
21:16:00 [info] [session] Got event: complete
21:16:00 [warn] [session] Session 260908-pearl-stag completed without assistant response - possible context overflow or API issue
21:16:00 [info] [session] Processing stopped for session 260908-pearl-stag: completeAdditional Context
No response
Source: craft-ai-agents/craft-agents-oss