hermes-agent/tools
Ray 062d44bba7 fix(xai): fail closed in xai_http.get_env_value — honor get_secret's verdict
Salvaged from #56982 (@rayjun): the live piece of the PR. The
hermes_cli/config.py get_env_value scope-honoring change and its
test_env_load_cache.py tests were already merged via ed1170cd8b
(#76462) and are dropped here.

tools/xai_http.py::get_env_value wrapped the scope-aware
hermes_cli.config.get_env_value in except Exception + a raw os.environ
fallback — swallowing UnscopedSecretError and borrowing the process
env, so a multiplexed xAI credential read could silently pick up
another profile's XAI_API_KEY. Narrow the except to ImportError (the
only legitimate degraded case) so get_secret's verdict propagates: an
unscoped multiplexed read fails closed, and a scoped miss returns the
default instead of the foreign environ value.

Co-authored-by: rayjun <rayjun0412@gmail.com>
2026-08-02 09:59:52 -07:00
..
computer_use
…
environments refactor(cron): harden the run heartbeat (review follow-ups) 2026-08-02 14:04:52 +05:30
neutts_samples
…
wakewords
…
__init__.py
…
ansi_strip.py
…
approval.py docs(approval): _get_approval_config returns the live cache sub-dict 2026-08-02 21:17:49 +05:30
async_delegation.py
…
audio_container.py
…
binary_extensions.py
…
blueprints.py
…
browser_camofox.py fix(browser): scope Camofox session identity 2026-08-02 00:11:50 -07:00
browser_camofox_state.py
…
browser_cdp_tool.py
…
browser_dialog_tool.py
…
browser_supervisor.py
…
browser_tool.py fix(browser): guard against concurrent expired-session replacement race 2026-08-02 11:18:41 +05:30
budget_config.py
…
checkpoint_manager.py
…
clarify_gateway.py
…
clarify_tool.py
…
close_terminal_tool.py
…
code_execution_tool.py fix(security): scope passthrough env to routed profile 2026-08-02 00:36:03 -07:00
computer_use_tool.py
…
credential_files.py fix(vision): make desktop image uploads reachable from profile Docker sandboxes (#69575) (#75671) 2026-07-31 17:43:37 -04:00
cronjob_tools.py refactor(cron): log the heartbeat ceiling stop + test it 2026-08-02 14:04:52 +05:30
daemon_pool.py
…
debug_helpers.py
…
delegate_tool.py fix(compression): let explicit interrupts cancel safely 2026-08-02 22:15:20 +05:30
delegation_live_log.py
…
desktop_ui.py
…
discord_tool.py fix(tools): isolate model tools by multiplex profile 2026-08-02 00:11:50 -07:00
env_passthrough.py fix(security): scope passthrough env to routed profile 2026-08-02 00:36:03 -07:00
env_probe.py fix(runtime): resolve Hermes-managed Node and uv before bare PATH 2026-08-01 21:17:51 -04:00
fal_common.py
…
feishu_doc_tool.py
…
feishu_drive_tool.py
…
file_operations.py fix(file-ops): prevent non-UTF-8 corruption and symlink data-loss 2026-08-01 15:39:33 -07:00
file_state.py
…
file_tools.py fix(tools): validate timeout, reject whitespace old_string, narrow /private/var block 2026-08-01 15:41:21 -07:00
flux3_video_tool.py Portal free user vision fix + flux3 polling improvements (#75448) 2026-07-31 10:17:55 -04:00
focus_pane_tool.py
…
fuzzy_match.py fix(tools): validate timeout, reject whitespace old_string, narrow /private/var block 2026-08-01 15:41:21 -07:00
homeassistant_tool.py fix(tools): isolate model tools by multiplex profile 2026-08-02 00:11:50 -07:00
hook_output_spill.py
…
image_generation_tool.py
…
image_source.py fix(vision): make desktop image uploads reachable from profile Docker sandboxes (#69575) (#75671) 2026-07-31 17:43:37 -04:00
interrupt.py
…
kanban_tools.py
…
lazy_deps.py fix(runtime): resolve Hermes-managed Node and uv before bare PATH 2026-08-01 21:17:51 -04:00
managed_tool_gateway.py Portal free user vision fix + flux3 polling improvements (#75448) 2026-07-31 10:17:55 -04:00
mcp_dashboard_oauth.py
…
mcp_oauth.py
…
mcp_oauth_manager.py
…
mcp_stdio_watchdog.py
…
mcp_tool.py fix(mcp): guard against duplicate spawns and stale connecting entries (#58862) 2026-08-01 11:35:59 +05:30
memory_tool.py
…
microsoft_graph_auth.py
…
microsoft_graph_client.py
…
neutts_synth.py
…
open_preview_tool.py
…
openrouter_client.py
…
osv_check.py fix(security): cache OSV malware preflight verdicts and stop double component discovery (#75485) 2026-08-01 10:47:20 -07:00
patch_parser.py fix(patch-parser): tolerate CRLF patch bodies and Move-then-Update 2026-08-01 15:40:39 -07:00
path_security.py
…
process_registry.py refactor(process-registry): fold kill_started_since into kill_all via exclude_ids 2026-08-02 14:23:55 +05:30
project_tools.py
…
react_to_message_tool.py
…
read_extract.py
…
read_terminal_tool.py
…
registry.py fix(tools): isolate model tools by multiplex profile 2026-08-02 00:11:50 -07:00
schema_sanitizer.py
…
send_message_tool.py
…
session_search_tool.py fix(sessions): keep kanban worker runs out of the session lists 2026-07-31 13:53:04 -05:00
skill_manager_tool.py
…
skill_provenance.py
…
skill_usage.py
…
skills_ast_audit.py
…
skills_guard.py fix(security): extend secret redaction to GitLab token families 2026-07-31 21:31:10 -07:00
skills_hub.py refactor: share category detection and prune vendored SKILL.md hits 2026-08-02 13:31:16 +05:30
skills_sync.py
…
skills_sync_client.py fix(sync): read org state from the org endpoints, not the personal ones (#75237) 2026-07-30 22:31:42 -07:00
skills_tool.py
…
slash_confirm.py
…
terminal_tool.py fix(tools): validate timeout, reject whitespace old_string, narrow /private/var block 2026-08-01 15:41:21 -07:00
thread_context.py
…
threat_patterns.py
…
tirith_security.py perf(tools): use load_config_readonly on the approval guard path 2026-08-02 21:17:49 +05:30
todo_tool.py
…
tool_backend_helpers.py
…
tool_output_limits.py
…
tool_result_storage.py
…
tool_search.py
…
transcription_tools.py
…
tts_streaming.py
…
tts_text_normalize.py
…
tts_tool.py fix(tts): apply 7 review fixes to prefetch pipeline 2026-08-02 12:08:29 +05:30
url_safety.py
…
video_generation_tool.py
…
vision_tools.py
…
voice_mode.py
…
wake_word.py
…
web_tools.py
…
website_policy.py
…
working_diff.py
…
write_approval.py
…
x_search_tool.py
…
xai_http.py fix(xai): fail closed in xai_http.get_env_value — honor get_secret's verdict 2026-08-02 09:59:52 -07:00
xai_video_tools.py
…
yuanbao_tools.py
…