Skip to content

Fix release permission skip flag bypass#156

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-inspection-1113
Draft

Fix release permission skip flag bypass#156
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-inspection-1113

Conversation

@cursor
Copy link
Copy Markdown
Contributor

@cursor cursor Bot commented May 13, 2026

Summary

Release builds could honor E2E permission-skip environment flags and report macOS permissions as granted without running the real probes. This PR gates both backend skip helpers to debug builds only while preserving E2E behavior for debug/test runs.

Test Plan

  • rustfmt --edition 2021 src/system/permissions.rs
  • cargo test permissions::tests:: -- --nocapture failed on default Cargo 1.83 because a transitive dependency requires edition 2024
  • cargo +stable test permissions::tests:: -- --nocapture progressed after installing Linux native dependencies, then failed on existing non-macOS compile issues in apps/native/src-tauri/src/main.rs and apps/native/src-tauri/src/peek.rs unrelated to this change

Docs

  • Docs updated (companion PR in darkmatter/nixmac-web: #__)
  • No docs update needed
Open in Web View Automation 

Co-authored-by: cooper <czxtm@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

Warnings
⚠️ PR is marked WIP / draft — do not merge until ready for review.
⚠️ Please assign this PR to someone (usually yourself).

📋 PR Overview

Lines changed 66 (+65 / -1)
Files 0 added, 1 modified, 0 deleted
Draft / WIP yes
Has Test Plan yes
New UI components no
New Storybook stories no
New Rust modules no
New TS source files no
New tests no
package.json touched no
Cargo.toml touched no
Infra / CI touched no

Generated by 🚫 dangerJS against 0d876c9

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