#2815·emdash

Config-registered plugins cannot surface a name or description in the admin Plugins list

Author: gregbarbosaCreated Aug 31, 2026Updated Sep 28, 2026

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):

  1. PluginDefinition, ResolvedPlugin, and PluginDescriptor have no name/description fields (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.
  2. buildPluginInfo and buildSandboxedPluginInfo (src/api/handlers/plugins.ts) resolve name: state?.displayName || plugin.id and description: state?.description ?? undefined, where state is the _plugin_state row. 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

  1. npm create emdash@latest repro-site -- --template blog --platform node --yes (emdash 0.35.0)
  2. Scaffold a native plugin with npx emdash plugin init --native, give its manifest/descriptor a description, register it in plugins: [].
  3. GET /_emdash/api/admin/plugins (dev-bypass session).
  4. The plugin item is {"id":"test-plugin","name":"test-plugin",...} with no description key. The template's own audit-log item 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

json
{"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":[]}