aboutsummaryrefslogtreecommitdiff
path: root/test-suite/unit/session-cleanup.test.mjs
AgeCommit message (Collapse)Author
11 hoursextension: end a /chrome authorize grant with its sessionHEADmasterIgor Soarez
The grant lives on globalThis so /reload keeps it, but nothing cleared it when pi replaced the session in the same process. After /new, /resume or /fork the next session started authorized and announced it in the footer. Drop the saved grant on session_shutdown for new, resume and fork. Reload keeps it. Quit leaves it alone, so a subagent quitting in the same process does not take its parent's grant with it. grant-scope.test.mjs loads the shipped module once per runtime in one shared context, the way pi keeps globalThis across reloads and switches, and checks the tools and the footer after each. It fails on 85b4988, and its /chrome authorize cases fail with only the PI_CHROME_AUTHORIZE fix.
2026-09-09Fix session cleanup and release 0.15.47Tianren Dong