Skip to content

feat: wrapper detects container tools from the final merged config (issue #81) - #82

Merged
steffenmaechtel merged 1 commit into
masterfrom
feature/issue-81-global-tools
Sep 15, 2026
Merged

steffenmaechtel merged 1 commit into
masterfrom
feature/issue-81-global-tools

Conversation

@steffenmaechtel

Copy link
Copy Markdown
Owner

The wrapper's container opt-in scanned only the project's opencode.json[c], so broad "docker *"/"ddev *" allows in the opencode user's global config were invisible — no banner, no rootless backend env. Detection now runs opencode debug config as the opencode user from the cwd (the session's exact context, via the existing base sudoers rule, sudo -n) and evaluates the merged permission.bash last-match-wins; jsonc-parser.py gained stdin mode for the piped JSON. Falls back to the project-only scan when the probe returns nothing (old opencode, sudo denied).

Closes #81

…ssue #81)

The wrapper's container opt-in scanned only the project's opencode.json[c],
so broad "docker *"/"ddev *" allows in the opencode user's global config
were invisible — no banner, no rootless backend env. Detection now runs
`opencode debug config` as the opencode user from the cwd (the session's
exact context, via the existing base sudoers rule, sudo -n) and evaluates
the merged permission.bash last-match-wins; jsonc-parser.py gained stdin
mode for the piped JSON. Falls back to the project-only scan when the
probe returns nothing (old opencode, sudo denied).
@steffenmaechtel
steffenmaechtel merged commit de6c3cf into master Sep 15, 2026
3 checks passed
@steffenmaechtel
steffenmaechtel deleted the feature/issue-81-global-tools branch September 15, 2026 20:43

@steffenmaechtel steffenmaechtel left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed

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.

Respect ddev / docker from global config

1 participant