Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.246 ·

Plugins can ask which surface they are running on, and read flags

Plugins can ask whether they run in the desktop app or terminal, and read feature flags.

Use it now Notable New Features
JSON All of v2.1.246
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
PluginsArea: what it touches
New FeaturesKind: in v2.1.246,
What probably matters to youSection of the release
What

Two operations are new to the plugin host: one reports whether the request came from the desktop app or a terminal, and one reads a feature flag value. Separately, a plugin asking for the session's working directory or repository now gets the directory of the call that invoked it rather than the directory the process started in.

Details
  • Neither of the two new operations exists in v2.1.245.
  • The cwd change matters for sessions that have moved directory mid-run, where the process cwd and the live session cwd differ.
Evidence

"session.surface": { run: (t, n) => op.sessionSurface(n.plugin) }

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.246 →

Feedback