{"version":"2.1.293","anchor":"new-telemetrypermission-names-and-sessionappend","canonical_anchor":"new-telemetrypermission-names-and-sessionappend","heading":"Session append for code-based hooks, and several small permission and sandbox changes","tier":"internal","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.293\/e\/new-telemetrypermission-names-and-sessionappend","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.293","markdown":"### Session append for code-based hooks, and several small permission and sandbox changes\n\nHook code can call session.append next to session.send, and file-write checks, the sandbox and hook reporting get small changes\n\n**What**\n\nA hook is your own code that Claude Code runs at set moments. Several small changes:\n\n- `session.append` is now available to hook code, next to `session.send`.\n\n- A new self-hosted ask-ahead name is on a list of allowed names.\n\n- The file-write permission check now removes one property from a copy of the request before deciding whether to deny it.\n\n- The sandbox, which limits what commands can touch on your machine, gains a way to rename a file without overwriting an existing one.\n\n- A hook that ran somewhere else is now reported as having run elsewhere.\n\n**Why**\n\nThese widen what hooks and self-hosted agents can do.\n\n- Area: Hooks\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}