Skip to content

#811: Bump quadraui pin to HEAD (42 commits) and fix the 4 removed-API call sites — next bump does not compile - #837

Merged
JDonaghy merged 1 commit into
developfrom
issue-811-bump-quadraui-pin-to-head-42-commits-and
Sep 5, 2026
Merged

#811: Bump quadraui pin to HEAD (42 commits) and fix the 4 removed-API call sites — next bump does not compile#837
JDonaghy merged 1 commit into
developfrom
issue-811-bump-quadraui-pin-to-head-42-commits-and

Conversation

@JDonaghy

@JDonaghy JDonaghy commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Closes #811

Automated PR opened by coordinator for review of issue #811.

quadraui#704 removed `Backend::drag_and_modal_mut` (and `modal_stack_mut`)
in favour of `drag_state_handle()` / `modal_stack_handle()`, which return
`Rc<RefCell<_>>`. vimcode still called the removed method at four sites in
`src/tui_main/shell_app.rs`, so the next pin bump would not have compiled.

- Rewrite the four call sites against the handle API. The simultaneous
  `&mut DragState` + `&mut ModalStack` borrow that `drag_and_modal_mut`
  existed to provide now falls out of `borrow_mut()`ing two independent
  handles.
- Release the two `RefMut` guards explicitly after `mouse::handle_mouse`,
  alongside the existing `drop()` block, so later code touching the
  backend's drag/modal state cannot double-borrow.
- Refresh the four stale module/inline doc references to quadraui#467's
  `drag_and_modal_mut`.
- Bump both `rev` entries in `Cargo.toml` (the `quadraui` dependency and
  the `[patch.crates-io] vt100` entry) to
  `4ff2a645023637bba7229e0aeee5968a9c6f3652`; `Cargo.lock` relocked.

`vcd --version` now reports `VimCode 0.10.0 (quadraui 4ff2a6450236)`.

Pure refactor + dependency bump: no user-visible behaviour change, so no
new black-box test is required per CLAUDE.md's acceptance bar. The
existing `#[cfg(test)]` shell_app modal-gating tests
(`modal_blocks_event_skips_explorer_intercept_when_modal_covers_click`
and its context-menu companion) already drive the rewritten code paths
and were ported to the handle API in place.

Closes #811

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@JDonaghy
JDonaghy merged commit a57a430 into develop Sep 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump quadraui pin to HEAD (42 commits) and fix the 4 removed-API call sites — next bump does not compile

1 participant