-
Notifications
You must be signed in to change notification settings - Fork 3.4k
v0.9.0 Performance: TUI lag and memory pressure from high agent fan-out sessions #4014
Copy link
Copy link
Closed
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestlane-perfperformanceRuntime/render performanceRuntime/render performancesubagentsSub-agent orchestration, lifecycle, and completion handlingSub-agent orchestration, lifecycle, and completion handlingtuiTerminal UI behavior, rendering, or interactionTerminal UI behavior, rendering, or interactionv0.9.0Targeting v0.9.0Targeting v0.9.0whaleflowWhaleFlow branch/leaf workflow runtime and workflow modeWhaleFlow branch/leaf workflow runtime and workflow mode
Milestone
Description
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestlane-perfperformanceRuntime/render performanceRuntime/render performancesubagentsSub-agent orchestration, lifecycle, and completion handlingSub-agent orchestration, lifecycle, and completion handlingtuiTerminal UI behavior, rendering, or interactionTerminal UI behavior, rendering, or interactionv0.9.0Targeting v0.9.0Targeting v0.9.0whaleflowWhaleFlow branch/leaf workflow runtime and workflow modeWhaleFlow branch/leaf workflow runtime and workflow mode
Projects
StatusShow more project fields
Done
Problem
When 30+ sub-agents are running in parallel (as in the v0.8.68 development session on 2026-07-03), the terminal UI becomes increasingly laggy. Observed symptoms:
This makes high-fan-out orchestration unusable for real work — the tool becomes the bottleneck at exactly the scale where it should shine.
Likely causes
<codewhale:runtime_event>with a full summary into the parent transcript. 30+ completions = massive transcript growthScope
This issue covers the performance/degradation path:
Non-goals
Acceptance
Evidence
Observed live on 2026-07-03 running CodeWhale 0.8.67 with 41 sub-agents. Terminal became laggy, memory pressure was high, several agents cancelled themselves due to resource contention.