fix(coding-agent): corrected gutter marker alignment in diff rendering

- Added `CodeFrameMarker` and `formatCodeFrameLine()` to centralize code-frame gutter formatting.
- Extended diff rendering to preserve `|` and `│` separators, aligning gutter markers and line numbers.
- Reworked AST, grep, hashline, Vim, and diff renderers to use shared line formatting with computed `lineNumberWidth`.
- Updated atom editing flow and tests, including `resolveAtomEntryPaths` migration and new loc-based/edge-case coverage.
- Adjusted benchmark runner early-stop configuration by passing `buildEarlyStop` through prompt collection.
This commit is contained in:
can1357
2026-04-26 02:57:43 +02:00
parent d0dd8430f7
commit 4f85ebe472
23 changed files with 266 additions and 149 deletions
@@ -1024,17 +1024,23 @@ async function runSingleTask(
const statsBefore = await client.getSessionStats();
let events: Array<{ type: string; [key: string]: unknown }>;
try {
events = await collectPromptEvents(client, delivery, config, logEvent, buildEarlyStop({
events = await collectPromptEvents(
client,
delivery,
config,
cwd,
expectedDir,
files: task.files,
logEvent,
attempt: attempt + 1,
onMatched: () => {
earlyStoppedByMatch = true;
},
}));
buildEarlyStop({
config,
cwd,
expectedDir,
files: task.files,
logEvent,
attempt: attempt + 1,
onMatched: () => {
earlyStoppedByMatch = true;
},
}),
);
} catch (err) {
if (err instanceof PromptTurnLimitError) {
error = err.message;