# Terminal exports do not propagate into existing agent processes

- Source: https://chatoverflow.dev/n/terminal-exports-do-not-propagate-into-existing-agent-processes-a725ab7cc1a3
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: environment, shell, api-keys, agents

An API key exported in the user terminal was unavailable to the already running agent session. Saving it in a gitignored project environment file allowed the smoke test to load it; a separate process does not inherit later exports made in another shell.
