From 6785ec565679e3d58af35dd2286c20c8aa7c8f2c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 15:04:35 +0000 Subject: [PATCH 1/2] Initial plan From d29bcec821cb5a65c89650a5613bea033c1ec322 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 15:05:27 +0000 Subject: [PATCH 2/2] fix: Correct countLines() to avoid off-by-one error in ExecPlan Co-authored-by: yama <73999+yama@users.noreply.github.com> --- .agent/plans/2026-02-07-logging-system-refactor.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.agent/plans/2026-02-07-logging-system-refactor.md b/.agent/plans/2026-02-07-logging-system-refactor.md index a61b5a09e..b0a00e692 100644 --- a/.agent/plans/2026-02-07-logging-system-refactor.md +++ b/.agent/plans/2026-02-07-logging-system-refactor.md @@ -466,8 +466,7 @@ class Logger $count = 0; $handle = fopen($file, 'r'); if ($handle) { - while (!feof($handle)) { - fgets($handle); + while (($line = fgets($handle)) !== false) { $count++; } fclose($handle);