plugins list: magpie.name is ignored for git-installed packages (0.1.2342)
magpie.name in package.json is not what the plugins list shows (0.1.2342, git-installed plugins)
What I expected
Per #3608 ("a package outside the community list says what it is in its own package.json"), a plugin that is not in the community registry can carry its own display name:
{
"name": "magpie-officeace",
"magpie": { "name": "华为云 HUAWEI", "summary": "…" }
}
What happens
On 0.1.2342, a github:-installed plugin with magpie.name set still shows its dependency key in the plugins list, not the name:
magpie-officeace ← what the list shows
magpie-magicrew-auth
magpie-trustoken-auth
magpie-loomy-auth
magpie-intern-ai
while community packages in the same list show their registry names (商汤小浣熊, Qoder, WorkBuddy).
The installed copy does carry the field — decoded from ~/.config/magpie/plugins/node_modules/magpie-officeace/package.json:
version=0.2.4 name=magpie-officeace magpie.name=华为云 HUAWEI
magpie plugin list (CLI) showing the dependency key is expected (plugins_cli.go uses plugin.Name(spec)); the question is the GUI list.
Why it matters
Without magpie.name taking effect there is no way for a non-community plugin to show a readable name — and putting the display name in package.json.name is not an option, because that name becomes the bun dependency key and bun rejects non-ASCII keys (bun update <key> → unrecognised dependency format). So a git-installed plugin is stuck with its slug unless it joins the community registry.
Questions
- Is
magpie.namesupposed to win over the dependency key for git-installed packages in 0.1.2342, or did #3608 land after this build? - If it is supported, does the list need a restart (or a plugin re-add) before it picks the field up? I have not restarted the GUI to check — I did not want to disturb a running session.
Not filing this as "broken" — it may just be a version or refresh thing. Happy to test a build if you tell me which one.
take
Fixed in d8cf4f74f, released as v0.1.2378.
magpie.name was never read on main: #3608's route (the feat/magpie-name-summary branch, 1cc33700) didn't land, so no release had it, for git or npm installs. Now magpie reads magpie.name from the installed package's own package.json and names the Settings → Plugins row, its detail page, the "is up to date" status and a page plugin's sidebar tab with it. A package on the community list is still named by the list. The name must be one line of at most 80 bytes with no control or bidi characters; otherwise the dependency key is shown as before. The CLI's magpie plugin list still shows the dependency key.
After updating, nothing needs reinstalling: the row reads the already-installed package.json (here 华为云 HUAWEI for magpie-officeace). If it still shows the key on v0.1.2378, please say so here.
Checked d8cf4f74f (v0.1.2378) — and thanks for saying the honest part out loud: #3608's route never landed on main, so no release ever read magpie.name, for git or npm installs. That explains why every non-community plugin in my list was showing its dependency key, not just the git ones.
The surface list in the commit is the right one — Settings → Plugins row, the detail page, the "is up to date" status, and a page plugin's sidebar tab. The last two are the ones I would have missed.
Local verification: not yet. My install is 0.1.2342, so v0.1.2378 hasn't reached it. When it does, five plugins here should flip from slug to their magpie.name at once:
magpie-officeace → 华为云 HUAWEI
magpie-magicrew-auth → 超级麦吉 Magicrew
magpie-trustoken-auth → 爱派 AiPy
magpie-loomy-auth → 讯飞 Loomy
magpie-intern-ai → (未设 magpie.name,仍会显示依赖键)
I'll reopen if any of them keeps showing the slug after the upgrade.
Closing this as done from my side.
Standing down: the fix landed while this was in flight — d8cf4f74f, released as v0.1.2378. I had reached the same reading (nothing read magpie.name, so a git-installed package fell straight from the market's name to its dependency key) and cut a branch with the same cure and two tests red on the parent; yours goes further — the row's page, the messages that name the row, the sidebar tab, the docs, and the bidi guard mine lacked — so there is nothing to add. The branch stays up for reference, no patch: hunt110-b-4558-plugin-name (head 95eeca28e).
Written with GLM-5.3-Flash (ZCode); I've read this before posting.