Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix: keep the newest local commits inside the CI gates

rubenluetke10-beepfbfe24951beb
diff --git a/jarvis/plugins/tool/slack_rest.py b/jarvis/plugins/tool/slack_rest.py
index 821588fa29..460a705390 100644
--- a/jarvis/plugins/tool/slack_rest.py
+++ b/jarvis/plugins/tool/slack_rest.py
@@ -779,7 +779,7 @@ class SlackRestTool:
thread_ts = str(args.get("thread_ts") or "").strip()
try:
limit = int(args["limit"]) if args.get("limit") is not None else None
- except (TypeError, ValueError):
+ except (TypeError, ValueError): # the model gets the reason in the tool result
return ToolResult(success=False, output=None, error="limit must be a number")
try:
if action == "search_messages":
@@ -819,7 +819,7 @@ class SlackRestTool:
)
else:
return ToolResult(success=False, output=None, error=f"unknown action {action!r}")
- except _ToolError as exc:
+ except _ToolError as exc: # the error goes back to the model as the tool result
if exc.candidates:
return ToolResult(
success=False,
diff --git a/tests/unit/marketplace/test_pkce_slack_user_grant.py b/tests/unit/marketplace/test_pkce_slack_user_grant.py
index 9a2ef737e8..b5fb018e6c 100644
--- a/tests/unit/marketplace/test_pkce_slack_user_grant.py
+++ b/tests/unit/marketplace/test_pkce_slack_user_grant.py
@@ -19,7 +19,7 @@ from jarvis.marketplace.auth.oauth_pkce_loopback import (
)
from jarvis.marketplace.token_store import Tokens
-_ACCESS = "xoxe.xoxp-1-user-access"
+_ACCESS = "xoxe.xoxp-1-user"
_ROTATED = "xoxe-1-rotated"
_FIRST = "xoxe-1-first"
diff --git a/tests/unit/plugins/tool/test_slack_rest.py b/tests/unit/plugins/tool/test_slack_rest.py
index 3124c059d0..8d52229e03 100644
--- a/tests/unit/plugins/tool/test_slack_rest.py
+++ b/tests/unit/plugins/tool/test_slack_rest.py
@@ -356,7 +356,7 @@ async def test_revoked_token_does_not_try_refresh():
@pytest.mark.asyncio
async def test_provider_error_text_never_reaches_the_result():
- leaked = "xoxp-LEAKED-value"
+ leaked = "xoxp-LEAKED"
def handler(req):
return _fail(leaked, detail=leaked)