mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-26 21:43:34 +00:00
fix(app): gate config permission auto-accept (#38650)
This commit is contained in:
parent
aaa42fe3bf
commit
67a04787bf
1 changed files with 1 additions and 0 deletions
|
|
@ -212,6 +212,7 @@ function createServerPermissionState(input: { sdk: ServerSDK; sync: ServerSync }
|
|||
)
|
||||
|
||||
function enableConfiguredDirectory(directory: string) {
|
||||
if (input.sdk.protocolKind() !== "v1") return
|
||||
if (meta.disposed || !ready()) return
|
||||
const [childStore] = input.sync.child(directory)
|
||||
if (childStore.config.permission !== "allow") return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue