fix(deps): adapt to pi-permission-system 32 session-keyed services

- resolve the permissions service by the live session id in both
  tryRegister paths, so a mid-session republish re-keys via the re-emitted
  permissions:ready channel
- read the session probe instead of the start-time snapshot for inner-cmd
- pass the session key to publish/unpublishPermissionsService in tests and
  drop the removed PromptPermissionDetails.message field
- raise the ai-judge peer floor to @gotgenes/pi-permission-system >=32.0.0
- bump dev deps: pi-coding-agent 0.85.1, vitest 5, typescript 7
This commit is contained in:
2026-09-16 20:57:55 +08:00
parent 063e04503b
commit c0585a1740
11 changed files with 746 additions and 1249 deletions
@@ -32,7 +32,12 @@ export default function permissionInnerCmd(pi: ExtensionAPI): void {
return;
}
const service = getPermissionsService();
// Resolve by the live session id, not the start-time snapshot: a
// mid-session id change republishes under the new key and re-emits
// the ready channel, so the dynamic read re-keys onto it.
const service = getPermissionsService(
rootSession.session.getSessionId(),
);
if (!service) {
return;
}