Unclear It is not clear what turns on own-events-only mode or whether it is on by default.
What
Poll 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.
- The
poll_eventhandler rejects every poll event unless the host setCLAUDE_CODE_POLL_EVENTSfor 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. - In remote sessions (
CLAUDE_CODE_REMOTEtrue 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 asown_events_onlyinstead of alwaysflag_disabled, and the debug line gains anownEventsOnly=field.
Why
Embedding 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.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
| `CLAUDE_CODE_REMOTE_SLACK_THREAD_URL` | For a [Claude Tag](https://claude.com/docs/claude-tag/overview) session that belongs to one Slack thread, the link to that thread. Unset for other sessions, and can be unset for a thread session to…self-hosted-environments-configuration see the edit
It is not clear what turns on own-events-only mode or whether it is on by default.
Anthropic's documentation has since written up CLAUDE_CODE_REMOTE, on Customize sessions in self-hosted environments.