claude-code - 💡(How to fix) Fix ultraplan remote session executes against wrong repo [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49718Fetched 2026-04-17 08:33:22
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2closed ×1cross-referenced ×1

Approved an /ultraplan remote session from inside one repo (JonFermin/vibecoding, on branch master) and the resulting PR was opened against a completely different private repo on my account

Root Cause

Approved an /ultraplan remote session from inside one repo (JonFermin/vibecoding, on branch master) and the resulting PR was opened against a completely different private repo on my account

RAW_BUFFERClick to expand / collapse

Summary

Approved an /ultraplan remote session from inside one repo (JonFermin/vibecoding, on branch master) and the resulting PR was opened against a completely different private repo on my account

Repro

  1. cd into repo A (vibecoding) — confirmed via git remote -v that origin points to github.com:JonFermin/vibecoding.git.
  2. Run /ultraplan plan - explore the updates to claude code, opus 4.7 capabilites, etc. to improve this repo.
  3. Remote session link is produced: https://claude.ai/code/session_01DirK6JmueWpSDQzdp7SAZ1.
  4. Approve the plan in the web UI.
  5. Remote session runs, opens a PR — but the PR lands on private repo, not on vibecoding.

The task prompt explicitly said "improve this repo," and the session was initiated from within vibecoding, so the target should unambiguously have been vibecoding.

Expected

Remote /ultraplan session should execute against and open the PR on the same repo the session was initiated from (the CWD's git origin).

Actual

PR opened against an unrelated repo on the same GitHub account. No issue was filed, no warning, no indication the target was different from the initiating repo.

Environment

  • Claude Code CLI on Windows 10 (bash)
  • Model: Opus 4.7 (1M context) — claude-opus-4-7[1m]
  • Initiated from: C:\Users\honsf\DEVELOP\vibecoding
  • Session: session_01DirK6JmueWpSDQzdp7SAZ1

Impact

Silently operating on the wrong repo is a significant trust issue for remote/autonomous sessions, if I hadn't noticed, the unrelated repo would have been polluted with an off-topic PR, and on a less obvious mismatch it could overwrite real work.

extent analysis

TL;DR

The most likely fix is to ensure that the Claude Code CLI correctly identifies and targets the intended repository for the /ultraplan remote session.

Guidance

  • Verify that the git remote -v command confirms the correct origin URL for the repository (github.com:JonFermin/vibecoding.git) before initiating the /ultraplan session.
  • Check the documentation for the Claude Code CLI to see if there are any specific options or configurations that need to be set to ensure the correct repository is targeted.
  • Consider filing an issue with the Claude Code CLI developers to report this behavior and request clarification on how the target repository is determined.
  • Review the session link (https://claude.ai/code/session_01DirK6JmueWpSDQzdp7SAZ1) to see if it contains any information that could be used to identify the target repository.

Example

No code snippet is provided as the issue does not involve code, but rather the behavior of the Claude Code CLI.

Notes

The issue may be related to how the Claude Code CLI determines the target repository for the /ultraplan session. Without more information about the internal workings of the CLI, it is difficult to provide a more specific solution.

Recommendation

Apply workaround: Until the issue is resolved, manually verify the target repository for each /ultraplan session to ensure it matches the intended repository. This can be done by checking the PR that is opened after the session is completed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix ultraplan remote session executes against wrong repo [2 comments, 2 participants]