Skip to content

Trust home and the launch directory without a project-trust prompt - #951

Merged
AnthonyRonning merged 1 commit into
masterfrom
codex-home-trust-maple
Sep 16, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
codex-home-trust-maple

Conversation

@AnthonyRonning

Copy link
Copy Markdown
Contributor

Summary

Maple Agent no longer prompts to trust the folder a first-time user actually starts in. Home and the process launch directory are trusted when no decision is saved. Selecting any other project still gets the existing one-time prompt.

This also drops the old silent auto-trust of every newly selected folder. That write raced with the UI prompt and still asked anyway.

An explicit Untrust remains saved, including for home.

Why this is the right layer

Project trust is resolved in project_trust_status, which the GUI prompt, ACP elicitation, and skill loading all read. Treating home and cwd as trusted there is race-free: the UI no longer depends on runtime start persisting an answer after bootstrap already asked.

Choosing a folder in the sidebar is not treated as consent. Only the directory the process was launched from (and home, which is the usual GUI default) skip the prompt. The filesystem root is never implicit, because a Dock-launched GUI often has cwd /.

Tests

  • cargo test --locked -p maple-agent --lib project_trust_
  • cargo clippy -p maple-agent --all-targets --locked -- -D warnings
  • Pre-commit frontend tests on commit

First GUI launch usually opens in $HOME, and maple acp uses the process
cwd. Treat those as trusted when no decision is saved so the one-time
prompt cannot race with runtime start. Selecting any other folder still
asks once. An explicit untrust is kept.
@AnthonyRonning
AnthonyRonning merged commit a7cd5fd into master Sep 16, 2026
27 checks passed
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