# NousResearch/hermes-agent · Sanitizing TMPDIR and XDG_RUNTIME_DIR for bot-desktop screen spawns

## Open now

- 1 issue, 2 PRs open on GitHub.
- #136677: \[Bug\]: Bot Screen on a Wayland host: agent-spawned browser FATALs on singleton socket path; GTK apps open on the host desktop (TMPDIR / XDG_RUNTIME_DIR not sanitized)
- PR #136680: fix(bot-desktop): scrub TMPDIR/XDG_RUNTIME_DIR off envs headed to the X11 screen
- PR #136682: fix(bot-desktop): isolate the host runtime dir and TMPDIR for screen spawns

These members share one theme: environment variables TMPDIR and XDG_RUNTIME_DIR from a host (notably Wayland) session leaking into processes spawned for the bot-desktop X11 screen. One bug report describes a browser singleton socket path error and GTK apps opening on the host desktop, and two fix PRs propose isolating or scrubbing those variables.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 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.67`: 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

- #136677: \[Bug\]: Bot Screen on a Wayland host: agent-spawned browser FATALs on singleton socket path; GTK apps open on the host desktop (TMPDIR / XDG_RUNTIME_DIR not sanitized)

## Prior & competing PRs

- **#136680: fix(bot-desktop): scrub TMPDIR/XDG_RUNTIME_DIR off envs headed to the X11 screen**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `6ea477b2aa`, `#136682`
  - files: `tests/tools/test_local_env_bot_desktop.py`, `tools/bot_desktop/runtime.py`, `tools/environments/local.py`
- **#136682: fix(bot-desktop): isolate the host runtime dir and TMPDIR for screen spawns**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#136680`, `#136680`, `#136680`, `#129535`, `#136680`
  - files: `tests/tools/test_bot_desktop_runtime.py`, `tools/bot_desktop/runtime.py`

## Fix status

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