Skip to content

feat: accept claude trust dialog#585

Open
NoahCardoza wants to merge 2 commits intoiloom-ai:mainfrom
NoahCardoza:feature/claude-trust-dialog
Open

feat: accept claude trust dialog#585
NoahCardoza wants to merge 2 commits intoiloom-ai:mainfrom
NoahCardoza:feature/claude-trust-dialog

Conversation

@NoahCardoza
Copy link
Contributor

Summary

  • Pre-accept the Claude Code trust dialog for new and resumed looms
  • Allows Claude to launch without interactive trust confirmation by writing hasTrustDialogAccepted: true to ~/.claude.json
  • Runs claude --dangerously-skip-permissions --no-session-persistence --print to register the worktree path before setting the flag

Test plan

  • Create a new loom with Claude enabled and verify trust dialog is not shown
  • Resume an existing loom and verify trust dialog is not shown
  • Create a loom with --no-claude and verify the trust dialog step is skipped
  • Verify ~/.claude.json contains the correct hasTrustDialogAccepted entry for the worktree path

🤖 Generated with Claude Code

@NoahCardoza
Copy link
Contributor Author

I decided to make this the default behavior and allowing a flag to disable it since when running il start <ticket-id> you would expect a Claude Code instance to spin up. It just wouldn't make sense to run that command and then reject access to the folder.

Let me know what you think.

NoahCardoza and others added 2 commits February 12, 2026 13:59
Pre-accept the Claude Code trust dialog for new and resumed looms,
allowing Claude to launch without interactive trust confirmation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract the private acceptClaudeTrustDialog method from LoomManager into
a standalone exported function in src/utils/claude.ts with CLAUDE_CONFIG_DIR
env var support for testability. Add 5 tests covering file creation, existing
project preservation, same-path updates, CLI flag verification, and missing
projects key handling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@NoahCardoza NoahCardoza force-pushed the feature/claude-trust-dialog branch from dd3339e to 2137839 Compare February 13, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant