Repository navigation
fix(issues): send fork project issues to the fork by default - #755
Merged
Merged
Conversation
A project can carry the upstream repository as its canonical identity even when developers work in the fork. Select the recorded origin for issue operations and share that choice with web and mobile issue navigation. Implemented with GPT-6.2 Sol (xhigh), Codex through LastCode. Carry-Group: incubator Carry-Observation: LastCode treats the checkout origin as the default issue repository even when the project identity is keyed to upstream.
A fork can use a self-hosted provider or a different web address from its SSH remote. Reuse project discovery for the origin and pass that result to the shared issue router. Implemented with GPT-6.2 Sol (xhigh), Codex through LastCode. Carry-Group: incubator Carry-Observation: The issue repository needs independent origin provider and web-host refinement for self-hosted forks.
Keep distinct web remotes even when the normalized repository keys agree. Resolve issue URLs through a project on the exact web authority and use the discovered web path for a mounted Forgejo fork. Implemented with GPT-6.2 Sol (xhigh), Codex through LastCode. Carry-Group: incubator Carry-Observation: An issue URL names the exact host and port of its tracker.
Separate HTTP and HTTPS issue servers and keep the port on ordinary self-hosted repositories. Pass the selected Forgejo origin through credential selection. Implemented with GPT-6.2 Sol (xhigh), Codex through LastCode. Carry-Group: incubator Carry-Observation: Exact issue targets include the scheme and effective web port.
Remove the tracker transport changes. Keep origin discovery and decline an issue scope when distinct web endpoints share one repository key. Cover create, comment, and unavailable origins with offline fixtures. Implemented with GPT-6.2 Sol (xhigh), Codex through LastCode. Carry-Group: incubator Carry-Observation: Issue routing has no safe default when web remotes share a normalized repository key.
Keep a local-origin marker when discovery filters out local paths. The issue selector refuses the parent scope, without putting the local remote path in the project identity. Implemented with GPT-6.2 Sol (xhigh), Codex through LastCode. Carry-Group: incubator Carry-Observation: A configured local origin must not be treated as an absent origin for issue writes.
lastobelus
marked this pull request as ready for review
November 19, 2026 22:40
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Owner
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When a fork project records upstream as its canonical repository and the fork as
origin, the issue tools used upstream for reads and writes. A defaultcreate_issuepublished an issue to the public parent tracker. Web and mobile also listed upstream issues and treated upstream links as belonging to the fork project.Fix
The fork-owned code selects the issue repository and supplies two small server hooks.
originand the shared forge definitions.originand publishes its resolved provider and web URL. When two HTTP remotes use different web addresses but collapse to the same repository key, the project reports no Git-host issue scope.packages/client-runtimecalls the same selector for links, filter scopes, and list errors.Why the selector skips GitHub's PR resolver
GitHub's PR resolver honors PR-specific defaults such as
GH_REPOandgh repo set-default. The issue selector reads project origin data and forge rules directly, so those PR settings cannot redirect issue writes. This PR was opened withlastobelus/lastCodeas the explicit target because the checkout'sgh-resolvedmark points upstream.Behavior in a fork project
create_issue,comment_on_issue,set_issue_stateread_issue,list_issueslink_issue,unlink_issue,list_thread_issuesEdge cases
originkeeps its existing target.Upstream-owned files (7)
apps/server/src/issue/IssueService.tsapps/server/src/project/RepositoryIdentityResolver.tsapps/server/src/server.tspackages/client-runtime/src/issueLinks.tspackages/client-runtime/src/issueList.tspackages/contracts/src/environment.tspackages/source-control-core/src/shared/definition.tsVerification
lastobelus/lastCodeas its scope. The browser did only GitHub issue reads and made no writes.lastcode/main.Local review: 4 rounds with gpt-6.1-terra (xhigh), not clean. The last finding was fixed and reproduced with a failing-first local Git fixture. Opus reviewed the scope and recommended cutting the broader issue transport changes, which are follow-up work.
Implemented with GPT-6.2 Sol (xhigh), Codex through LastCode.