Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/specify_cli/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,10 @@ def _build_opencode_plugin(
# S3: thread the per-handler timeout (seconds) to runEvent so the
# execFileSync cap and dispatcher arg match the configuration
# instead of a fixed 60000ms / 120s.
timeout_sec = int(cfg.get("timeout", 60))
try:
timeout_sec = int(cfg.get("timeout", 60))
except (TypeError, ValueError):
timeout_sec = 60
if native.startswith("tool.execute."):
if matcher and matcher != "*":
tools = [t.strip().strip('"') for t in matcher.split("|")]
Expand Down