# NousResearch/hermes-agent · Windows Git Bash TMPDIR conflicts with scratch dir export

## Open now

- 1 issue, 1 PR open on GitHub.
- #120323: apply_scratch_tmp_env: Git Bash TMPDIR=/tmp prevents the scratch dir from being exported on Windows
- PR #120335: fix(scratch): keep Git Bash temp files in managed scratch

These items address a problem where Git Bash sets TMPDIR to the MSYS pseudo-path /tmp, interfering with the scratch directory export on Windows. The work involves detecting and overriding that default so the scratch directory behaves correctly in Windows shell environments.

## TL;DR

- 5 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 3 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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.40`: 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.

## Open related issues

- #120323: apply_scratch_tmp_env: Git Bash TMPDIR=/tmp prevents the scratch dir from being exported on Windows

## Prior & competing PRs

- **#120335: fix(scratch): keep Git Bash temp files in managed scratch**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `hermes_constants.py`, `tests/test_scratch_dir.py`
- **#120346: fix(scratch): ignore Git Bash pseudo TMPDIR so the scratch dir is exported on Windows (#120323)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `b5640f6335f4`
- **#120353: fix(scratch): MSYS /tmp shell default is not user intent**. closed without merge
  - maintainer direction: category `partial_fix`; implication `needs_llm`; refs `7a9e37a737c6`, `edb781677cd3`
- **#120463: fix(scratch): reclaim the /tmp MSYS pre-sets so Windows shells get the scratch dir**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#120353`

## Fix status

- No merged fix on record.
- Subsystem: `environments`
