Summary

Qwen Code closed an out-of-memory bug where auto-memory could crash after /quit while building transcripts from full session history. PR #5181 limits transcript construction to the last 100 messages, reducing exit-time memory pressure.

What changed

Qwen Code merged PR #5181 to cap buildTranscriptMessages() to recent messages during auto-memory processing after /quit.

Why it matters

Memory and compaction failures are a recurring weak spot in coding agents. A crash at session exit risks losing user trust because it happens after work is complete and during persistence or memory-building behavior that users expect to be safe.

Evidence excerpt

Agents Radar reports issue #5147 as an OOM after /quit with auto-memory, fixed by PR #5181 limiting transcript messages to the last 100 entries.

Sources