From c0675cca7ef24f9405f5c019f54021e062a1b054 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 28 Nov 2025 02:35:13 -0500 Subject: Truncate task title to 52 characters in commit message subject line The build and tests pass. The change is complete - the task title in com Task-Id: t-159 --- Omni/Agent/Worker.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Omni/Agent/Worker.hs b/Omni/Agent/Worker.hs index 3edfbca..dabf45c 100644 --- a/Omni/Agent/Worker.hs +++ b/Omni/Agent/Worker.hs @@ -330,7 +330,7 @@ formatCommitMessage task ampOutput = where cleanSubject s = let stripped = Text.dropWhileEnd (`elem` ['.', ':', '!', '?', ' ']) s - truncated = if Text.length stripped > 72 then Text.take 69 stripped <> "..." else stripped + truncated = if Text.length stripped > 52 then Text.take 49 stripped <> "..." else stripped capitalized = case Text.uncons truncated of Just (c, rest) -> Text.cons (toUpper c) rest Nothing -> truncated -- cgit v1.2.3