Skip to content

Commit ea4cf20

Browse files
committed
Persist Codex approval settings
1 parent 58164aa commit ea4cf20

2 files changed

Lines changed: 55 additions & 2 deletions

File tree

rc.d/codex/config.toml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
model = "gpt-5.5"
2+
model_reasoning_effort = "xhigh"
3+
approval_policy = "never"
4+
approvals_reviewer = "user"
5+
sandbox_mode = "danger-full-access"
6+
7+
[projects."/Users/nagase/src/dtp-career-journey-backend"]
8+
trust_level = "trusted"
9+
10+
[projects."/Users/nagase/src/think"]
11+
trust_level = "trusted"
12+
13+
[projects."/Users/nagase/src/color.recipes"]
14+
trust_level = "trusted"
15+
16+
[projects."/private/tmp"]
17+
trust_level = "trusted"
18+
19+
[projects."/Users/nagase/src/ccskill-gptimage"]
20+
trust_level = "trusted"
21+
22+
[projects."/Users/nagase/src/agent-san-nikki"]
23+
trust_level = "trusted"
24+
25+
[projects."/Users/nagase/src/kinsoku"]
26+
trust_level = "trusted"
27+
28+
[projects."/Users/nagase/src/dtp-career-journey-webapp"]
29+
trust_level = "trusted"
30+
31+
[projects."/Users/nagase/src/bumblebee"]
32+
trust_level = "trusted"
33+
34+
[plugins."github@openai-curated"]
35+
enabled = true
36+
37+
[plugins."google-drive@openai-curated"]
38+
enabled = true
39+
40+
[tui]
41+
status_line = ["model-with-reasoning", "current-dir", "git-branch"]
42+
status_line_use_colors = true
43+
44+
[tui.model_availability_nux]
45+
"gpt-5.5" = 4
46+
47+
[apps.connector_76869538009648d5b282a4bb21c3d157.tools."github.create_pull_request"]
48+
approval_mode = "approve"
49+
50+
[notice]
51+
hide_full_access_warning = true

setup.d/dotfiles.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ resolve_os_name() {
4848

4949
for f in $DOTFILES/rc.d/*; do
5050
BASENAME=$(basename $f)
51-
if [ $BASENAME != 'subversion' ] && [ $BASENAME != 'sbt' ] && [ $BASENAME != 'ssh' ] && [ $BASENAME != 'cmus' ] && [ $BASENAME != 'karabiner' ] && [ $BASENAME != 'claude' ] && [ $BASENAME != 'gh' ] && [ $BASENAME != 'gnupg' ]; then
51+
if [ $BASENAME != 'subversion' ] && [ $BASENAME != 'sbt' ] && [ $BASENAME != 'ssh' ] && [ $BASENAME != 'cmus' ] && [ $BASENAME != 'karabiner' ] && [ $BASENAME != 'claude' ] && [ $BASENAME != 'gh' ] && [ $BASENAME != 'gnupg' ] && [ $BASENAME != 'codex' ]; then
5252
resolve_os_name "$BASENAME" || continue
5353
rm -rf "${HOME}/${LINKNAME}"
5454
symlink "$f" "${HOME}/.${LINKNAME}"
@@ -91,7 +91,9 @@ for f in $DOTFILES/rc.d/claude/*; do
9191
done
9292
## Codex
9393
# Keep runtime state, auth, logs, and caches in ~/.codex, but manage reusable
94-
# command approval rules from dotfiles.
94+
# config and command approval rules from dotfiles.
95+
ensure_directory "${HOME}/.codex"
96+
symlink "${DOTFILES}/rc.d/codex/config.toml" "${HOME}/.codex/config.toml"
9597
ensure_directory "${HOME}/.codex/rules"
9698
for f in "$DOTFILES/rc.d/codex/rules"/*; do
9799
[ -e "$f" ] || continue

0 commit comments

Comments
 (0)