Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

1.1 KB
Raw Blame
// TEST-ONLY — issue #744. A developer running the suite from INSIDE a nodeterm agent session (the
// normal way this repo is worked on) inherits that session's agent-config relocation variables —
// a managed Claude account's `CLAUDE_CONFIG_DIR` above all. Code under test resolves the agent's
// LIVE config dir from them (`claudeSystemConfigDir`, `systemCodexHome`, …), so a test that boots
// the real integration lifecycle with a scratch `HOME` still wrote into the developer's own
// account dir (measured: a server boot test overwrote the session's `get-linked-context` skill).
// CI never sets these; stripping them here makes every machine behave like CI. A test that needs
// one sets it itself.
//
// The relocation list has ONE home — `HOME_OVERRIDE_ENV` in `src/core/test-home.ts`, which the
// HOME sandbox (`home-sandbox.ts` / `home-worker-env.ts`) clears too. Only the nodeterm session
// variables, which relocate nothing, are added here.
import { HOME_OVERRIDE_ENV } from '../../src/core/test-home'

for (const k of [
  ...HOME_OVERRIDE_ENV,
  'NODETERM_NODE_ID',
  'NODETERM_HOOK_ENDPOINT',
  'NODETERM_CANVAS_CONTROL'
]) {
  delete process.env[k]
}