hermes-agent/tests/tools
Teknium 93dc5dee6f
fix: prevent agents from starting gateway outside systemd management (#2617)
An agent session killed the systemd-managed gateway (PID 1605) and restarted
it with '&disown', taking it outside systemd's Restart= management. When the
orphaned process later received SIGTERM, nothing restarted it.

Add dangerous command patterns to detect:
- 'gateway run' with & (background), disown, nohup, or setsid
- These should use 'systemctl --user restart hermes-gateway' instead

Also applied directly to main repo and fixed the systemd service:
- Changed Restart=on-failure to Restart=always (clean SIGTERM = exit 0 = not
  a 'failure', so on-failure never triggered)
- RestartSec=10 for reasonable restart delay
2026-03-23 06:45:17 -07:00
..
__init__.py
…
test_approval.py fix: prevent agents from starting gateway outside systemd management (#2617) 2026-03-23 06:45:17 -07:00
test_browser_cdp_override.py fix: normalize live Chrome CDP endpoints for browser tools 2026-03-19 10:17:03 -07:00
test_browser_cleanup.py
…
test_browser_console.py
…
test_checkpoint_manager.py
…
test_clarify_tool.py
…
test_clipboard.py
…
test_code_execution.py
…
test_command_guards.py
…
test_cron_prompt_injection.py
…
test_cronjob_tools.py
…
test_daytona_environment.py fix(daytona): migrate sandbox lookup from find_one to get/list 2026-03-19 17:54:46 +01:00
test_debug_helpers.py
…
test_delegate.py fix(delegate): move _saved_tool_names assignment to correct scope 2026-03-19 09:26:05 -07:00
test_docker_environment.py
…
test_docker_find.py
…
test_file_operations.py
…
test_file_tools.py
…
test_file_tools_live.py
…
test_file_write_safety.py
…
test_force_dangerous_override.py
…
test_fuzzy_match.py
…
test_hidden_dir_filter.py
…
test_homeassistant_tool.py
…
test_honcho_tools.py
…
test_interrupt.py
…
test_local_env_blocklist.py
…
test_local_persistent.py
…
test_mcp_oauth.py fix(mcp-oauth): port mismatch, path traversal, and shared handler state (salvage #2521) (#2552) 2026-03-22 15:02:26 -07:00
test_mcp_probe.py
…
test_mcp_tool.py fix: normalize MCP object schemas without properties 2026-03-19 16:23:45 -07:00
test_mcp_tool_issue_948.py
…
test_memory_tool.py
…
test_mixture_of_agents_tool.py
…
test_modal_sandbox_fixes.py
…
test_parse_env_var.py
…
test_patch_parser.py
…
test_process_registry.py
…
test_read_loop_detection.py fix: remove post-compression file-read history injection (#2226) 2026-03-20 14:54:25 -07:00
test_registry.py
…
test_rl_training_tool.py
…
test_search_hidden_dirs.py
…
test_send_message_tool.py test: replace real-looking WhatsApp jid in regression test 2026-03-17 15:38:37 +00:00
test_session_search.py fix(session_search): exclude current session lineage 2026-03-20 21:07:48 -07:00
test_singularity_preflight.py
…
test_skill_manager_tool.py
…
test_skill_view_path_check.py
…
test_skill_view_traversal.py
…
test_skills_guard.py fix(skills_guard): agent-created dangerous skills ask instead of block 2026-03-22 03:56:02 -07:00
test_skills_hub.py
…
test_skills_hub_clawhub.py
…
test_skills_sync.py
…
test_skills_tool.py fix: disabled skills respected across banner, system prompt, slash commands, and skill_view (#1897) 2026-03-18 03:17:37 -07:00
test_ssh_environment.py
…
test_symlink_prefix_confusion.py
…
test_terminal_disk_usage.py fix(terminal): log disk warning check failures at debug level (salvage #2372) (#2394) 2026-03-21 17:10:17 -07:00
test_terminal_requirements.py
…
test_terminal_tool_requirements.py
…
test_tirith_security.py
…
test_todo_tool.py
…
test_transcription.py fix(stt): respect explicit provider config instead of env-var fallback (#1775) 2026-03-17 10:30:58 -07:00
test_transcription_tools.py fix(stt): respect explicit provider config instead of env-var fallback (#1775) 2026-03-17 10:30:58 -07:00
test_vision_tools.py fix: expand tilde (~) in vision_analyze local file paths (#2585) 2026-03-22 23:48:32 -07:00
test_voice_cli_integration.py
…
test_voice_mode.py
…
test_web_tools_config.py
…
test_web_tools_tavily.py
…
test_website_policy.py
…
test_windows_compat.py
…
test_write_deny.py
…
test_yolo_mode.py
…