fix(session): cleared session-scoped tool state
Cleared queued tool-choice directives and ACP always decisions after successful logical session transitions. Added new-session and cross-session regression coverage for staged resolves and both ACP always decisions. Fixes #4093
This commit is contained in:
@@ -158,6 +158,11 @@ export class SessionTools {
|
||||
return this.#skillsSettings;
|
||||
}
|
||||
|
||||
/** Drops cached per-session ACP `allow_always`/`reject_always` decisions. */
|
||||
clearAcpPermissionDecisions(): void {
|
||||
this.#acpPermissionDecisions.clear();
|
||||
}
|
||||
|
||||
/** Re-wraps active and mounted tools after the ACP client changes. */
|
||||
refreshAcpPermissionGates(): void {
|
||||
this.#acpPermissionDecisions.clear();
|
||||
|
||||
Reference in New Issue
Block a user