feat: Allowed Directories management panel#23
Closed
Copilot wants to merge 5 commits into
Closed
Conversation
8 tasks
Agent-Logs-Url: https://github.com/faesel/gridwatch/sessions/9e734ef3-b0ff-4e07-937c-bd8aafd63ee0 Co-authored-by: faesel <6319576+faesel@users.noreply.github.com>
…rg, shell-metachar blocklist Agent-Logs-Url: https://github.com/faesel/gridwatch/sessions/9e734ef3-b0ff-4e07-937c-bd8aafd63ee0 Co-authored-by: faesel <6319576+faesel@users.noreply.github.com>
Agent-Logs-Url: https://github.com/faesel/gridwatch/sessions/9e734ef3-b0ff-4e07-937c-bd8aafd63ee0 Co-authored-by: faesel <6319576+faesel@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add management panel for allowed directories configuration
feat: Allowed Directories management panel
Apr 24, 2026
Owner
|
Closed — branch merged directly to main in v0.31.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GridWatch had no UI for managing the Copilot agent's allowed-directories list. This adds a dedicated DIRS page with full CRUD, search, auto-refresh, and security hardening consistent with the MCP/LSP pages.
Storage
Persists to
~/.copilot/gridwatch-allowed-dirs.json:{ "directories": [{ "path": "/absolute/path", "addedAt": "2024-01-01T00:00:00.000Z" }] }IPC surface (
electron/main.ts+preload.ts)dirs:get-all— returnsAllowedDirectory[]with liveexistsflag; 10 s in-memory cachedirs:add— opens native folder-picker dialog, validates, appends, invalidates cachedirs:remove— validates path, removes entry, deletes file when list becomes emptyapp:open-item-folderextended with'dirs'case → reveals config file in Finder/ExplorerSecurity
PROTOTYPE_POLLUTION_KEYS); | & \$ ( ) > < \0 %`)..segment check (cross-platform, splits on both/and\)isValidDirPathapplied insidereadAllowedDirsso tampered JSON can't inject invalid pathsfs.statSyncconfirms selection is a directory before persistingUI (
DirsPage.tsx/DirsPage.module.css)⊟ DIRSnav entry added after AGENTSopenItemFolderfailures)refreshKeyprop;+ ADDbutton triggers folder-picker