Skip to content

app-server tests: select turn permission profiles by name#20393

Closed
bolinfest wants to merge 1 commit into
pr20390from
pr20393
Closed

app-server tests: select turn permission profiles by name#20393
bolinfest wants to merge 1 commit into
pr20390from
pr20393

Conversation

@bolinfest

@bolinfest bolinfest commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

Why

The app-server v2 turn API now has a named permissions selection path. Several integration tests were still changing turn permissions through the legacy sandboxPolicy request field, which keeps coverage biased toward the old abstraction even when the scenario is not testing legacy compatibility.

What Changed

  • Added small test helpers for selecting named permission profiles.
  • Updated turn-start integration tests to use permissions: { type: "profile", id: ... } for :workspace and :danger-no-sandbox overrides.
  • Removed all SandboxPolicy references from turn_start.rs and turn_start_zsh_fork.rs; the remaining v2 app-server test reference intentionally verifies that command/exec rejects sandboxPolicy combined with permissionProfile.

Verification

  • cargo test -p codex-app-server --test all turn_start_rejects_invalid_permission_selection_before_starting_turn -- --nocapture
  • cargo test -p codex-app-server --test all turn_start_updates_permissions_and_cwd_between_turns_v2 -- --nocapture
  • just fix -p codex-app-server

Stack created with Sapling. Best reviewed with ReviewStack.

@bolinfest bolinfest requested a review from a team as a code owner April 30, 2026 10:39
@bolinfest bolinfest changed the base branch from main to pr20390 April 30, 2026 10:40
This was referenced Apr 30, 2026
This was referenced Apr 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this May 15, 2026
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