summaryrefslogtreecommitdiff
path: root/Omni/Agent/Worker.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-12-01 20:28:27 -0500
committerBen Sima <ben@bensima.com>2025-12-01 20:28:27 -0500
commit8d8dec801bf959d6e4bf1ba3fbc5af5b242f96d9 (patch)
tree41a41dfbcc83325c3fd5ede4dc67396f525d8592 /Omni/Agent/Worker.hs
parent11ee0b44397ff5f58a11a105883c07a39d49bfa3 (diff)
Fix build errors in Jr modules
- Fix Worker.hs to use EngineError instead of tuple - Fix Types.hs imports for LazyText.encodeUtf8 and dayOfWeek - Remove duplicate SortOrder from Components.hs (import from Types.hs) - Add orphan instance pragmas to Pages.hs and Partials.hs - Clean up unused imports
Diffstat (limited to 'Omni/Agent/Worker.hs')
-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 a8bbfc9..07293c5 100644
--- a/Omni/Agent/Worker.hs
+++ b/Omni/Agent/Worker.hs
@@ -236,7 +236,7 @@ runWithEngine worker repo task = do
-- Read API key from environment
maybeApiKey <- Env.lookupEnv "OPENROUTER_API_KEY"
case maybeApiKey of
- Nothing -> pure (Exit.ExitFailure 1, "OPENROUTER_API_KEY not set", 0)
+ Nothing -> pure (EngineError "OPENROUTER_API_KEY not set" 0)
Just apiKey -> do
-- Check for retry context
maybeRetry <- TaskCore.getRetryContext (TaskCore.taskId task)