fix(session): avoid sticky prompt tool overrides (#31394)

This commit is contained in:
Shoubhit Dash 2026-06-08 23:03:27 +05:30 committed by GitHub
commit f43209bb8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 58 additions and 27 deletions

View file

@ -421,19 +421,15 @@ describe("tool.task", () => {
{
permission: "bash",
pattern: "*",
action: "allow",
action: "deny",
},
{
permission: "read",
pattern: "*",
action: "allow",
action: "deny",
},
])
expect(seen?.tools).toEqual({
todowrite: false,
bash: false,
read: false,
})
expect(seen?.tools).toBeUndefined()
}),
{
config: {