summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-11-28 02:35:13 -0500
committerBen Sima <ben@bensima.com>2025-11-28 02:35:13 -0500
commitc0675cca7ef24f9405f5c019f54021e062a1b054 (patch)
tree5296d4369b1ba86254d7b2bb6dabe4bf91935740
parenta4754527ea4244e7933be86471324d9ae65a87e2 (diff)
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
-rw-r--r--Omni/Agent/Worker.hs2
1 files changed, 1 insertions, 1 deletions
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