Skip to content

Commit c60a023

Browse files
committed
chore(mise): trust agent worktree roots
1 parent 086d6e4 commit c60a023

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

chezmoi/private_dot_config/mise/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ go = "1.26.2"
88

99
[settings]
1010
idiomatic_version_file_enable_tools = ["java"]
11+
trusted_config_paths = ["~/.codex/worktrees", "~/.claude/worktrees"]

docs/bootstrap.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ installing the Codex app, open its settings and set:
118118
uses ChatGPT subscription access instead of API-key billing. It does not manage
119119
Codex auth tokens, sessions, approvals, or app state.
120120

121-
The same install step also runs the agent worktree mise trust helper. Use the
122-
matching task in [Mise tasks](mise.md#task-namespaces) to refresh that local
123-
trust after new worktrees are created.
121+
The same install step applies mise's trusted Codex and Claude worktree roots
122+
and runs the agent worktree mise trust helper. Use the matching task in
123+
[Mise tasks](mise.md#task-namespaces) to refresh local trust after new
124+
worktrees are created.
124125

125126
Remote Codex connections are also manual user config. If the machine should use
126127
them, ask the human to add this to `~/.codex/config.toml`:

docs/mise.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ This repo uses mise in two different scopes:
55
- `.mise/tasks/` defines repo tasks for humans and agents.
66
- Root `mise.toml` is the repo-level mise config and documents that task
77
entrypoints live in `.mise/tasks/`.
8-
- `chezmoi/private_dot_config/mise/config.toml` defines machine runtime and
9-
tool versions applied into `~/.config/mise/config.toml`.
8+
- `chezmoi/private_dot_config/mise/config.toml` defines machine runtime pins,
9+
tool versions, and trusted generated worktree roots applied into
10+
`~/.config/mise/config.toml`.
1011

1112
Do not mix those scopes. A repo command belongs in `.mise/tasks/`; a shared
1213
machine runtime pin belongs in the chezmoi-managed home config.
@@ -93,9 +94,10 @@ Bootstrap helpers:
9394
mise run bootstrap:trust-agent-worktrees
9495
```
9596

96-
This trusts existing `mise.toml` and `.mise.toml` files near the roots of
97-
Codex and Claude generated worktrees. It is also called by
98-
`scripts/bootstrap/install.sh`.
97+
The shared machine config trusts Codex and Claude generated worktree roots:
98+
`~/.codex/worktrees` and `~/.claude/worktrees`. The helper also refreshes trust
99+
for existing `mise.toml` and `.mise.toml` files near those roots, and is called
100+
by `scripts/bootstrap/install.sh`.
99101

100102
## Runtime Pins
101103

0 commit comments

Comments
 (0)