Commit Graph
1 Commits
Author SHA1 Message Date
yetone e48753f7f4 gui: a right-click menu opens at the pointer, not at the row's handle (mmmg_btc on X)
Routing group, agent row, provider row, model chip and sessions folder row
passed their drag handle or their button as the menu's anchor, so a
right-click opened it at the far left (or far right) of the row. openRowMenu
and placeMenu take the pointer; each right-click passes it, and placeMenu
still keeps the menu inside the window and flips it above when there is no
room. The handles' and buttons' own clicks anchor as before.

Tests: route-menu-pointer (new), agent-here, provider-find, model-copy-id and
sessions-relocate assert the menu's left/top against the pointer.

Run (WSL magpie-desktop, chromium and webkit, via wsl-run; mote's disk was
full): route-menu-pointer 2/2, provider-find 12/12, sessions-relocate 40/40,
group-share, group-duplicate, group-arrange all pass; agent-here 29/30 once
(chromium zh panel, not reproduced in two chromium reruns, 15/15 each).
Broken by hand: the same test files against origin/main's assets: all red
(route-menu-pointer 0/2, provider-find 0/12, agent-here 0/30,
sessions-relocate 0/40), e.g. "menu at x=24, expected 342". TestCoreScriptBudget
ok on Windows. model-copy-id is red on origin/main already (the gpt-5.1 chip
is not found, #4621, #6096), so its pointer assertion is reached only for the
first chips. Not run: macOS, the full GUI suite, the real Linux app, every
other test that right-clicks (30 files ran on mote before its disk filled and
are void).
2026-11-11 15:15:12 +08:00