open-code-review/internal/agent
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
..
agent.go fix(agent): recover from panics in per-file review and comment-pool goroutines (#171) (#182) 2026-07-01 23:23:12 +08:00
agent_test.go test: expand unit test coverage for agent, llm, llmloop, and tool packages 2026-06-26 23:09:11 +08:00
coverage_test.go test: add coverage tests for agent, llm, llmloop, and scan packages 2026-06-27 00:15:28 +08:00
init_test.go fix(session): isolate test sessions to test-sessions subdirectory 2026-06-30 13:23:21 +08:00
preview.go feat: add ocr scan for full-file code review (#93) 2026-06-24 22:07:25 +08:00
preview_test.go fix(agent): user includes should have higher priority than system supported extensions (#51) 2026-06-12 14:29:47 +08:00
util.go refactor(agent): split agent.go into util.go and compression.go, fix compression bugs 2026-06-21 21:20:40 +08:00
util_test.go refactor(agent): split agent.go into util.go and compression.go, fix compression bugs 2026-06-21 21:20:40 +08:00