Skip to content

Remote branch delete, Files undo, Antigravity, Cursor model picker and provider Stop fixes (#397–#418) - #420

Merged
mubeda merged 287 commits into
mainfrom
claude/backlog-triage-planning-pr-b5ee7f
Nov 24, 2026
Merged

mubeda merged 287 commits into
mainfrom
claude/backlog-triage-planning-pr-b5ee7f

Conversation

@mubeda

@mubeda mubeda commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

One batch for the backlog issues #397–#418 and the follow-ups found while fixing them.

What changes

Git Manager and Source Control

Files editor

Desktop

Antigravity (#399)

  • AI terminal and chat over the CLI's ACP mode, model and effort list, and an opt-in usage item in the agent status bar.
  • BiBCode never answers a permission request by itself. Full access uses the CLI's own auto mode, auto-accept-edits uses accept-edits, and approval-required uses default; each mode is confirmed by the CLI.
  • The settings card states Google's written position: the Antigravity FAQ says tools that wrap the CLI are not supported on consumer plans, and an API key or an enterprise plan is the officially supported route. A disabled account gets its own error, and the handshake names BiBCode at its real version.

Cursor (#416)

  • BiBCode asks the CLI for its parameterized model picker, so every model and option the CLI lists can be chosen (for example Grok 4.7 Low or High Fast), and it sends only values the session advertises. Older CLIs keep the bracketed fallback; saved bracketed selections still open.
  • A turn that ends because the user stopped it ends once and is never resent.
  • After 5 minutes of silence BiBCode shows a notice (sign-in or an MCP server that is not responding) and keeps waiting.

Provider starts and Stop (all providers)

  • A slow start shows a notice after 60 s (Cursor, Antigravity) or 120 s (others), naming the provider's mcp list check, and keeps waiting. Stop, closing the session, deleting the thread and shutdown end a start that hangs; a stopped start is settled, never resent, and not shown as an error.
  • Removing one message from the queue stops only that message's start. A message dismissed after it was frozen for sending is not sent.
  • A late Stop that names a turn which already ended is decided once, when the command is committed: it is answered as done, reaches no provider, expires no requests, does not hold the queue and does not touch compaction. Antigravity also ignores a Stop for a turn id that is not its active turn.

Verification

  • Full local gate on the final commit: cargo fmt --all --check, Clippy for server and desktop with -D warnings, server lib tests (6398 passed) and integration tests, desktop tests (578 passed), vp check, vp run typecheck, vp run check:contracts, vp test run scripts. A first gate run failed open_pull_request_lookup_tests because of a stale local build; the same commit passed after a clean rebuild and in a fresh worktree.
  • Packaged UI, native input, Files undo suite: Linux 34/34; Windows 51/51 in 5 of 7 full runs (see known limits); Windows plain 10/10; macOS Files undo, preview cells and the Desktop: once a preview browser has opened, the app can no longer find its main window #418 cell; the [Bug]: Linux desktop: WebKitGTK compositor hangs the Intel GPU and ends the desktop session #411/Linux desktop: a bibcode:// link cannot start the app from an extracted AppDir #412 AppImage cells on Hyprland.
  • Live: Antigravity model list, levels and approvals; Cursor through BiBCode's ACP runtime on Grok 4.7 Low (reply, Stop ends the turn once, no leftover processes, settings restored).
  • Reviews: Codex and the advisor on every fix round, including the final Windows focus change.
  • CI: full run with the macOS rows green on the head commit. Its first attempt hit a race in two send-requests stream tests (a send could land before the stream subscribed and appear only in the snapshot); the tests now wait for the snapshot. A probe that delays the subscription failed the old tests at CI's line and passes the new ones.

Known limits

  • A hung provider start still blocks other threads' commands until that thread is stopped (already on main; the notice names the thread). A draft design for starting providers off the shared queue is not part of this PR.
  • Stop cannot cancel a hung OpenCode create step yet.
  • A Stop that lands after the final send check but before the provider receives the prompt still sends it; steered messages have no send check.
  • The late-Stop decision reads the projected session. In the short window before a new turn is projected, a Stop for the previous turn can still reach the provider, and a Stop for the new turn can be answered without reaching it.
  • Cursor option writes are not revalidated for every acknowledgement shape; the 2026.11.22 CLI was not seen to produce the problem shapes.
  • Windows native input: "menu: undo in the Link URL field stays in the field" failed in 2 of 7 full runs. The field's own undo history split the typed text into two steps. It never failed in 10 runs of the Link cells alone, and the cause is not yet known.
  • Windows focus return: a preview hide queued while BiBCode is in the background can still call focus on the main webview. The E2E focus check covers destroying the preview webview, not the normal tab-close hide path.
  • macOS focus return after closing a preview was not measured and is unchanged.
  • Antigravity terms for third-party clients on consumer plans are unsettled (FAQ vs forum); no official appeal link is shown yet.

Closes #397, closes #398, closes #399, closes #400, closes #401, closes #402, closes #403, closes #404, closes #405, closes #406, closes #407, closes #408, closes #409, closes #410, closes #411, closes #412, closes #413, closes #414, closes #415, closes #416, closes #417, closes #418

🤖 Generated with Claude Code

mubeda and others added 30 commits November 20, 2026 11:30
…redo

With custom Edit items that keep their accelerators, a real chord could both
run the menu action and reach the editor as a keydown. Two typed steps and one
undo now show whether exactly one step leaves. Independent edits in the file
and its line comment show which history moved, and the composer and a plain
textarea are measured for redo as well as undo.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The macOS Edit menu's Undo and Redo must carry their own ids and the
standard accelerators and map to a routed action, so the host can send them
to the page. The test does not compile until those items exist.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A remote that advertises HEAD without a symref (a detached HEAD) has a
default the check cannot name, and the delete went ahead. It is now
refused as remote-default-unknown; a remote with no HEAD at all still has
no default to protect. A local delete whose remote branch is gone now
says to clear its remote option, since fetching cannot help, and the MCP
reference says what isDefault means on a remote row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tory

The predefined items took Cmd+Z before the page saw it and sent undo: to
WebKit, whose own undo never holds the Files editors' edits, so nothing
moved. Custom items with the same accelerators now send edit-undo or
edit-redo to the main webview when its WKWebView holds the key window's first
responder, and otherwise send undo: or redo: up the responder chain as before,
so native panels and the preview webview keep their undo. Windows and Linux
keep the predefined items, where the chords already reach the page.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…submits

When the remote pre-check of a local delete with its remote needed a
sign-in, the resume deleted only the remote branch. A second submission
while the sign-in was pending could race the first. These cases fail
before the fix (#397 review findings 5 and 6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A sign-in raised by the remote check before a local delete resumed only
the remote delete, so the local branch stayed while the dialog closed.
After that resume succeeds, the toolbar now deletes the local branch when
the refs still list it, and closes the dialog only when both are done. A
push that failed after the local delete still resumes the remote only.
While a sign-in is pending, the dialog's submit is off with the reason
"Finish or cancel the sign-in first.", so an offer stays bound to the
submission that raised it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new built-in driver `antigravity` joins both settings readers, the
patch validation, the inventory roster and the contracts, disabled by
default with `agy` as its binary. The roster used to fall back to enabled
for any driver missing from raw settings, which would have probed a
disabled Antigravity, so it now takes the fallback from the built-in
defaults table. The Rust and contracts labels read "Antigravity", and
`agy` joins the hermetic guard and the shared test roster, so no test
can start the real CLI. The contract fixtures are regenerated.

Refs #399

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pitalization

The source editor joins adjacent typing into one undo step whatever the
pause, so the two-step case now types a new line between its steps. macOS
capitalized a lowercase word at the start of a field as its own step when a
menu opened, so the text-field cases type a capitalized word.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The rebuilt app passes all 38 packaged cases with real keystrokes and Edit
menu clicks, including one undo after two steps and the comment field. The
Linux Edit menu cells are recorded as N against R5 and D10.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The hooks subscribe once, ignore other menu actions, and stop routing after
unmount. The design note now matches the build: focus is matched by
containment in a Files region plus editable text, and it lists which packaged
cases ran and which did not.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…esign

The sources, the facts intro, the risk and the judgment still said that
nothing had been run, while the same note records two live handshakes
and one real turn. The status line now says the post-review revisions
are unreviewed, the task names map to Tasks 3.6 to 3.10, and the
maintenance row warns that a disabled instance's binary is still
resolved, so test settings must pin it.

Refs #399

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In the Linux desktop app a plain input or textarea gets the Ctrl+Z keydown
but WebKitGTK has no undo binding for it, and the GTK Edit menu has no Undo
item. These cases ask for an uncancelled Ctrl+Z, Shift+Ctrl+Z or Ctrl+Y in
an input or textarea to run the native undo or redo, on Linux only, and for
editable text, cancelled chords and other modifiers to be left alone. They
fail until textFieldHistoryChord exists.

Refs #408

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
WebKitGTK keeps the undo entry of a typed input or textarea but binds no key
to it, and the GTK Edit menu has no Undo item to supply one, so Ctrl+Z did
nothing there. On the Linux desktop a bubble-phase document listener now runs
the native undo or redo for an uncancelled Ctrl+Z, Shift+Ctrl+Z or Ctrl+Y in
an input or textarea. The Files editors and the composer cancel their own
chords first and are editable text anyway, and xterm stops Ctrl+Z before it
bubbles, so the shell keeps it. The packaged terminal cell now asserts that.

Closes #408

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…codegraph

The packaged test app resolves its maintained tool, codegraph, on PATH and
looks up its latest version online, so a lab machine with CodeGraph
installed showed an update toast from the real tool. These cases ask the
fixture for a codegraph shim ahead of the machine's PATH that logs every
start, for update checks to be off, and for a check that fails when the log
shows no fixture start. They fail until the fixture provides them.

Refs #409

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The packaged test app probed the machine's own codegraph on PATH and looked
up its latest version online, so a lab with CodeGraph installed showed an
update toast. The fixture now puts a codegraph shim in the provider shim
directory, which leads the PATH the app inherits; the shim logs each start to
tool-probes.log in the artifact directory and answers the version probe.
Update checks are off in the fixture settings, so no provider or tool looks
up a latest version. Before the first test the run fails if the log shows no
fixture probe, which is what a real codegraph answering first looks like.

Closes #409

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Review found that the menu listener kept one document-wide composing flag,
cleared only by compositionend. An editor removed mid-composition left the
flag set, so the next Files editor fell through to the native undo. This
case reproduces that and fails until the listener ties the composition to
its element.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Part 1 of Task 3.9. Terminal argv comes only from the saved session default;
the Settings card is disabled by default with a "Chat preview" badge.
Whole web unit project and tsc pass; vp check and fail-proofs not run yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The listener kept one composing flag that only compositionend cleared, so an
editor removed mid-composition left Files undo on the native path for the
next editor. The listener now remembers the element the composition started
in and counts it only while that element is connected and focused.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
On macOS Cmd+Z never reaches the page; the Edit menu routes it, and with the
terminal focused it runs the native undo once, as the predefined item did.
Windows and Linux still require that the shell gets Ctrl+Z and the page runs
no undo.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The fixture names no Antigravity executable, so maintenance would resolve an
agy from the inherited PATH although the instance is disabled. This case asks
for a disabled instance pinned to an absent absolute path, like the other
providers, and fails until the fixture sets it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The packaged test fixture now names a disabled Antigravity instance with an
absolute path that does not exist, as it does for every other provider, so
provider maintenance never resolves an agy from the PATH it inherits.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Linux text-field undo chords were ticketed as #408 for this PR. The
design note states the Linux desktop rule and why it leaves editors and the
terminal alone, and the diagnosis marks the textarea cell as fixed there.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
vp check flagged the line wrapping of the tests added in the previous commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ation

The menu, the composer thinking levels, plan mode and the chat reviewer
already work from the provider snapshot, so tests pin them for Antigravity,
including one ChatView test from an inventory snapshot through the menu to
the terminal-open request. The text-generation fallback took the first
enabled entry, so a ready Antigravity entry with no models listed first
produced an empty model. A usable provider after it now wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Nov 23, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 706c61007c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

mubeda and others added 23 commits November 23, 2026 13:35
…urn alone

The driver passes the requested turn id to the runtime, which ignores it
when it is not the active turn, as the Cursor driver does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The truncated-settings test wrote an unquoted Windows path into
  .git/config, where Git reads each backslash as an escape. Write it
  with forward slashes.
- The resumed-delete test passed a canonical \\?\ path to
  `git worktree add`. Strip the prefix with without_verbatim_prefix, as
  the other fixtures do. Product worktree creation already strips it
  through display_path.
- The Windows ACP fixture advertised the model as currentValue, which
  counts as a reversible default, so switching to "default" succeeded
  there. Advertise it as an option, as the Unix fixture does.
- portable-pty lowercases environment keys on Windows, so the PTY Debug
  test expects the lowercased key there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A delayed thread.turn.interrupt naming a finished turn expired every open
request on the thread and held its queue, so the running turn's approval
vanished while its provider, which ignores a Stop for a non-active turn,
kept waiting for the answer.

An interrupt with a turn id now expires only the requests recorded for
that turn, and a request with no turn only while the named turn is the
session's active turn. It skips the queue hold when a different turn is
active. A turnless interrupt and thread.session.stop are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
776ebd6 matched an interrupt's turn id against each request's recorded
turn. Request turn ids do not always equal the turn Stop names: a Codex
child agent asks under its own turn, and OpenCode keeps the turn of a
request asked before a resume. Stopping the running turn left those
approval cards open. A late Stop also still reached the Claude, OpenCode
and Grok drivers, which cancelled the next turn, and still marked a
running compaction stop-requested, so its success settled interrupted.

One rule replaces the per-request filter: an interrupt is stale when it
names a turn and the session's active turn is a different one. A stale
interrupt expires no request, holds no queue and leaves the compaction
alone, and the supervisor answers it without calling the driver, for
every provider. Any other interrupt behaves as before 776ebd6 and
expires every open request on the thread. The Cursor and Antigravity
runtime checks stay as defense in depth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ndo in its fields

On Linux a preview webview takes GTK keyboard focus when it is created, and
hiding or closing it left the main window with no focus widget, so a
keyboard-only user typed into nothing until a click. Before a preview hides or
closes, the host now hands focus back to the main webview if the preview held
it. macOS and Windows are unchanged.

WebKitGTK binds no key to a text field's undo. The #408 handler that supplies
Ctrl+Z, Shift+Ctrl+Z and Ctrl+Y lives in the main app document, so preview
pages never had it. A Linux-only initialization script now gives preview pages
the same chords for inputs and textareas.

The packaged undo spec's native cells on Linux first click their target
natively, as a person does, so they no longer depend on an earlier cell's
focus. The paint cell records whether closing the preview returns focus and
asserts it on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ow without one

Moving the focused preview into the overlay layer can already have dropped its
GTK focus, so the preview's own focus flag was false at close and nothing was
restored. The check now reads the window's focus widget: unless another shown
webview holds it, the main webview takes focus back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing it

The editor remounts when Files shows again and shows its text before the
toolbar learns its history, so the preview undo cell sometimes read Undo as
disabled on Linux (seen once in three probe runs). The read now waits for the
undo or redo step both callers expect; a history really lost still fails.
The architecture note states the broadened Linux focus-return rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
391958d judged a named Stop stale twice: the engine inside its commit,
and the supervisor later from the projected session. The two reads could
disagree. A Stop committed while turn B's running state was still on its
way expired B's approval as live, then the supervisor saw B running and
skipped the driver, so the provider kept waiting on an approval the UI had
removed. The reverse let a Stop the engine judged stale interrupt the
follow-up turn the supervisor found starting.

The engine's decision, made in the commit transaction, is now the only
one. It returns it on DispatchResult as a field that is never serialized,
and the RPC layer does not route a stale Stop to the supervisor at all. A
Stop the engine judged live reaches the driver as it did before
391958d. The supervisor's interrupts of its own (a compaction's turn, a
Dismiss, a panel archive) never name a stale turn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…andlers

The preview's Linux text-field undo script acted on synthetic chords, ran
before a site's own window listener, and undid WebKitGTK's page-wide stack
even when the latest edit was in another editor. It now acts only on trusted
keys, decides after dispatch and leaves a chord the page cancelled, no longer
cancels the chord itself (WebKitGTK has no default action for it), and undoes
only when the page's latest trusted edit was in the focused field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The DOM test evaluates the injected script with new Function, which V8
coverage cannot attribute to the file, so it takes the same justified
exclusion as the VM-evaluated theme bootstrap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows a preview webview takes Win32 keyboard focus when it opens, and
hiding or closing it left the main window in front with no focus window, so
the main page reported no focus and typed keys reached the bare frame (the
system "ding") until a click. Before a preview hides or closes, the host now
moves focus to the main webview when the focus sits in the preview, on the
bare top-level window, or nowhere while that window is in front, as it
already did on Linux. macOS is unmeasured and unchanged.

The packaged paint cell now asserts the focus return on Windows too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Win32 keyboard focus, like GTK's, moves only with a real click, so the
packaged undo spec's native cells on Windows now click their target natively
before typing and no longer depend on an earlier cell's focus. The Windows
runbook describes the preview focus return and how to check it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
subscribe() registers for changes inside a spawned task, so a send right
after it could land first and show up only in the snapshot, which the
two terminal stream tests ignored; they then timed out waiting for an
upsert. A fixture helper now returns the stream once its snapshot has
arrived.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mubeda
mubeda merged commit a4a2d72 into main Nov 24, 2026
33 of 45 checks passed
mubeda added a commit that referenced this pull request Nov 24, 2026
Fix main CI after #420: seeded upgrade Cargo reuse and a racing test
mubeda added a commit that referenced this pull request Nov 24, 2026
Raises the Claude Terminal hook ceiling to Claude Code 2.1.330 after the
live PreToolUse guard proof passed on that build, sets every version
source to 0.18.0, writes the curated changelog entry for PRs #420 and
#423, and closes the plan progress table.

Verified locally: live Claude Code 2.1.330 PreToolUse guard proof,
focused hook-ceiling unit and integration tests, cargo fmt --all --check,
cargo check --workspace --all-targets --locked, cargo clippy -p
bibcode-server --all-targets -- -D warnings, vp check, vp run typecheck,
vp run release:smoke, vp run -r --concurrency-limit 1 test (all 9
packages), and BIBCODE_SENSITIVE_RANGE=main..HEAD no-sensitive-data
guard. Reviewed with Codex (gpt-6-astra, high).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment