refactor(permission): effectify PermissionNext + fix InstanceState ALS bug (#17511)

This commit is contained in:
Kit Langton 2026-03-14 14:28:00 -04:00 committed by GitHub
commit f015154314
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 805 additions and 264 deletions

View file

@ -183,7 +183,7 @@ describe("tool.read env file permissions", () => {
askedForEnv = true
}
if (rule.action === "deny") {
throw new PermissionNext.DeniedError(agent.permission)
throw new PermissionNext.DeniedError({ ruleset: agent.permission })
}
}
},