open-code-review/internal/llmloop
Eldar Shlomi fef4314d46
Some checks are pending
CI / test (push) Waiting to run
fix(agent): recover from panics in per-file review and comment-pool goroutines (#171) (#182)
A panic in a single file's review goroutine (dispatchSubtasks) or in a CommentWorkerPool task previously crashed the whole ocr process. Recover in both: the per-file panic is isolated like an error return (counted in subtaskFailed + recorded as a subtask_error warning with stack trace + telemetry, using the parent ctx since fileCtx is already cancelled on unwind), and a panicking comment-pool task is contained so healthy tasks still complete.

Rebased onto current main: the pool moved to internal/llmloop, so the pool-side recover + the panic-isolation test now live in internal/llmloop/pool.go and pool_test.go; the per-file recover stays in internal/agent/agent.go. Also documents CommentWorkerPool.Await's concurrency contract (Submit must not race Await).
2026-07-01 23:23:12 +08:00
..
compression.go feat: add ocr scan for full-file code review (#93) 2026-06-24 22:07:25 +08:00
compression_test.go test: add unit tests for pure logic functions across 6 packages 2026-06-26 22:41:35 +08:00
init_test.go fix(session): isolate test sessions to test-sessions subdirectory 2026-06-30 13:23:21 +08:00
loop.go feat: add standard MCP tool support (#212) 2026-07-01 19:10:16 +08:00
loop_test.go test: expand unit test coverage for agent, llm, llmloop, and tool packages 2026-06-26 23:09:11 +08:00
pool.go fix(agent): recover from panics in per-file review and comment-pool goroutines (#171) (#182) 2026-07-01 23:23:12 +08:00
pool_test.go fix(agent): recover from panics in per-file review and comment-pool goroutines (#171) (#182) 2026-07-01 23:23:12 +08:00
runner_test.go test: add coverage tests for agent, llm, llmloop, and scan packages 2026-06-27 00:15:28 +08:00