summaryrefslogtreecommitdiff
path: root/Omni/Jr.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-11-26 09:38:21 -0500
committerBen Sima <ben@bensima.com>2025-11-26 09:38:21 -0500
commitb13c42cc5566aa7365118fddc7f327b4c774a910 (patch)
treedad4b116944b42e94342a5487c518c9b59604226 /Omni/Jr.hs
parente709ef77c4158a66ba3e572e52ad866d4855fc21 (diff)
Improve worker prompt and fix output interleaving
- More explicit prompt: MUST run bild --test, fix hlint issues - Add workerQuiet flag to disable ANSI status bar in loop mode - Loop mode uses simple putText, manual jr work keeps status bar
Diffstat (limited to 'Omni/Jr.hs')
-rw-r--r--Omni/Jr.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Omni/Jr.hs b/Omni/Jr.hs
index f6f8d27..8636e54 100644
--- a/Omni/Jr.hs
+++ b/Omni/Jr.hs
@@ -92,7 +92,8 @@ move args
{ AgentCore.workerName = name,
AgentCore.workerPid = Nothing,
AgentCore.workerStatus = AgentCore.Idle,
- AgentCore.workerPath = path
+ AgentCore.workerPath = path,
+ AgentCore.workerQuiet = False -- Show ANSI status bar for manual work
}
let taskId = fmap Text.pack (Cli.getArg args (Cli.argument "task-id"))
@@ -148,7 +149,8 @@ runLoop delaySec = do
{ AgentCore.workerName = name,
AgentCore.workerPid = Nothing,
AgentCore.workerStatus = AgentCore.Idle,
- AgentCore.workerPath = "."
+ AgentCore.workerPath = ".",
+ AgentCore.workerQuiet = True -- No ANSI status bar in loop mode
}
putText "[loop] Starting worker..."
AgentWorker.start worker (Just (TaskCore.taskId task))