Skip to content

feat(dsh): add the Claude Desktop Code handoff adapter - #2654

Merged
hidb4ai merged 1 commit into
codex/dsh-handoff-claude-clifrom
codex/dsh-handoff-claude-desktop
Nov 15, 2026
Merged

hidb4ai merged 1 commit into
codex/dsh-handoff-claude-clifrom
codex/dsh-handoff-claude-desktop

Conversation

@knqiufan

@knqiufan knqiufan commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Which issue or RFC does this PR close?

Refs #2514 and RFC #2528. This PR builds on #2653 for shared Claude doctor and setup contracts.

Rationale for this change

Claude Desktop Code and Claude Code CLI can use different runtime settings. A working CLI or a registered claude:// handler cannot establish the next Desktop session's effective Server, Scope or package access.

What changes are included in this PR?

  • Detect the macOS Claude application bundle, executable, version, and Code link handler. Add a separate adapter for Desktop's integration readiness, effective workspace, and exact package readability.
  • Reuse the shared Claude doctor for an explicitly chosen configuration. Still require independent Desktop runtime evidence for launch. Direct installation and repair to the Desktop plugin UI instead of writing settings through an unverified CLI profile.
  • Construct the draft intent only for the qualified application version and the matching delivery. Document the supported checks and the limits of inspecting application settings before a session exists.

Are there any user-facing changes?

The installation screen can report the installed Desktop version. Native launch remains disabled by default until there is a supported way to verify the actual receiving environment before launch.

How was this change tested?

  • From the DSH plugin directory, pnpm exec vitest run --maxWorkers=1 tests/claude-desktop.spec.ts — 4 passed, including handler detection and keeping CLI readiness separate from Desktop readiness.
  • In the isolated DSH Desktop flow, actual Claude Desktop Code received delivery 1fea, followed the added read-only request, returned the README heading and DESKTOP-486, called Continue and ACK, and DSH verified the receipt. The source used an isolated preflight fixture: this verifies real receiving and readback, not production preflight.

AI usage statement

OpenAI Codex assisted with implementation, tests, local validation, and preparing this PR.

@knqiufan
knqiufan force-pushed the codex/dsh-handoff-claude-cli branch from 72b1b88 to a75a5c2 Compare November 14, 2026 15:25
@knqiufan
knqiufan force-pushed the codex/dsh-handoff-claude-desktop branch from 6b2a054 to ff111fc Compare November 14, 2026 15:25
@knqiufan knqiufan changed the title DSH handoff: add the Claude Desktop Code adapter feat(dsh): add the Claude Desktop Code handoff adapter Nov 14, 2026
@knqiufan
knqiufan marked this pull request as ready for review November 14, 2026 15:32

@hireview001 hireview001 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hidb4ai
hidb4ai merged commit a6d9b18 into codex/dsh-handoff-claude-cli Nov 15, 2026
1 check passed
@hidb4ai hidb4ai added the 1.5.2 v1.5.2 release tracking label Nov 15, 2026
@PsiACE
PsiACE deleted the codex/dsh-handoff-claude-desktop branch November 16, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.5.2 v1.5.2 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants