{"version":"2.1.280","anchor":"dead-tooldecisions-re-initialization-removed-from-hook-ask-f","canonical_anchor":"dead-tooldecisions-re-initialization-removed-from-hook-ask-f","heading":"toolDecisions changed from a plain object to a Map","tier":"internal","area":"Permissions","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/dead-tooldecisions-re-initialization-removed-from-hook-ask-f","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### toolDecisions changed from a plain object to a Map\n\nSession tool-permission decisions (toolDecisions) moved from a plain object to a Map, with related cleanup.\n\n**Unclear.** Whether this reset was truly inert or had some subtle effect before removal is not confirmed by the evidence.\n\n**What**\n\n- The session-query context now includes a fresh `toolDecisions: new Map()` alongside the existing `permissionRelays`, for tracking per-session tool permission decisions.\n\n- `toolDecisions` is now read with `.get(toolUseId)` instead of bracket indexing, confirming it moved from a plain object to a Map.\n\n- A line that reset `toolDecisions` to `{}` when a hook's \"ask\" decision was being re-surfaced was removed as dead code now that it's no longer a plain object being reset that way.\n\n**Why**\n\nThis cleans up the internal representation of per-session tool permission decisions and removes now-incorrect reset code left over from the old object-based implementation.\n\n- Area: Permissions\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}