You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
я почему-то поулчаю такую ошибку и не отрабатывается план #417
Root cause looks like a repo/PR context mismatch in the post-push plan sync path.
In my workspace post-push first found the open PR correctly:
[post-push-pr] Open PR: https://github.com/ProverCoderAI/effect-ts-skills/pull/7
Then /opt/docker-git/hooks/plan-to-git-sync passed only the PR number to the binary:
plan-to-git sync --pr "$pr_number"
plan-to-git resolves the target repo from git remote get-url origin. In this checkout origin was the fork:
skulidropek/effect-ts-skills
but PR #7 exists in the base repo:
ProverCoderAI/effect-ts-skills#7
So the comment API call effectively went to the fork repo issue endpoint for #7, where that PR/issue does not exist, which explains the GitHub 404 Not Found.
Local fix that removed the error: wrap the plan-to-git import-* and sync calls in post-push with a scoped Git URL rewrite so only that subprocess sees origin as the base repo (upstream when present), without changing .git/config or the real origin remote.
I applied this around the whole plan-to-git block in /opt/docker-git/hooks/post-push:
plan-to-git import-codex --no-sync
plan-to-git import-claude --no-sync
/opt/docker-git/hooks/plan-to-git-sync
fallback plan-to-git sync
After that, git push completed with exit code 0 and no longer printed gh api PR comment failed: gh: Not Found (HTTP 404). The actual remote config stayed unchanged:
Caveat: this fixes the post-push path. If plan-to-git-sync is also invoked directly from live agent hooks, the same scoped rewrite may need to live in plan-to-git-sync itself or plan-to-git should accept an explicit --repo <owner/repo> together with --pr.
The automated solution draft encountered an error:
The solver stopped before creating a pull request.
Reason: Repository setup halted - fork divergence requires user decision
What you can do
If the fork's default branch can be overwritten safely, rerun with --allow-fork-divergence-resolution-using-force-push-with-lease to allow a guarded force-with-lease sync.
If the fork has commits you need to preserve, resolve the divergence manually, then rerun the solver.
If this requires elevated Hive Mind access, ask a Hive Mind administrator to handle the affected fork or repository.
Administrator-only CLI details, if any, are printed in the solver terminal log rather than in this GitHub comment.
Activity
skulidropek commentedon Jun 17, 2026
Root cause looks like a repo/PR context mismatch in the post-push plan sync path.
In my workspace
post-pushfirst found the open PR correctly:Then
/opt/docker-git/hooks/plan-to-git-syncpassed only the PR number to the binary:plan-to-git sync --pr "$pr_number"plan-to-gitresolves the target repo fromgit remote get-url origin. In this checkoutoriginwas the fork:but PR
#7exists in the base repo:So the comment API call effectively went to the fork repo issue endpoint for
#7, where that PR/issue does not exist, which explains the GitHub404 Not Found.Local fix that removed the error: wrap the
plan-to-git import-*and sync calls inpost-pushwith a scoped Git URL rewrite so only that subprocess seesoriginas the base repo (upstreamwhen present), without changing.git/configor the realoriginremote.Shape of the fix:
I applied this around the whole
plan-to-gitblock in/opt/docker-git/hooks/post-push:plan-to-git import-codex --no-syncplan-to-git import-claude --no-sync/opt/docker-git/hooks/plan-to-git-syncplan-to-git syncAfter that,
git pushcompleted with exit code 0 and no longer printedgh api PR comment failed: gh: Not Found (HTTP 404). The actual remote config stayed unchanged:Caveat: this fixes the post-push path. If
plan-to-git-syncis also invoked directly from live agent hooks, the same scoped rewrite may need to live inplan-to-git-syncitself orplan-to-gitshould accept an explicit--repo <owner/repo>together with--pr.konard commentedon Jun 17, 2026
🚨 Solution Draft Failed
The automated solution draft encountered an error:
What you can do
--allow-fork-divergence-resolution-using-force-push-with-leaseto allow a guarded force-with-lease sync.Administrator-only CLI details, if any, are printed in the solver terminal log rather than in this GitHub comment.
🤖 Models used:
opusclaude-opus-4-8)Click to expand failure log (43KB)
Now working session is ended, feel free to review and add any feedback on the solution draft.