fix(server): forks no longer merge into their upstream repo's project group (#16353)

Fixes #4880. Originally #14639 by @Project516.

Co-authored-by: Project516 <[email protected]>
This commit is contained in:
Theo BrowneandProject516 authored and GitHub committed 2026-10-05 21:02:16 -07:00
1 parent 99db70cf1a
commit 017c9a0eb5
8 files changed
+144 -15

No files matched your search

+4
View File
@@ -12,6 +12,10 @@ An environment keeps its ID across server restarts and endpoint changes. Saved
connections are local to a client profile; the server's identity and state are
not. A repository identity can correlate clones across environments, but never
routes work between them. A project and its threads belong to one environment.
The canonical key follows the `upstream` remote when one exists, so pull request
features target the repository a fork tracks. A fork also reports its own
`origin`, and clients group and label by that, so a fork never collapses into a
checkout of its upstream.
[Environment ID initialization](../../apps/server/src/environment/ServerEnvironment.ts)
must publish a complete ID atomically. Repair of an empty ID file retains a