Skip to content

Commit acc0f52

Browse files
fix(loop): close events channel when loop finishes
The events channel was never closed after Run() returned, causing the Manager's event forwarding goroutine to block indefinitely. This led to the TUI becoming unresponsive after a ralph loop completed.
1 parent 330b566 commit acc0f52

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/loop/loop.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ func (l *Loop) Run(ctx context.Context) error {
9191
return fmt.Errorf("failed to open log file: %w", err)
9292
}
9393
defer l.logFile.Close()
94+
defer close(l.events)
9495

9596
for {
9697
l.mu.Lock()

0 commit comments

Comments
 (0)