e4e9eb0928becfa4e48484dde85ef5032671d582
4
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
c2fd48782b |
Put back what 1f05c311d took out of main by mistake
|
||
|
|
1f05c311d9 |
library: an open memory holds still while the Memory tab polls (Nietzsche_Li on X)
"资源库-记忆中,被展开的记忆的表单会定时抖动". While search by meaning
still has memories to read (read < of, which can last up to a minute
between memembed.Keep's reads) or a learn-from-conversations run goes,
the Memory tab reads its row again every 2s, and each read drew the
whole page anew. The open editor was a new .lib-detail each time and
played its content-in entrance (opacity .5, 2px slide) every 2s.
- semWatch/distWatch draw nothing when the read changed nothing, and
redraw only their own row (redrawRow) when it did; the whole tab only
when the memories changed.
- render() marks a .lib-detail open before it (same data-detail) as kept,
so it doesn't replay its entrance. This covers every render of an
open editor in the Library: memories, instruction sets and agents'
files (the siblings; no other Library tab polls into render()).
- A new memory's text no longer takes the focus back on every render.
Run (mote): library-memory-steady.test.cjs, all 5 languages, 980/420,
chromium + webkit: green 4 of 4 whole-file runs after the last change
(webkit alone 2 of 2 before it). Broken by hand: the same test against
origin/main's client.js and library.css: 22 of 22 red ("the editor
played its entrance again"). One webkit de 420 red was the test's own
first row click intercepted by the header at 420px while the page
settled; the test now opens rows with a DOM click.
Also run, both engines, every language, 980/420: library-memory, library-memory-select, library-memory-suggest, memory-icon, library-instr-busy, library-instr-sets, library-linked-set, library-follow-server: all green. No Go code changed, so no go test or vet.
Not tried: the real app on a real memory store mid-read.
|
||
|
|
889758605f |
import: open CC Switch's ccswitch:// provider links (coder_shaun on X)
A relay's one-click ccswitch://v1/import?resource=provider&app=…&name=… &endpoint=…&apiKey=… link now opens magpie's own import confirmation. The format is read from CC Switch's source (src-tauri/src/deeplink/parser.rs and provider.rs at 3c76d3b): host v1, path /import, resource=provider only, app, name, endpoint, apiKey, apiFormat, model/haiku/sonnet/opusModel, homepage, iconUrl, and the base64 config (claude env, codex auth + config.toml provider table, gemini env) filling what the URL leaves out. The link is translated into a magpie://import's parameters and goes through the same checks (https only, key shape, id rules, balance host) and the same confirmation; usage scripts, configUrl, enabled and notes are never taken, a codex env_key is refused. Registration, so as not to take CC Switch's links: Linux writes a separate magpie-ccswitch.desktop and sets the default only when `xdg-mime query default` is empty or already it; Windows writes HKCU ccswitch only when HKCR has no live handler of another program; uninstall and install.sh remove them only while they are ours. macOS declares the scheme in Info.plist (static), so with CC Switch installed too the system picks. Run: provider, gui (macOS mote; Linux gtk3 on WSL for the scheme tests), uninstall, cli, update packages; vet darwin, windows, linux nogui. The test parses CC Switch's own 11 provider examples (testdata/ccswitch_links.txt, copied from its repo) and refuses the other resources. Broken by hand: claude's default endpoint kind (4 reds) and the Linux "another app has it" check (TestRegisterSchemeLeavesCCSwitchItsLinks red). Not tried: Windows registry (vet only), a real CC Switch installed beside magpie, a browser click on a real relay's button. Rebased on |
||
|
|
96a703a591 |
uninstall: magpie uninstall and Settings › Uninstall magpie put every agent back before magpie's files go
Jevik_AI on X (Windows, portable magpie) deleted magpie's folders by hand. ~/.codex/config.toml kept openai_base_url on 127.0.0.1:3425, and every Codex turn then failed with a 502, with nothing left that knew why. Deleting magpie's files never puts an agent back, so there is now an uninstall that does. - internal/uninstall: Run goes in this order. System removes the background service, opening at login, the Start menu shortcut (shortcut.Remove, with its App Paths key), the magpie:// links and the privacy model's helper. Agents ends Codex's account failover, then runs each connected agent's own Disconnect, or its offline disconnect for an app that is closed. That is the same code as the Agents page, so a value the user changed by hand since Connect stays theirs ( |