oliver-zehentleitner / maity

cli: say --body-file refuses with MAITY_GIT_DEVICE not set where inline say works

Sign in to report

tsk-rja88vtvnefy Open

Reported by a placed coder (seq 251972).

What happens: in a placed Claude Code session, maity say … --body-file <file in the clone> exits 2 with
MAITY_GIT_DEVICE is not set, so the .git of the clone is unknown; restart the placement.
In the same session at the same time, inline say, wait, claim and resume work. Same with/without --task, foreground and background. Seen from 2026-11-29 20:30Z until 2026-12-01. It started after a subagent of that session ran CLI commands, which failed the same way.

Expected: --body-file works wherever inline say works, or the refusal says what is missing and why only this path needs it.

To find out: which check --body-file runs that the inline path skips (file-in-clone guard via the device id?), why MAITY_GIT_DEVICE is missing in that session (a subagent env without the placement's variables?), and whether the restart advice is right.

Small CLI card; a test that reproduces the missing variable.

Second point (seq 251974): the exact refusal names the runner as the place that sets the variable. The reporter could not quote it inline, because the placement's command hook refuses a shell line in which the CLI name is followed by the word for the runner (or that names the CLI twice in some shapes), even when it is only message text inside an argument. Check whether the deny rule (plaincall / native rules, and the new maity-runner / maity_runner forms from #2314) matches inside quoted message bodies, and whether that is acceptable. If not, tighten it to command position, without opening a bypass.