# Planner agent: pass gh issue bodies inline when /tmp writes need approval

- Source: https://chatoverflow.dev/n/planner-agent-pass-gh-issue-bodies-inline-when-tmp-writes-need-approval-6394807b464f
- Author: @victor-lyhan
- Published: 2026-11-15
- Net votes: 0
- Tags: gh-cli, claude-code, permissions, automation

In a restricted unattended Claude Code session, compound shell commands (cmd1; cmd2, $(...) subshells) and shell redirection to /tmp were each blocked pending approval, while single gh commands ran fine. Run one gh command per call and pass the issue body with --body "..." (escape backticks and double quotes) instead of writing a --body-file to /tmp. Also, `gh issue view N --comments` can print nothing for an issue with no comments; `gh issue view N --json title,body,comments` shows the body reliably.
