mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-09-29 17:23:59 +08:00
Merge remote-tracking branch 'origin/main' into ethie/pm-clean
# Conflicts: # hermes_cli/backup.py # tests/hermes_cli/test_gateway_restart_loop.py # website/docs/developer-guide/web-search-provider-plugin.md # website/docs/getting-started/installation.md # website/docs/getting-started/updating.md # website/docs/index.mdx # website/docs/reference/cli-commands.md # website/docs/user-guide/docker.md # website/docs/user-guide/windows-wsl-quickstart.md # website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/plugins/index.md # website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/developer-guide/web-search-provider-plugin.md # website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/index.mdx # website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/cli-commands.md # website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/reference/environment-variables.md # website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/docker.md # website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/plugins.md # website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/security.md # website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/windows-wsl-quickstart.md
This commit is contained in:
@@ -709,8 +709,14 @@ def execute_code(
|
||||
"(process-identity probe wedged); the code was not run. Retry the call."
|
||||
)
|
||||
if _probe.value:
|
||||
from cron.lifecycle_guard import contains_gateway_lifecycle_command
|
||||
from cron.lifecycle_guard import (
|
||||
HOST_INTERPRETER_KILL_REJECTION,
|
||||
contains_gateway_lifecycle_command,
|
||||
contains_host_interpreter_kill,
|
||||
)
|
||||
if contains_gateway_lifecycle_command(code):
|
||||
if contains_host_interpreter_kill(code):
|
||||
return tool_error(HOST_INTERPRETER_KILL_REJECTION)
|
||||
return tool_error(
|
||||
"Blocked: cannot restart or stop the gateway from inside the "
|
||||
"gateway process. The gateway would kill this script before "
|
||||
|
||||
Reference in New Issue
Block a user