# NousResearch/hermes-agent · Temp path and credential file issues in non-standard environments

## Open now

- 0 issues, 2 PRs open on GitHub.
- PR #52420: fix: use TMPDIR env var instead of hardcoded /tmp for Termux/Android
- PR #141512: fix: respect Termux/TMPDIR env vars in temp-dir fallbacks

These issues and PRs address two adjacent problems: hardcoded /tmp paths breaking tools on Termux/Android, and credential files not being accessible in remote terminal backends like Modal and Docker. Both themes involve environment-specific file path and mounting concerns.

## TL;DR

- 7 member(s): 0 open issue(s), 1 closed issue(s), 2 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #115939. Verify it addresses your case.
- **Recommended:** read PR #115939 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.29`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #52415: \[Bug\]: hardcoded /tmp paths break terminal tool on Termux/Android (7 sites bypass get_temp_dir())

## Prior & competing PRs

- **#115939: Hermes stops using /tmp: owned scratch dir, TMPDIR at boot, prompt line, CI lint**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `.github/workflows/lint.yml`, `CONTRIBUTING.md`, `acp_adapter/server.py`, `agent/copilot_acp_client.py`, `agent/prompt_builder.py`, `apps/desktop/README.md`, `apps/desktop/e2e/group-chat-code-block-and-media.spec.ts`, `apps/desktop/e2e/group-create-gate-remote-roster.spec.ts`, `apps/desktop/e2e/group-room-member-editing.spec.ts`, `apps/desktop/e2e/group-transcript-mentions-reply-to.spec.ts`, `apps/desktop/e2e/group-transcript-owner-meta.spec.ts`, `apps/desktop/e2e/group-turn-integrity.spec.ts`, `apps/desktop/scripts/perf/README.md`, `apps/desktop/scripts/perf/gateway_attach_bench.py`, `apps/desktop/scripts/perf/scenarios/multitab.mjs`, `apps/desktop/scripts/profile-model-picker.mjs`, `apps/desktop/scripts/profile-typing-lag.md`, `apps/desktop/src/app/chat/short-session-hang-repro.tsx`, `evals/botmode-dm-delivery/probe-cron-root.spec.ts`, `evals/botmode-dm-delivery/probe-dm-delivery.spec.ts` (+180 more)
- **#52420: fix: use TMPDIR env var instead of hardcoded /tmp for Termux/Android**. open
  - maintainer direction: category `wontfix_bydesign`; implication `wontfix`
  - files: `agent/copilot_acp_client.py`, `hermes_constants.py`, `tools/code_execution_tool.py`, `tools/process_registry.py`
- **#65668: fix: replace hardcoded /tmp with tempfile.gettempdir() (fixes #52415)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `51dd1970afa`, `#115939`, `#52415`
- **#100820: feat: add get_effective_temp_dir() helper, route hardcoded /tmp paths through it**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#100832: feat: add get_effective_temp_dir() helper for platform-aware temp paths**. closed without merge
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `#52415`
- **#141512: fix: respect Termux/TMPDIR env vars in temp-dir fallbacks**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/coding_context.py`, `agent/copilot_acp_client.py`, `agent/verification_evidence.py`, `agent/verification_stop.py`, `hermes_constants.py`, `tests/agent/test_verification_stop.py`, `tools/approval_detection.py`, `tools/bot_mode_dm.py`, `tools/code_execution_tool.py`, `tools/code_kernel.py`, `tools/computer_use/cua_backend_daemon.py`, `tools/environments/docker.py`, `tools/environments/file_sync.py`, `tools/environments/ssh.py`, `tools/process_registry.py`, `tools/tool_result_storage.py`, `tools/voice_mode.py`

## Fix status

- Merged to main in PR #115939 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-19`.
- Subsystem: `agent`
