You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Session grants (#132) expire when the session ends. As a result, users who always allow cargo test in a project must approve it again in every new session. Config files cannot store these grants when they are read-only Nix store paths. Persist explicitly confirmed grants in a state file keyed by project root.
Acceptance criteria
The approval prompt offers "always allow in this project", displays the grant, and asks for confirmation before saving it.
Store grants in $XDG_STATE_HOME/ox/grants.toml, keyed by project root. Write the file atomically with private permissions, and never write grants to config.
/status lists the project's persisted grants, and /grants lists them and revokes one or all of them in the TUI. Interactive REPL support is removed by Remove the interactive --no-tui REPL frontend #837.
Tests cover saving, loading grants in a new session, precedence under deny and ask rules, separate projects, and revocation.
Notes
Builds on session grants (#132) and the ask tier (#174), which have both landed. XdgBase::State in util/path.rs and atomic_write_private in util/fs.rs already exist for the state file.
Decision: the project root is the git root, falling back to the canonical cwd outside a repository.
Activity
docs: track planned work in GitHub issues (#188)
docs: trim verbose prose, correct stale claims, and allow noun-phrase…