{"version":"2.1.326","anchor":"new-internal-protocol-fields","canonical_anchor":"new-internal-protocol-fields","heading":"Plan mode entry is recorded for workers, plus new protocol fields","tier":"use","area":"Agents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/new-internal-protocol-fields","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Plan mode entry is recorded for workers, plus new protocol fields\n\nWorkers now record who put a session into plan mode, and the protocol gains new fields for hooks, transcripts, attachments and messages\n\n**Unclear.** It is not known whether any of these options already work for users.\n\n**What**\n\nPlan mode is the mode where Claude proposes a plan before making changes. A worker is the process that runs a session for a remote or SDK client. Claude Code now records how plan mode was entered, and several other protocol pieces were added at the same time.\n\n- When the permission mode changes, `plan_entered_by` is now sent in the worker's metadata.\n\n- When a worker resumes into plan mode, it keeps `planEnteredBy` as `model` if the earlier record says `plan_entered_by` was `model` and the mode was auto.\n\n- `--add-dir`, which adds extra working directories, now also syncs those directories to the worker.\n\n- The hook-callback schema gains a `whenUnanswered` option for `PreToolUse` hooks only (hooks are your own scripts that run at set points). It decides what happens to a tool call that the callbacks leave unanswered for `afterSeconds`, in place of refusing it at the timeout.\n\n- The cloud transcript request gains a `limit` field, from 1 to 1000, defaulting to 200.\n\n- A display fault in a plugin manifest now drops the bad field and notes it, rather than failing validation.\n\n- The message schema gains an input-only `keeps_request_id` field.\n\n- A `no_container` reason code was added for file attachments that arrive without a container to save them in.\n\n- A flag was added for a pending turn that ended on an API error after going past open calls.\n\n**Why**\n\nThese changes matter to programs and hosts built on Claude Code. They can now tell whether Claude or a person switched a session into plan mode, keep that across a resume, and handle the new fields and reason codes.\n\n- Area: Agents\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}