Repository navigation
Remote branch delete, Files undo, Antigravity, Cursor model picker and provider Stop fixes (#397–#418) - #420
Merged
Merged
Conversation
…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>
There was a problem hiding this comment.
💡 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".
…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
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).
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.
One batch for the backlog issues #397–#418 and the follow-ups found while fixing them.
What changes
Git Manager and Source Control
pushurl/pushInsteadOf, remote groups, nested remote names, symbolic refs, truncated git output, orGIT_CONFIGset. It pushes with--force-with-leaseagainst the tip it showed. Follow-ups Git Manager: branch dialogs do not read the server's block reasons #401–Git Manager: a remote branch named with a /HEAD suffix is hidden #407 are covered: block reasons in the dialogs, sign-in from the toolbar, tag/branch confusion, the remote's default branch, the wrong upstream, MCP order of checks, and/HEAD-suffixed names.Files editor
Desktop
bibcode://links start the app from an extracted AppDir (Linux desktop: a bibcode:// link cannot start the app from an extracted AppDir #412); a foreign AppImage's library paths are not inherited (Linux desktop: started from inside another AppImage app, BiBCode passes that app's library paths to its child processes #413); the AppImage tools followCARGO_TARGET_DIR(Linux build: with CARGO_TARGET_DIR set, the AppImage ships the stock GTK hook and renders blank on Wayland #415).Antigravity (#399)
automode, auto-accept-edits usesaccept-edits, and approval-required usesdefault; each mode is confirmed by the CLI.Cursor (#416)
Provider starts and Stop (all providers)
mcp listcheck, 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.Verification
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 failedopen_pull_request_lookup_testsbecause of a stale local build; the same commit passed after a clean rebuild and in a fresh worktree.Known limits
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