orca/src/main/gitlab
Neil 31bfeff01d
fix(gitlab): thread MR search query and surface MR base failures (#6263) (#6591)
Defect 1: the typed GitLab MR search query was dropped before reaching
the API. Thread query?: string end-to-end through the renderer effect,
the source-lookup, the preload/RPC args, and the desktop IPC handlers
(which previously passed a hardcoded undefined), and honor it on both the
glab REST path (&search=) and the cwd-inferred 'glab mr list' fallback.

Defect 2: when MR base resolution failed the renderer silently returned,
leaving baseBranch undefined so the worktree was created off the repo
default branch (origin/master) with no feedback. Surface the failure via
toast and clear stale base state, mirroring the GitHub PR path. Also make
resolveManagedMrBase resilient to an optional compare-base (target branch)
fetch failure: degrade gracefully by dropping compareBaseRef instead of
aborting, so a merged MR with a deleted target ref still resolves to its
valid source-branch base.

Fixes #6263

Co-authored-by: Orca <help@stably.ai>
2026-06-28 18:05:29 -07:00
..
client-mr.test.ts fix(gitlab): thread MR search query and surface MR base failures (#6263) (#6591) 2026-06-28 18:05:29 -07:00
client-work-items.test.ts fix: paginate gitlab work item issues (#4069) 2026-05-31 03:19:16 -07:00
client.test.ts Fix CI test drift after runtime changes (#5655) 2026-06-17 18:04:12 -07:00
client.ts fix(gitlab): thread MR search query and surface MR base failures (#6263) (#6591) 2026-06-28 18:05:29 -07:00
gitlab-preload-args.ts fix(gitlab): thread MR search query and surface MR base failures (#6263) (#6591) 2026-06-28 18:05:29 -07:00
gitlab-project-recents.ts
gitlab-project-ref-resolution.ts Add project Windows runtime selection (#5519) 2026-06-17 16:08:14 -07:00
gl-utils.test.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
gl-utils.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
glab-api-response.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
glab-error-classification.ts Add project Windows runtime selection (#5519) 2026-06-17 16:08:14 -07:00
glab-known-hosts.ts Fix paste ownership, input bounds, and IPC validation 2026-06-19 17:14:55 -07:00
issues.test.ts Add project Windows runtime selection (#5519) 2026-06-17 16:08:14 -07:00
issues.ts Add project Windows runtime selection (#5519) 2026-06-17 16:08:14 -07:00
mappers-workitem.test.ts
mappers.test.ts
mappers.ts Persist and repair target base branch for PR and MR worktrees (#5540) 2026-06-16 15:51:55 -07:00
merge-request-creation-lookup.ts Add project Windows runtime selection (#5519) 2026-06-17 16:08:14 -07:00
merge-request-creation.test.ts Add project Windows runtime selection (#5519) 2026-06-17 16:08:14 -07:00
merge-request-creation.ts Add project Windows runtime selection (#5519) 2026-06-17 16:08:14 -07:00
project-ref-inflight.ts Fix git probe fanout during concurrent refreshes (#4670) 2026-06-04 17:59:09 -07:00
project-ref-parser.test.ts Support GitLab MR unlinking and AI generation in ChecksPanel (#5204) 2026-06-11 20:18:28 -07:00
project-ref-parser.ts Support GitLab MR unlinking and AI generation in ChecksPanel (#5204) 2026-06-11 20:18:28 -07:00
work-item-details.test.ts Add project Windows runtime selection (#5519) 2026-06-17 16:08:14 -07:00
work-item-details.ts Add project Windows runtime selection (#5519) 2026-06-17 16:08:14 -07:00