Skip to content

Sign in to plugins from iPhone through one shared sign-in path, and refuse sign-ins that could only finish on 127.0.0.1 (851-4463, 851-4464) - #1469

Merged
dylanplayer merged 3 commits into
mainfrom
codevisor/capon
Nov 24, 2026
Merged

dylanplayer merged 3 commits into
mainfrom
codevisor/capon

Conversation

@dylanplayer

Copy link
Copy Markdown
Member

Plugin sign-in from iPhone now works for plugins that sign in through their own server (Sentry, Cloudflare, Notion, Stripe, custom OAuth MCPs), and a sign-in that could only finish on a machine's 127.0.0.1 callback says why instead of opening a dead page. Closes 851-4463 and 851-4464.

One sign-in path (851-4463)

  • Every place that signs in to a plugin decides where through PluginSignInRoute.resolve: Settings › Plugins, Browse, the plugin's page, plugin links and the chat setup card, on iPhone and Mac.
    • The chosen machine signs in when it is this Mac or signed in to Codevisor Cloud.
    • Otherwise a Mac signs in through its own copy of the plugin.
    • Otherwise the app says the machine isn't signed in to Codevisor Cloud and what to do.
  • "Sign in from your Mac" is gone. Browse and plugin links on iPhone no longer turn sign-in off.

No silent 127.0.0.1 fallback (851-4464)

  • A sign-in started from another device sends crossDevice=1.
  • When that sign-in could only use the machine's 127.0.0.1 callback (no Cloud, the user's own OAuth client, or a server that refuses Cloud's callback), the machine answers 409 with the reason. This covers MCP OAuth and plugin-account OAuth.

Also in this PR

  • On iPhone, Report… and Block Publisher… move into a ••• More menu (ellipsis.circle) at the top right of the plugin sheet and of an installed plugin's page in Settings. Same rules for when they show; Report still confirms with "Report sent", and Block still asks first.
  • A DEBUG-only diagnostic-plugin-link deeplink, so plugin links (universal links a dev build can't claim) can be tested on the simulator.

Tophat (iPhone simulator against a Mac on the dev Cloud, with a fake OAuth MCP)

  • From Settings › Add MCP on iPhone, sign-in ran on the Mac through Cloud, with the Cloud callback in Safari. The plugin ended Signed in and Connected.
  • A plugin whose server accepts only 127.0.0.1 callbacks showed the reason on the iPhone; no Safari page opened.
  • The plugin link and Browse sheets both show "Sign in with Sentry".
  • On the Mac, the same 127.0.0.1-only plugin still signs in through the Mac's own callback.

🤖 Generated with Claude Code

dylanplayer and others added 3 commits November 23, 2026 18:37
…efuse loopback-only sign-ins started from another device (851-4463, 851-4464)

Since #1462 relays plugin sign-in callbacks through Codevisor Cloud, the
phone can start sign-in on any machine signed in to Cloud. Every place that
signs in to a plugin now decides where through one route
(PluginSignInRoute.resolve): Settings › Plugins, Browse, the plugin's page,
plugin links, and the chat card, on iPhone and Mac.

- Sign-in runs on the chosen machine when it is this Mac or signed in to
  Cloud. Otherwise a Mac signs in through its own copy of the plugin, and
  where there is no Mac the app says the machine isn't signed in to Cloud
  and what to do. "Sign in from your Mac" is gone.
- Browse and plugin links on iPhone no longer turn sign-in off; they use the
  same connect host as the Mac.
- A sign-in started from another device tells the machine
  (crossDevice=1). When that sign-in could only finish on the machine's
  127.0.0.1 callback (no Cloud, the user's own OAuth client, or a server
  that refuses Cloud's callback), the machine answers 409 with the reason
  instead of a link the browser can't finish. This covers MCP OAuth and
  plugin-account OAuth (851-4464).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he simulator (851-4463)

Plugin links are universal links for codevisor.dev, which a development
build's bundle id can't claim, so the simulator opens them in Safari. In
DEBUG builds, codevisor-dev-…://diagnostic-plugin-link?url=<link> hands the
link to the same handler a tapped universal link reaches.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ugin sheet and plugin page

The iPhone plugin connect sheet and an installed plugin's page in
Settings › Plugins now put Report… and Block Publisher… in a More menu
(ellipsis.circle) at the top right, instead of a section in the body. The
connect sheet keeps Cancel at the top left; the plugin page keeps Remove
Plugin in its body. The menu shows under the same rules as before: not for
first-party plugins, and on the plugin page not for built-in tools. Report
still opens the report sheet with its "Report sent" confirmation, and Block
still asks first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dylanplayer
dylanplayer merged commit 3af9b4b into main Nov 24, 2026
@dylanplayer
dylanplayer deleted the codevisor/capon branch November 24, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant