fix(plugin-tinyplace): pre-trust Codex launch dir so first foreground-inject isn't swallowed#220
Conversation
…lowed Verified live that tmux send-keys wakes an idle Codex TUI and drives a turn (it replied with the exact injected token) — the same primitive foreground-inject uses, now confirmed on Codex as well as Claude. But a fresh isolated CODEX_HOME shows Codex's "Do you trust this directory?" dialog on first launch, and an injected trigger arriving then lands on the dialog instead of the composer. The generated config.toml now pre-trusts the launch cwd ([projects."<cwd>"] trust_level = "trusted"), so Codex boots straight to the composer and the first foreground-inject trigger is processed. Scoped to the one directory the user explicitly launched tinyplace in (equivalent to their "Yes, continue"); the launcher threads process.cwd() into the adapter's prepare(ctx). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
@sanil-23 is attempting to deploy a commit to the Vezures Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe Codex adapter's ChangesCodex directory pre-trust
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
Follow-up to #219 (this commit was pushed just after #219 merged, so it missed the merge).
What & why
Verified live that
tmux send-keyswakes an idle Codex TUI and drives a turn (Codex replied with the exact injected token) — the same primitive foreground-inject uses, now confirmed on Codex as well as Claude.But a fresh isolated
CODEX_HOMEshows Codex's "Do you trust this directory?" dialog on first launch, and an injected trigger arriving then lands on the dialog instead of the composer (observed: it ate the first word of the injected text). The generatedconfig.tomlnow pre-trusts the launch cwd:so Codex boots straight to the composer and the first foreground-inject trigger is processed. Scoped to the one directory the user explicitly launched
tinyplacein (equivalent to their "Yes, continue"); the launcher threadsprocess.cwd()into the adapter'sprepare(ctx).Testing
adapter-contract+harnessgreen; verified the generatedconfig.tomlcontains the trust block ahead of the MCP server config. Live-verified the injection primitive on Codex (two send-keys round-trips returned the exact tokens).🤖 Generated with Claude Code
Summary by CodeRabbit