{"version":"2.1.337","anchor":"hook-additionalcontext-non-strings-dropped","canonical_anchor":"hook-additionalcontext-non-strings-dropped","heading":"Hook additionalContext now keeps only text entries and drops the rest","tier":"notice","area":"Hooks","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/hook-additionalcontext-non-strings-dropped","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Hook additionalContext now keeps only text entries and drops the rest\n\nWhen a hook's additionalContext list contains anything other than text, Claude Code now leaves those entries out and says why\n\n**What**\n\nA hook is a script you set up that Claude Code runs at a set point. A hook can return `additionalContext`, a list of extra text for Claude to read. Claude Code now keeps only the entries in that list that are strings, meaning plain text. Any other kind of value, such as a number or a nested object, is left out.\n\nWhen this happens, Claude Code gives the reason: \"additionalContext takes a list of strings; other values were left out\".\n\n**Why**\n\nBadly formed hook output is now filtered out with a clear message instead of being passed along as it is. If a hook's context seems to go missing, check that every entry in `additionalContext` is a string.\n\n- Area: Hooks\n- Names: `additionalContext`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}