diff --git a/packages/adapters/hermes/README.md b/packages/adapters/hermes/README.md index 1ee190c753c..1d519a02326 100644 --- a/packages/adapters/hermes/README.md +++ b/packages/adapters/hermes/README.md @@ -97,7 +97,7 @@ In the Paperclip UI or via API, create an agent with adapter type `hermes_local` "adapterConfig": { "model": "anthropic/claude-sonnet-4", "maxIterations": 50, - "timeoutSec": 300, + "timeoutSec": 1800, "persistSession": true, "enabledToolsets": ["terminal", "file", "web"] } @@ -222,7 +222,7 @@ Create issues in Paperclip and assign them to your Hermes agent. On each heartbe |-------|------|---------|-------------| | `model` | string | `anthropic/claude-sonnet-4` | Model in `provider/model` format | | `provider` | string | *(auto-detected)* | API provider: `auto`, `openrouter`, `nous`, `openai-codex`, `zai`, `kimi-coding`, `minimax`, `minimax-cn` | -| `timeoutSec` | number | `300` | Execution timeout in seconds | +| `timeoutSec` | number | `1800` | Execution timeout in seconds | | `graceSec` | number | `10` | Grace period before SIGKILL | ### Tools diff --git a/packages/adapters/hermes/src/index.test.ts b/packages/adapters/hermes/src/index.test.ts index fec9fdf724d..6c070682c1d 100644 --- a/packages/adapters/hermes/src/index.test.ts +++ b/packages/adapters/hermes/src/index.test.ts @@ -10,6 +10,18 @@ import { hermesGatewayType, } from "./index.js"; import { createServerAdapter as createGatewayServerAdapterFromSubpath } from "./gateway/index.js"; +import { agentConfigurationDoc } from "./index.js"; +import { DEFAULT_TIMEOUT_SEC } from "./shared/constants.js"; + +test("agent configuration doc states the enforced timeoutSec default", () => { + // The doc table once stated 300 while the code enforced an 1800 floor, and + // runs configured from the doc died at the wall. Keep them in lockstep. + const row = agentConfigurationDoc + .split("\n") + .find((line) => line.includes("timeoutSec") && line.includes("Execution timeout")); + expect(row).toBeDefined(); + expect(row).toContain(`| ${DEFAULT_TIMEOUT_SEC} |`); +}); test("root package export exposes Paperclip external adapter entrypoint", () => { const adapter = createServerAdapter(); diff --git a/packages/adapters/hermes/src/index.ts b/packages/adapters/hermes/src/index.ts index 4ff7488b997..b7d1208f2cf 100644 --- a/packages/adapters/hermes/src/index.ts +++ b/packages/adapters/hermes/src/index.ts @@ -86,7 +86,7 @@ tools, persistent memory, session persistence, skills, and MCP support. |-------|------|---------|-------------| | model | string | (Hermes configured default) | Optional explicit model in provider/model format. Leave blank to use Hermes's configured default model. | | provider | string | (auto) | API provider: auto, openrouter, nous, openai-codex, zai, kimi-coding, minimax, minimax-cn. Usually not needed — Hermes auto-detects from model name. | -| timeoutSec | number | 300 | Execution timeout in seconds | +| timeoutSec | number | 1800 | Execution timeout in seconds | | graceSec | number | 10 | Grace period after SIGTERM before SIGKILL | ## Tool Configuration