Skip to content

T003: Fix pretrust — use claude -p instead of mkdir#16

Merged
grobomo merged 1 commit intomainfrom
015-T003-fix-pretrust
Apr 6, 2026
Merged

T003: Fix pretrust — use claude -p instead of mkdir#16
grobomo merged 1 commit intomainfrom
015-T003-fix-pretrust

Conversation

@grobomo
Copy link
Copy Markdown
Owner

@grobomo grobomo commented Apr 6, 2026

Summary

  • mkdir alone doesn't establish workspace trust — Claude Code requires a real session JSONL file
  • Now runs claude -p "ok" --dangerously-skip-permissions in the target dir (~3s) which creates proper trust state
  • Updated tests to verify no-op when JSONL already exists (67 passing)

Test plan

  • Unit tests pass (67/67)
  • Live test: context-reset into a new project directory — trust dialog should not appear

Creating ~/.claude/projects/<slug>/ alone doesn't establish trust.
Claude Code requires a real session file. Now runs `claude -p "ok"
--dangerously-skip-permissions` in the target dir, which creates
proper trust state (project dir + session JSONL) in ~3 seconds.

Updated tests to verify no-op behavior when JSONL already exists.
67 tests passing.
@grobomo grobomo merged commit 26c7535 into main Apr 6, 2026
1 check passed
@grobomo grobomo deleted the 015-T003-fix-pretrust branch April 6, 2026 04:00
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.

1 participant