Repository navigation
fix(native): PR merges respect stacks and project defaults; live refreshes and review follow-ups - #46
Merged
Merged
Conversation
…es, state filter, query and GitCafe parity
… writes, live refreshes, safer confirmations
This was referenced Nov 2, 2026
Open
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.
Fixes the review findings on the pull requests page (#36), two of which let merges reach real PRs wrongly.
Merges (P1)
current pick → project default → last picklikeresolvePullRequestMergeMethod. The project default comes from server settings (projectSettingsOverrides[p].pullRequestMergeMethod, null included, else the environment's). Applies to quick merges too.capabilities.stacks && stackActions), the detail readspullRequests.stack: single merges wait ("Checking stack membership…" / "Couldn't check stack membership" + Retry stack lookup), and a stacked PR shows Merge stack instead. That sendsstackNumber+expectedStackHeadsfor the unmerged layers through this one (PullRequestStackMenu), and refuses when a layer is closed, a draft, or has no head. Every single merge (quick or detail) re-reads the detail fresh and refuses if a stack exists ("Open this pull request to merge its stack."), as client-runtimerunActiondoes.actionSuccessLabels("Merge requested") and failuresactionFailureLabels. The detail shows no success toasts, like the web.Freshness and lists (P2)
pullRequests.subscribeRefresheswhile the page is open and connected. A new epoch re-reads the list (rows added by cursors are kept),listStatsand the open detail. Reopening the page or reconnecting re-reads both.pullRequests.invalidate({ reference }). Update-branch and approve-workflows refresh from the host afterwards.listStatsgoes out in batches of 500 for every row./pulls/<n>).git.cafeandstaging.git.cafeclaim/pull(s)/<n>first, and their links are canonicalized.P3 / risks
\s(U+FEFF separates, U+0085 does not); a quoted\r/U+2028/U+2029 keeps the token as text; bounds count UTF-16 units likeslice. The source's limit isMAX_QUALIFIER_LENGTH = 200; the 100 limit belongs tofilterOptionsqueries, which native doesn't send. The listqueryis now cut to 200 UTF-16 units, so emoji can't exceed the contract.Deviations
Evidence
merge_method_prefers_current_then_project_default_then_last_selected,a_stack_owns_merging_where_the_host_runs_stack_actions,stack_merge_scopes_the_layers_through_this_one(payload),project_default_merge_method_reads_the_override_then_the_environment,stats_are_read_in_batches_of_five_hundred,list_query_stays_within_the_contract_in_utf16_units,invalidate_names_the_pull_request,shown_groups_drop_rows_an_action_moved_out_of_the_state_filter,separators_are_javascripts_whitespace,a_quoted_line_break_keeps_the_token_as_text,bounds_count_utf16_units_as_slice_does,gitcafe_resolves_bare_numbers_and_claims_its_own_hosts. No mutation was run against any server.pr_probe --state all):--pull-requests/--pull-request <n> [--pull-request-tab code]flags:cargo test --workspace, clippy-D warnings(with and without--features snapshot), gen-theme--check, parity sync test, conformance--check.Opus 5.5 via Claude Code (worker W10b).