Skip to content

feat(security): Default new scripts to disabled state #19

@mathe00

Description

@mathe00

Enhance security by ensuring newly detected Python scripts are disabled by default. Users must explicitly enable scripts they trust before execution.

  • Modify script discovery logic (updateAndSyncCommands or similar in python_executor.ts).
  • When a new .py file is found (not present in plugin.settings.scriptActivationStatus), add it to the status object with a value of false.
  • Ensure saveSettings is called after updating the status.
  • Verify in UI that new scripts appear with the "Script Enabled" toggle off.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions