qwen-code/docs
Zqc abfdcc112b
fix(core): prevent OOM in auto-memory extraction during /quit (#5147) (#5181)
The auto-memory extraction background task caused FATAL ERROR: Reached
heap limit after /quit because buildTranscriptMessages() ran
.replace() over every history message synchronously, but the resulting
text was never consumed downstream.

Changes:
- extract.ts: delete buildTranscriptMessages/loadUnprocessedTranscriptSlice.
  Replace with a zero-stringify cursor scan on the unprocessed slice only.
- manager.ts: add isUnderMemoryPressure() using existing MemoryPressureMonitor.
  Gates in runExtract(), scheduleDream(), and scheduleSkillReview().
- client.ts: add shutdownRequested flag + requestShutdown().
- AppContainer.tsx: call requestShutdown() in /quit callback.
- Tests: 46 passed (11 extract + 34 manager + 2 client).
- Docs: update memory-system.md flowchart to cursor-first flow.

Co-authored-by: 俊良 <zzj542558@alibaba-inc.com>
2026-06-19 08:17:45 +08:00
..
design fix(core): prevent OOM in auto-memory extraction during /quit (#5147) (#5181) 2026-06-19 08:17:45 +08:00
developers feat(serve): add daemon idle detection to GET /health?deep=true (#4934) 2026-06-18 06:55:03 +00:00
e2e-tests feat(worktree): Phase D — startup --worktree flag + symlinkDirectories + PR refs (#4381) 2026-05-27 17:04:51 +08:00
plans feat(core)!: redesign auto-compaction thresholds with three-tier ladder (#4345) 2026-05-25 21:11:08 +08:00
superpowers feat(serve): add daemon idle detection to GET /health?deep=true (#4934) 2026-06-18 06:55:03 +00:00
users feat(channel): add QQ Bot (QQ机器人) channel adapter (#5202) 2026-06-19 06:32:52 +08:00
verification/abort-controller-refactor fix(core): stop AbortSignal listener leak in long sessions (MaxListenersExceededWarning) (#4366) 2026-05-26 14:21:49 +08:00
_meta.ts feat: refactor docs 2025-12-05 10:51:57 +08:00
declarative-agents-port.md feat(core): port declarative-agent mcpServers + hooks (CC 2.1.168 parity follow-up) (#4996) 2026-06-12 14:15:51 +08:00
index.md fix: lint issues 2025-12-19 15:52:11 +08:00
yaml-parser-replacement.md feat(core): port declarative-agent mcpServers + hooks (CC 2.1.168 parity follow-up) (#4996) 2026-06-12 14:15:51 +08:00