{"version":"2.1.292","anchor":"poll-event-now-needs-the-host-to-set-claude-code-poll-events","canonical_anchor":"poll-event-now-needs-the-host-to-set-claude-code-poll-events","heading":"Poll events now require the host to set CLAUDE_CODE_POLL_EVENTS","tier":"use","area":"SDK","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.292\/e\/poll-event-now-needs-the-host-to-set-claude-code-poll-events","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.292","markdown":"### Poll events now require the host to set CLAUDE_CODE_POLL_EVENTS\n\nSessions now reject every poll event unless the host set `CLAUDE_CODE_POLL_EVENTS`, and own-events-only remote sessions stop advertising session notices\n\n**What**\n\nPoll events are messages a host program, the program running Claude Code, pushes into a session. A session now accepts them only from a host that opted in.\n\n- The `poll_event` handler rejects every poll event unless the host set `CLAUDE_CODE_POLL_EVENTS` for the session. The host gets an error reply saying the session takes no poll events from its host because the variable was not set. This check runs before the existing check for the auto permission mode.\n\n- In remote sessions (`CLAUDE_CODE_REMOTE` true and not interactive), session notices are no longer advertised when the poll channel is active and own-events-only mode is on. The skip reason is recorded as `own_events_only` instead of always `flag_disabled`, and the debug line gains an `ownEventsOnly=` field.\n\n**Why**\n\nEmbedding hosts that relied on sending poll events without setting `CLAUDE_CODE_POLL_EVENTS` will now get errors until they set it. Remote sessions in own-events-only mode stop receiving session notices.\n\n- Area: SDK\n- Names: `CLAUDE_CODE_POLL_EVENTS`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}