Skip to content

docs: recognize eutialia's runtime reports and proposals - #1339

Merged
luokerenx4 merged 3 commits into
TraderAlice:devfrom
eutialia:feat/headless-claude-accept-edits
Sep 9, 2026
Merged

docs: recognize eutialia's runtime reports and proposals#1339
luokerenx4 merged 3 commits into
TraderAlice:devfrom
eutialia:feat/headless-claude-accept-edits

Conversation

@eutialia

@eutialia eutialia commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Contributor recognition

Credit @eutialia in CONTRIBUTORS.md and the README contributor gallery for identifying the headless Claude Write/Edit permission gap and proposing a fix. Also record their Docker stale-lock recovery (#1363) and IBKR capability/transport (#1364) proposals; those remain separate PRs and are not represented as shipped here.

Why this PR changed

The original proposal added --permission-mode acceptEdits so unattended Claude runs could persist their work. Current dev already addresses that problem through the unified full-access launch policy in 36a3463, so the adapter patch is superseded.

At the maintainer's request, this PR now carries contributor recognition. The original author's commit is preserved, dev is merged into the branch, and the final diff contains only README.md and CONTRIBUTORS.md. Runtime behavior is unchanged.

Validation

  • Verified the final diff contains only the two contributor documentation files.
  • Checked profile and contribution links against GitHub PR metadata.
  • git diff --check origin/dev passes.

Thank you for investigating practical runtime failures and contributing multiple concrete proposals.

--allowedTools covers Bash only, so Write/Edit fell through to the
permission prompt claude -p has nobody to answer. Headless Issues that
write a report, append to a watchlist, or update a map lost their
output and reported every Write/Edit call denied by the sandbox.

pi passes --approve and agy passes --dangerously-skip-permissions
under Docker; claude was the only adapter that could not persist.
acceptEdits grants file writes and leaves Bash gated, so the
allowlist keeps its meaning instead of being replaced by a blanket
bypass. Verified against Claude Code 2.1.237: auto and dontAsk are
both no-ops headless, they still escalate to an unanswerable prompt,
so acceptEdits is the only mode that works.

Write-class Bash stays denied, so git commit in an Issue body still
fails. Narrow Bash(git add:*) / Bash(git commit:*) prefixes are a
separate follow-up.
Copilot AI lite review requested due to automatic review settings September 4, 2026 07:10
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

@eutialia is attempting to deploy a commit to the luokerenx4's Team Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

It changes runtime permission behavior for a headless agent process and depends on external Claude Code flag semantics/compatibility that can’t be fully validated from the diff alone.

Pull request overview

Enables non-interactive Claude Code (claude -p) runs to successfully perform file Write/Edit operations within a Workspace by explicitly setting a headless-specific permission mode, preventing tool calls from falling through to an unanswerable prompt during scheduled/automated runs.

Changes:

  • Add a headless-only --permission-mode acceptEdits flag to the Claude adapter’s headless argv.
  • Update the headless argv composition test to assert the new flag is present in the expected position.
File summaries
File Description
src/workspaces/adapters/claude.ts Adds a dedicated headless permission mode constant and passes --permission-mode acceptEdits for claude -p runs.
src/workspaces/adapters/ai-config.spec.ts Updates the composeHeadlessCommand expectation for Claude to include the new permission-mode flag.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@luokerenx4

Copy link
Copy Markdown
Contributor

claude code usually has this kind of strange actions. Thanks for your PR . I will merge it after 0.91.0 launch.

@luokerenx4

Copy link
Copy Markdown
Contributor

Thanks for your fix! We detect a similar prob and fix it today on 36a3463. But I miss your PR. I will add you in the contributor as one of our delicious friends. : )

@luokerenx4 luokerenx4 changed the title Let headless claude runs write in their own Workspace docs: recognize eutialia's runtime reports and proposals Sep 9, 2026
@luokerenx4
luokerenx4 merged commit bcf8deb into TraderAlice:dev Sep 9, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants