#21255·orca

Codex and Claude launched via exec env are not classified as agents

Author: calebcasselCreated Sep 17, 2026Updated Sep 17, 2026

Summary

Orca does not treat Codex or Claude as agent launches when the command is wrapped in exec and env assignments (for example exec env AGENT_NAME=example codex). The same binaries launched directly are classified correctly.

Repro

  1. Create a terminal with command exec env EXAMPLE=value codex.
  2. Observe it is handled as an ordinary background command rather than an agent terminal.

Direct codex is classified as an agent. Shell prefix and environment assignments should not change that.

Expected

exec env … codex and exec env … claude use the same renderer-backed agent terminal path as a bare codex / claude launch. One-shot commands such as codex exec stay on the background path.