diff options
| author | Igor Soarez <igor@soarez.org> | 2026-11-06 13:49:39 +0200 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-11-06 13:49:39 +0200 |
| commit | ff99a4432a3feedfac10d9514ce661a9cb95004c (patch) | |
| tree | 0a54c83e0a3b969baa2cbb78233d41c7996816b9 /test-suite/challenges/34-dialog-handling.html | |
| parent | 68216dcb01c8cd5894c6e2b4914d7c619d75ab35 (diff) | |
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.
Diffstat (limited to 'test-suite/challenges/34-dialog-handling.html')
0 files changed, 0 insertions, 0 deletions
