Skip to content

User trustedTools wins over trusted project list; revert #79 union (O55) - #75

Merged
QiaolongLi1201 merged 1 commit into
mainfrom
fix/o55-user-trustedtools-v2
Oct 11, 2026
Merged

QiaolongLi1201 merged 1 commit into
mainfrom
fix/o55-user-trustedtools-v2

Conversation

@QiaolongLi1201

Copy link
Copy Markdown
Collaborator

Implements backlog O55. Reverts the union from #79; stacked on O56 PR #70; depends on #69. (Base branch is main, so until #69 and #70 merge the diff also shows their commits; the O55 change is the top commit only.)

Why

#79 changed trustedTools from user-wins to user ∪ project, so a trusted project could add tools to a narrower list the user set. That conflicts with principle 6 (project files must not loosen approvals).

Change

mergeConfigFiles: trustedTools: userConfig.trustedTools ?? projectConfig.trustedTools.

Tests

  • New test/o55-user-trustedtools.spec.mjs (adapted from QA repro qa-repro-o55.spec.mjs): 3 cases.
    • On old src (O56 tip 8ad654ea, i.e. union): user [read_file] wins over trusted project [read_file, exec] FAIL; other two PASS.
    • With fix: 3/3 PASS.
  • Updated two tests that asserted the union: test/cli-config-merge.spec.mjs, test/cli-config-untrusted-permissions.spec.mjs (project permissions.allow still unions).
  • Full npm run verify on macOS, Node 25.9, all MOSS_*/*_API_KEY unset, pyte layout ran ([tui-layout] 74/74 passed): exit 0. (One earlier run hit a flaky test/git-spawn.spec.mjs fixture assertion; it passed 3/3 in isolation and the rerun was green.)

Supersedes #72 (rebased onto b8a4e4b).

Reverts the trustedTools union from #79. When the user sets trustedTools,
that list is used exactly; a trusted project's list applies only when the
user left it unset. Untrusted projects' trustedTools stay dropped.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@QiaolongLi1201
QiaolongLi1201 changed the base branch from fix/o56-untrusted-permissions-v2 to main October 11, 2026 07:18
@QiaolongLi1201
QiaolongLi1201 merged commit 675c9d7 into main Oct 11, 2026
10 of 12 checks passed
@QiaolongLi1201
QiaolongLi1201 deleted the fix/o55-user-trustedtools-v2 branch October 12, 2026 10:29
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