e4e9eb0928becfa4e48484dde85ef5032671d582
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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). |
||
|
|
6b81344301 |
library: the keep-here switch says sync, and is on while it syncs (bin.90)
bin.90 on Discord read the Library editor's 「只在这台电脑」 switch as a
LAN-sharing switch: "this computer only" says nothing about what it keeps
from where. It is about sync, so it now says so.
- Library editor (MCP servers, skills): the switch is "Sync to your other
computers" (同步到其他电脑 / 同步到其他電腦 / ほかのコンピュータと同期 /
Mit deinen anderen Computern synchronisieren), on while the server or
skill syncs. Its note says off keeps it here, and a sync from the
others neither removes it nor replaces it.
- The stored value keeps its meaning: `local` true is still kept here.
The switch shows !local and saves !on, so every saved library.json,
sync payload and CLI flag (`magpie library mcp local NAME on|off`)
means what it meant.
- Row tag: "Not synced" (不同步 / 同步しない / Nicht synchronisiert) where
it said "This computer only", in the Library, the TUI ("not synced ·")
and `magpie library` output.
- Agents page sibling (the same words for an agent's picks): its menu
item is "Don't sync picks to your other computers", its tag "Not
synced". The agentsHere setting is unchanged.
- docs/subsystems/library.md and sync-backup.md name the new labels.
app.js stays in its budget: origin/main
|
||
|
|
2ab9235711 |
agents: an agent's picks can be kept to this computer, as an MCP server can
chenxiang0010 on Discord: 「agent当前选择的模型可不可以像mcp那样 只对当前设备生效」.
Sync carries every agent's picks (model, effort...) between computers;
an MCP server has an opt-in "This computer only" that sync and backup
files never carry. Agents now have the same: the row's menu (right-click
or ...) has This computer only, off by default, so an upgrade changes no
pick on any computer.
- settings: AgentsHere, this computer's own (KeepOwn), and kept by a save
of the Settings page (settingsapi.Apply), which doesn't send it.
- davsync: each kept agent adds "<id>.*" to the own set (withHere, isOwn),
so a sync neither pushes its fields nor brings the server's; a Restore
from the server leaves them. sync-state.json records the list as of the
last sync (Here): hashes before a sync use it and after use the current
list, so turning it on or off is no change on either side, and a changed
list forces the sync past its early returns. Turned off, the next pick
goes up again. Other agents still sync both ways; the implicit own
fields (hayden4608) are unchanged.
- backup.Restore skips a kept agent in a backup file.
- gui: POST /api/agents/here; the row says "This computer only" beside
the version (hidden in the tray panel and in a narrow row), menu ticks.
Core words moved from the library plugin's i18n into core i18n
(zh/zh-TW/ja/de). Comments in renderAgents cut to pay for it under the
core budget (no raise).
- cli: the route is named under stage 3 (no command yet).
- docs/subsystems/sync-backup.md describes it.
Run on mote, at the base
|