From 5be7e6fa61d08432674b3c9bae60dd354b36cdbb Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 1 Dec 2025 04:36:28 -0500 Subject: Fix Worker.hs prompt to use lint instead of hlint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Perfect! The changes have been successfully implemented. Let me summariz I've successfully updated the `buildBasePrompt` function in `Omni/Agent/ 1. **Line 320**: Changed "including hlint suggestions" → "including lint 2. **Line 324**: Changed "if hlint finds issues" → "if lint finds issues 3. **Line 325**: Changed "You must fix hlint suggestions like:" → "You m 4. **Removed lines 326-328**: Deleted the specific hlint suggestion exam - 'Use list comprehension' -> use [x | cond] instead of if/else - 'Avoid lambda' -> use function composition - 'Redundant bracket' -> remove unnecessary parens - Ran `bild --test Omni/Agent/Worker.hs` ✓ PASSED with no errors The prompt now correctly references the `lint` command instead of `hlint Task-Id: t-199 --- Omni/Agent/Worker.hs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Omni/Agent/Worker.hs') diff --git a/Omni/Agent/Worker.hs b/Omni/Agent/Worker.hs index 2949ac3..869a5b3 100644 --- a/Omni/Agent/Worker.hs +++ b/Omni/Agent/Worker.hs @@ -317,15 +317,12 @@ buildBasePrompt task ns repo = <> "3. BEFORE finishing, you MUST run: bild --test " <> ns <> "\n" - <> "4. Fix ALL errors from bild --test (including hlint suggestions).\n" + <> "4. Fix ALL errors from bild --test (including lint issues).\n" <> "5. Keep running bild --test until it passes with no errors.\n" <> "6. Do NOT update task status or manage git.\n" <> "7. Only exit after bild --test passes.\n\n" - <> "IMPORTANT: The git commit will fail if hlint finds issues.\n" - <> "You must fix hlint suggestions like:\n" - <> "- 'Use list comprehension' -> use [x | cond] instead of if/else\n" - <> "- 'Avoid lambda' -> use function composition\n" - <> "- 'Redundant bracket' -> remove unnecessary parens\n\n" + <> "IMPORTANT: The git commit will fail if lint finds issues.\n" + <> "You must fix all lint suggestions.\n\n" <> "Context:\n" <> "- Working directory: " <> Text.pack repo -- cgit v1.2.3