GeezerVison is showing github.com — feat(pull-requests): remove the merge head guard by incognitojam · Pull Request #1449 · incognitojam/styal
Conversation
Note Remove the client-read head guard while keeping upstream merge-message pinning and older-client wire compatibility.
Remove the fork's pull request merge head guard following the maintainer's drop decision: agents can push while the panel is open, and the extra refusal gets in the way of merging. A merge or auto-merge request no longer pins GitHub to the commit last read by the client. GitHub still applies its own permissions, rules and queue behavior.
Dependencies before removal, and what changes:
- Web/desktop PR detail actions and shared quick-merge actions sent
expectedHeadSha; the service and GitHub provider forwarded it. Remove those producers and forwarding. A push after the panel loaded no longer causes the fork to refuse a merge or enabling auto-merge.
- The GitHub API checked the caller's head before merging and reread after a refused mutation to produce the special “New commits were pushed” error. Remove that check, error and reread. Remove the guard-specific failure refresh in the web panel and service epoch bump, plus tests that only covered the removed behavior.
- Shared contracts still accept optional
expectedHeadSha from older clients, including store mobile builds, but the server ignores it. Optional detail headSha and its host parsing remain: mobile inline comments, deployment/review flows and other consumers still read it. Mobile has no separate producer of expectedHeadSha in this checkout.
- No dedicated setting or analytics event depends on the guard. No MCP merge tool description or agent guide describes it. The MCP guide staleness field concerns review-guide freshness and stays. Neither the differences guide nor user source-control docs claim this guard; no doc text needs removal. Paid evals are not applicable: no guide, tool description or model-facing schema description changes.
- Remove the retiring ledger entry. The remaining merge-message setting, telemetry, permissions and unrelated maintained features stay.
Keep upstream's head pin when removing agent credits from a freshly read merge message, branch-update head checks, workflow-approval checks and stack head checks. Compared with current upstream 5ccc65be0a2b85bccc3b394a8e9dd4c2f5ecbec3 and the imported merge-message feature (pingdotgg#16192).
Validation: the existing service compatibility scenario fails before removal because the old client's pin reaches the provider, and passes afterward with the pin omitted and squash strategy preserved. The service, GitHub API and shared client-runtime suites pass all 350 scenarios: immediate merge, enabling/disabling auto-merge, queues, permission refusals, already-merged quick actions, and cleaned merge-message pinning are exercised against synthetic host responses. No real pull request was merged or otherwise mutated for evidence.
Real-client verification: all three pull-request e2e scenarios pass against the isolated synthetic GitHub host. After the panel loads, the fixture head moves; one confirmation sends one merge mutation without expectedHeadOid, the host merges it, and the real web client displays Merged. The fake host now applies its expected-head check only when the optional field is supplied, matching GitHub. Search and required/optional check presentation also pass. The bypass ledger invariant now describes the ordinary direct-merge path without promising the retired guard. No real PR was mutated. Native mobile and live-host integration were not exercised.
Written by GPT-6.1 Sol in Codex (styal 🧵).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Upstream divergence
Both sides are compared with upstream at the in-order tip 550c5fa34b. Excludes .repos/ and pnpm-lock.yaml.
| Measure |
Base |
This PR |
Change |
| Upstream files the fork changes |
2,137 |
2,137 |
0 |
| Lines changed in them |
131,412 |
131,243 |
−169 |
| Upstream files the fork removes |
66 |
66 |
0 |
| Fork-only files |
935 |
935 |
0 |
| Fork-only lines |
167,890 |
167,847 |
−43 |
Upstream files whose difference changes (9)
| File |
Change |
Now differs by |
packages/source-control-github/src/server/GitHubPullRequestApi.test.ts |
−56 |
1,735 lines |
packages/source-control-github/src/server/GitHubPullRequestApi.ts |
−50 |
768 lines |
apps/server/src/pullRequest/PullRequestService.test.ts |
−37 |
759 lines |
apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx |
−7 |
341 lines |
packages/contracts/src/pullRequest.ts |
−7 |
96 lines |
apps/server/src/pullRequest/PullRequestService.ts |
−5 |
344 lines |
packages/source-control-github/src/server/GitHubPullRequestProvider.ts |
−3 |
244 lines |
packages/client-runtime/src/state/pullRequests.ts |
−2 |
313 lines |
packages/source-control-core/src/server/PullRequestProvider.ts |
−2 |
87 lines |
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Thread transfer impact
✅ Thread transfer remains within every enforced ceiling.
| Provider |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Codex |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
21.5 KiB |
21.5 KiB |
0 B (0.0%) |
24.4 KiB |
✅ |
| Codex |
Live turn messages |
1 |
1 |
0 (0.0%) |
8 |
✅ |
| Claude |
Total thread wire |
5.0 KiB |
5.0 KiB |
+18 B (+0.4%) |
6.8 KiB |
✅ |
| Claude |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
+18 B (+1.4%) |
2.0 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
21.9 KiB |
21.9 KiB |
+41 B (+0.2%) |
24.4 KiB |
✅ |
| Claude |
Live turn messages |
1 |
2 |
+1 (+100.0%) |
8 |
✅ |
Baseline: dd79efc · PR result: 8e46efd · Source CI: success
Scenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
incognitojam
pushed a commit
that referenced
this pull request
Nov 17, 2026
Co-authored-by: maria-rcks <[email protected]>
Fork adaptation: The fork's regenerated lockfile gives the new package's `@effect/vitest` and `vite-plus` entries the same `msw` peer as every other workspace package, since the fork's lockfile has only that snapshot of them; without it `pnpm install` stops on a missing lockfile entry. No package resolves to a different version than upstream's. The fork's source control providers must answer issue requests, so Cursor Origin takes the shared unsupported issue operations as the other non-GitHub hosts do. The fork's pull request detail has an optional string head SHA (fork #1449), so Origin leaves it out when the host reports none instead of sending null.
(cherry picked from commit 9fcfd4c)
Upstream-PR: 33093
Fork-Feature: github-issue-thread-context
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|