claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] iOS app never attaches a `mobile` surface for a Mac session, so plugin backdrops and UI don't draw

Open neverblinks opened this issue 2 weeks ago • 1 comments

What's Wrong?

A session runs on a Mac in the Claude desktop app's Code tab. I open the same session in the Claude iOS app. The plugin API docs say backdrops ($.theme.set with a backdrop scene, drawn through ui.render on Backdrop) are "drawn behind the conversation by the desktop and mobile apps alone", and list the mobile surface as one a plugin draws into. In practice the iPhone shows no backdrop and none of the plugin's UI. A card placed with $.ui.place doesn't appear either, only the command's text reply.

A minimal probe plugin (snippet below) shows why. It logs every session.attach/session.detach (with e.surface) and every ui.render request for Backdrop (with e.surface). With the session open on both the Mac and the iPhone, /probe typed from the iPhone printed attached now: desktop. The only log line was the Mac's desktop asking for the backdrop. The iPhone never attached as mobile (or as anything else) and never asked for the backdrop.

What Should Happen?

Opening a session in the iOS app attaches a mobile surface, so plugin backdrops and UI draw there as documented. If that isn't supported yet for sessions running on a Mac, the docs should say so.

Steps to Reproduce

  1. Install a plugin that sets a backdrop, plus the probe plugin below.
  2. Start a session in the desktop app's Code tab on a Mac.
  3. Open the same session in the iOS app.
  4. Run /probe from the phone.
import type { Register } from 'claude-code'
const log: string[] = []
export const register: Register = on => {
  on('session.start', async ($, e, next) => { await $.command.register({ name: 'probe', description: 'surfaces' }); return next(e) })
  on('session.attach', async ($, e, next) => { log.push(`attach ${e.surface}`); return next(e) })
  on('session.detach', async ($, e, next) => { log.push(`detach ${e.surface}`); return next(e) })
  on('ui.render', { component: 'Backdrop' }, async ($, e, next) => { log.push(`Backdrop asked by ${e.surface}`); return next(e) })
  on('command.run', { command: 'probe' }, async ($) => ({ text: [`attached now: ${(await $.session.surfaces()).join(', ') || 'none'}`, ...log].join('\n') }))
}

Environment

  • Claude iOS app 1.261113.19 (43547795780)
  • Claude desktop app 5.11492.5
  • Claude Code engine 2.1.325
  • macOS 27.2.1

Related: #99217 and #103763 (plugin UI not drawn on phone clients of Remote Control sessions), #108580 (desktop app not attaching as a surface).

neverblinks avatar Nov 18 '26 02:11 neverblinks

Closing as a duplicate of #99217 (and the feature request #103763): Remote Control viewers never attach as a surface. The details from this report are added there.

neverblinks avatar Nov 18 '26 03:11 neverblinks