Config-registered plugins cannot surface a name or description in the admin Plugins list
Description
Plugins registered in astro.config.mjs (plugins: [] or sandboxed: []) always render in the admin Plugins page as their bare id with an empty description, and there is no supported way to change that. This includes a first-party plugin: the @emdash-cms/plugin-audit-log shipped with the starter templates carries a real description in its emdash-plugin.jsonc, and still shows as bare audit-log with no description.
Expected: a config-registered plugin can surface a display name and description on its card, the way marketplace/registry installs do.
Cause (traced in 0.35.0 source):
PluginDefinition,ResolvedPlugin, andPluginDescriptorhave noname/descriptionfields (src/plugins/types.ts,src/astro/integration/runtime.ts), so nothing an author declares survives resolution. Casting the fields past the types confirms they are dropped before the API layer.buildPluginInfoandbuildSandboxedPluginInfo(src/api/handlers/plugins.ts) resolvename: state?.displayName || plugin.idanddescription: state?.description ?? undefined, wherestateis the_plugin_staterow. That row is only created by the marketplace/registry install flow, so config-source plugins never have one.
Confirmed workaround: hand-inserting a _plugin_state row (source='config', display_name, description) makes the list render both fields, confirming the read path.
Suggested fix: accept displayName/description on the plugin definition (the sandboxed manifest already collects a description), carry them through ResolvedPlugin, and fall back in the list handlers: description: state?.description ?? plugin.description.
Side observation while testing (possibly a separate issue): _plugin_state.installed_at defaults to SQLite datetime('now') (UTC, no zone marker) but the API serializes it as local time, producing a fixed offset skew.
Steps to reproduce
npm create emdash@latest repro-site -- --template blog --platform node --yes(emdash 0.35.0)- Scaffold a native plugin with
npx emdash plugin init --native, give its manifest/descriptor a description, register it inplugins: []. GET /_emdash/api/admin/plugins(dev-bypass session).- The plugin item is
{"id":"test-plugin","name":"test-plugin",...}with nodescriptionkey. The template's ownaudit-logitem is identical in shape.
Environment
- emdash version: 0.35.0 (also reproduced in an app upgraded from 0.0.3)
- Node.js version: 26.8.1
- Runtime: Node
- OS: macOS
Logs / error output
{"id":"test-plugin","name":"test-plugin","version":"0.1.0","enabled":true,"status":"active","source":"config","capabilities":["content:read"],"hasAdminPages":false,"hasDashboardWidgets":false,"hasHooks":true,"hasSettings":false,"mcpToolsEnabled":false,"mcpTools":[]}Source: emdash-cms/emdash