Skip to content

Show banner and log node module load failures when registry is empty#19

Open
criskb wants to merge 1 commit intomainfrom
codex/add-ui-banner-for-empty-node-registry
Open

Show banner and log node module load failures when registry is empty#19
criskb wants to merge 1 commit intomainfrom
codex/add-ui-banner-for-empty-node-registry

Conversation

@criskb
Copy link
Copy Markdown
Owner

@criskb criskb commented Jan 2, 2026

Motivation

  • Surface startup problems when no nodes are registered by detecting an empty NODE_DEFS after node registration attempts.
  • Make debugging easier by collecting module-specific failures and printing the failing module names and errors to the console.
  • Provide a visible UI hint so users know to open DevTools when the node registry failed to load.

Description

  • Collects detailed failure records (module + error) from loadNodesFromList() and the entries manifest loader and accumulates them via a failures array and recordFailure helper in loadNodes().
  • If Object.keys(NODE_DEFS).length === 0 after all loading attempts, injects a small banner into the top bar (or falls back to the left panel head) with the message: "Node registry empty — open DevTools Console." and styles it for visibility.
  • Emits console.error for each recorded failure with the module name and associated error when the registry is empty.
  • Keeps existing toast/status behavior and updates nodeRegistry.loaded based on the final node count.

Testing

  • No automated tests were run for this change.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant