mirror of
https://github.com/SikongJueluo/pi-extensions.git
synced 2026-10-05 20:02:55 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user