← Back to task

Commit ab9c64d0

commit ab9c64d01d0b66ad84eaed2eb27c21095263a90c
Author: Coder Agent <coder@agents.omni>
Date:   Mon Apr 20 22:04:11 2026

    fix(agent): surface saved-output path at top of truncated bash output
    
    Place truncation metadata and saved-file path before preview chunks so
    
    even short event snippets retain the actionable file location.
    
    Task-Id: t-823

diff --git a/Omni/Agent/Tools.hs b/Omni/Agent/Tools.hs
index 5f09ed75..1169f362 100644
--- a/Omni/Agent/Tools.hs
+++ b/Omni/Agent/Tools.hs
@@ -449,12 +449,13 @@ renderRunBashOutput output
       pure
         <| Text.intercalate
           "\n"
-          [ headChunk,
-            "",
-            "[OUTPUT TRUNCATED - " <> tshow omittedChars <> " chars omitted]",
+          [ "[OUTPUT TRUNCATED - " <> tshow omittedChars <> " chars omitted]",
             pathLine,
             inspectLine,
             "",
+            "[... head ...]",
+            headChunk,
+            "",
             "[... tail ...]",
             tailChunk
           ]