host-network
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHost Network
宿主机网络
When a network command fails inside the sandbox, check whether DNS, connection, or permission errors explain the failure. Treat CLI reports of missing or invalid authentication as provisional when network access is restricted.
Use the execution tool's approved host-access mechanism. With , request with the specific command and a justification explaining the sandbox restriction and required destination. Execute after approval; if escalation is unavailable or denied, report the blocker and continue independent work.
exec_commandsandbox_permissions: "require_escalated"For suspected authentication failures, first run a minimal read-only request on the host using existing credentials, such as . A successful response confirms authentication; resume the authorized operation through approved host execution. Diagnose persistent host failures from their actual errors before requesting login or credential changes.
gh api user --jq .loginHost access preserves the original task scope and action permissions. Before retrying a write whose outcome is uncertain, reconcile remote state. Keep credentials out of output and chat.
当网络命令在沙箱内失败时,检查 DNS、连接或权限错误是否能够解释该失败。在网络访问受限的情况下,CLI 报告的身份验证凭据缺失或无效只能视为初步判断。
使用执行工具已批准的宿主机访问机制。对于 ,使用具体命令及其理由请求 ,说明沙箱限制以及必须访问的目标。获批后执行;如果无法提升权限或请求被拒绝,则报告阻塞原因并继续处理可独立完成的工作。
exec_commandsandbox_permissions: "require_escalated"对于疑似身份验证失败的情况,首先使用现有凭据在宿主机上发起最小化的只读请求,例如 。成功响应可确认身份验证有效;随后通过已批准的宿主机执行方式继续执行已授权的操作。在请求重新登录或更改凭据之前,应根据实际错误诊断持续的宿主机执行失败。
gh api user --jq .login宿主机访问应保持原始任务范围和操作权限不变。在重试结果不确定的写操作之前,先核对远端状态。避免在输出和聊天中暴露凭据。