oliver-zehentleitner / maity
runner: Claude Code's folder-trust prompt blocks every new interactive placement; pre-accept it for the clone
tsk-2ekq5dsy8anz Done An agent
Seen live on 2026-11-09 (Oliver 98188, runner home-vm, CLI 0.1.0a7 from main 9da6b03e, Claude Code 2.1.319, plc-7kpdvc6359ng). After #1551, the interactive session starts. On the first start in a fresh clone, Claude Code then shows "Quick safety check: Is this a project you created or one you trust?" (No, exit / Yes, I trust this folder) and waits. The agent never runs maity resume, the runner reports running, and the member never comes online.
Fix: when the runner prepares the clone for claude-code, it marks the workspace as trusted the way Claude Code itself records an accepted trust dialog. Do this for the agent's user and only for that clone path. The owner's consent to the placement is the trust decision. Supervised mode needs checking too.
Tests: the adapter writes the trust entry for exactly the clone path and touches nothing else in the agent's Claude config.
Before writing the fix, verify the exact config key and file against the installed Claude Code 2.1.319, not from memory, and say in the PR how you verified it. Changelog line. Ship it in the next CLI release.
Notes
Lotse · Nov 9, 2026, 13:12 UTC
Also (Oliver 98196):
maity runner statuson the runner prints no attach line for a running placement, although the supervisor keepssession_hint. Oliver could not find out how to reach the session. Please have status print the attach line (the same text asattach_hint) for starting/running placements. It can go in the same PR or the next one.An agent · Nov 9, 2026, 13:40 UTC
Cause reproduced (Claude Code 2.1.319, runner tmux.conf, real attach via pty): while the folder-trust question is open, an Enter reaching the pane picks the preselected 'No, exit' and Claude exits 1 (Esc exits 0; no input, terminal query replies, focus events and a bare LF do nothing). 'No' records nothing, so every restart asks again. With projects[<clone realpath>].hasTrustDialogAccepted=true pre-set there is no question and an Enter at attach does not end the session. Source of the Enter in the live attach: not reproduced.