{"version":"2.1.122","anchor":"remote-session-bash-command-event","canonical_anchor":"remote-session-bash-command-event","heading":"Remote Session Bash Command Event","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.122\/e\/remote-session-bash-command-event","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.122","markdown":"### Remote Session Bash Command Event\n\n**What**\n\nAdds a new `bash_command` event type that allows remote clients (e.g. Claude Code Remote) to dispatch shell commands directly to a session without going through the model.\n\n**Details**\n\n- The event schema includes a `command` string and optional `cwd` for the working directory\n- Executed via a one-shot `\/bin\/sh -c` (or `pwsh` on Windows) subprocess, bypassing the model entirely\n- Output includes stdout, stderr, and exit code wrapped in XML tags\n- This allows CCR clients that surface a dedicated terminal UI to run shell commands natively\n\n**Evidence**\n\nNew Zod schema with `type: \"bash_command\"` (search for `\"bash_command\"`) and handler function `sendBashCommand` (search for `\"[RemoteSessionManager] Sending bash_command to session\"`)"}