Skip to content

Memory leak: processbar processes map grows indefinitely #971

@coderabbitai

Description

@coderabbitai

Description

The processbar Model's processes map grows indefinitely without cleanup mechanism, causing memory leaks in long-running applications.

Location

  • File: src/internal/ui/processbar/model.go
  • Lines: 20-22

Context

As noted in the TODO comment: "Fix this. No mechanism to remove completed processes from memory. processes map grows indefinitely. Maybe, TTL or cleanup mechanism for successful/failed processes"

Potential Solutions

  • TTL-based cleanup mechanism for completed processes
  • Maximum capacity with LRU eviction
  • Explicit cleanup method for successful/failed processes

References

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions