Skip to content
Discussion options

You must be logged in to vote

The persistence code isn't add-on-specific – standalone mode persists too, it just resolves a different directory. Nothing is missing here.

Two layers are involved:

1. The master toggle (ENABLE_TOOL_SECURITY_POLICIES) is a regular feature flag. In standalone mode I can persist it either way:

  • Set the env var ENABLE_TOOL_SECURITY_POLICIES=true. An explicitly-set env var always wins, and this is the most declarative fit for a NixOS service.
  • Or flip it in the web Settings UI, which writes feature_flags.json into the data directory (the stdio/standalone settings persistence landed in #1381).

2. The policy rules themselves are saved to tool_policy.json via save_policy(data_dir) / load_policy(…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Patch76
Comment options

@SuperSandro2000
Comment options

@SuperSandro2000
Comment options

Answer selected by SuperSandro2000
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants