Skip to content

sudo mode#101

Merged
etienne-martin merged 78 commits intomainfrom
develop
Feb 26, 2026
Merged

sudo mode#101
etienne-martin merged 78 commits intomainfrom
develop

Conversation

@etienne-martin
Copy link
Collaborator

@etienne-martin etienne-martin commented Feb 26, 2026

Summary

Add a sudo action input to run the agent with elevated execution permissions.

Changes

  • Add sudo input to action.yml (default false) and document it in README.md.
  • When sudo=true, run Codex with --sandbox=danger-full-access.
  • When sudo=true, skip starting the GitHub MCP server and bootstrap with no MCP servers.
  • Make GitHub access instructions in PROMPT.md templated and render mode-specific instructions in src/prompt.ts.
  • Add prompt unit test coverage for sudo-mode instructions.
  • Rebuild dist/ outputs and bump package version to 1.11.0.

Behavioral note

sudo=true now changes both sandbox level and GitHub integration path (CLI-centric instead of MCP).

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thanks for the update. I found one regression that should be fixed before merge.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Still one blocker: teardown is not guaranteed if MCP startup throws.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

New blocker: source/dist prompt templates diverged.

@github-actions github-actions bot dismissed stale reviews from themself February 26, 2026 16:45

Resolved in 5f6fbd0: src/dist prompt templates are now synced.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Re-checked latest head. Previous blockers are resolved and dismissed; no remaining blockers from this bot.

@etienne-martin etienne-martin merged commit 638417b into main Feb 26, 2026
3 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