[Bug] Background process reminders not cleared after completion, causing context bloat

Resolved 💬 6 comments Opened Nov 12, 2025 by lemachi Closed Jan 17, 2026

Bug Description
Actually, this is revealing a bug. When I checked process 182170, it shows:

  • Status: completed
  • Exit code: 0

So the process IS actually terminated, but the system reminders are stuck showing it as "status: running".

All those background processes have already completed, failed, or been killed, but the system is still generating reminders for them. This is why we ran out of context - every message was
adding 25+ system reminders with their full bash command text (hundreds of lines), even though the processes weren't actually running.

The root issue is:

  1. I created too many long-running background monitors in previous sessions
  2. They've all completed/failed
  3. But the system reminder mechanism is stuck and keeps showing them as available

This appears to be a system bug where the reminder mechanism isn't properly cleaning up after completed background processes. The good news is the actual processes are dead - we're just
dealing with "ghost" reminders that will hopefully clear eventually.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.0.36
  • Feedback ID:

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at oJ (/$bunfs/root/claude:1003:4395)\n    at <anonymous> (/$bunfs/root/claude:1003:4117)\n    at map (native:1:11)\n    at CI (/$bunfs/root/claude:1003:4109)\n    at fQB (/$bunfs/root/claude:1687:6605)\n    at B7 (/$bunfs/root/claude:101:19663)\n    at T2 (/$bunfs/root/claude:103:42806)\n    at rF (/$bunfs/root/claude:103:38344)\n    at c1 (/$bunfs/root/claude:103:38272)\n    at ZJ (/$bunfs/root/claude:103:38126)","timestamp":"2025-11-10T09:27:04.721Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at oJ (/$bunfs/root/claude:1003:4395)\n    at <anonymous> (/$bunfs/root/claude:1003:4117)\n    at map (native:1:11)\n    at CI (/$bunfs/root/claude:1003:4109)\n    at fQB (/$bunfs/root/claude:1687:6605)\n    at B7 (/$bunfs/root/claude:101:19663)\n    at T2 (/$bunfs/root/claude:103:42806)\n    at rF (/$bunfs/root/claude:103:38344)\n    at c1 (/$bunfs/root/claude:103:38272)\n    at ZJ (/$bunfs/root/claude:103:38126)","timestamp":"2025-11-10T09:49:33.747Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at <anonymous> (/$bunfs/root/claude:1806:194)\n    at useMemo (/$bunfs/root/claude:101:26175)\n    at <anonymous> (/$bunfs/root/claude:41:12750)\n    at d5 (/$bunfs/root/claude:1806:88)\n    at B7 (/$bunfs/root/claude:101:19663)\n    at T2 (/$bunfs/root/claude:103:42806)\n    at rF (/$bunfs/root/claude:103:38344)\n    at c1 (/$bunfs/root/claude:103:38272)\n    at ZJ (/$bunfs/root/claude:103:38126)\n    at nF (/$bunfs/root/claude:103:35203)","timestamp":"2025-11-10T10:03:23.452Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at <anonymous> (/$bunfs/root/claude:1806:194)\n    at useMemo (/$bunfs/root/claude:101:26175)\n    at <anonymous> (/$bunfs/root/claude:41:12750)\n    at d5 (/$bunfs/root/claude:1806:88)\n    at B7 (/$bunfs/root/claude:101:19663)\n    at T2 (/$bunfs/root/claude:103:42806)\n    at rF (/$bunfs/root/claude:103:38344)\n    at c1 (/$bunfs/root/claude:103:38272)\n    at ZJ (/$bunfs/root/claude:103:38126)\n    at nF (/$bunfs/root/claude:103:35203)","timestamp":"2025-11-10T10:03:23.534Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at oJ (/$bunfs/root/claude:1003:4395)\n    at <anonymous> (/$bunfs/root/claude:1003:4117)\n    at map (native:1:11)\n    at CI (/$bunfs/root/claude:1003:4109)\n    at fQB (/$bunfs/root/claude:1687:6605)\n    at B7 (/$bunfs/root/claude:101:19663)\n    at T2 (/$bunfs/root/claude:103:42806)\n    at rF (/$bunfs/root/claude:103:38344)\n    at c1 (/$bunfs/root/claude:103:38272)\n    at ZJ (/$bunfs/root/claude:103:38126)","timestamp":"2025-11-10T10:03:39.995Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at <anonymous> (/$bunfs/root/claude:1806:194)\n    at useMemo (/$bunfs/root/claude:101:26175)\n    at <anonymous> (/$bunfs/root/claude:41:12750)\n    at d5 (/$bunfs/root/claude:1806:88)\n    at B7 (/$bunfs/root/claude:101:19663)\n    at T2 (/$bunfs/root/claude:103:42806)\n    at rF (/$bunfs/root/claude:103:38344)\n    at c1 (/$bunfs/root/claude:103:38272)\n    at ZJ (/$bunfs/root/claude:103:38126)\n    at nF (/$bunfs/root/claude:103:35203)","timestamp":"2025-11-10T10:19:50.4

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗