Skip to content

Skip broken plugin entrypoints during plugin loading#1465

Open
2830500285 wants to merge 1 commit into
simonw:mainfrom
2830500285:codex/skip-broken-plugin-entrypoints
Open

Skip broken plugin entrypoints during plugin loading#1465
2830500285 wants to merge 1 commit into
simonw:mainfrom
2830500285:codex/skip-broken-plugin-entrypoints

Conversation

@2830500285
Copy link
Copy Markdown

Summary

  • load installed llm entry points one at a time so a crashing third-party plugin is skipped instead of preventing the CLI from starting
  • warn on skipped plugin load failures while preserving LLM_RAISE_PLUGIN_ERRORS=1 for debugging
  • add regression tests for skip-and-continue behavior and the debug re-raise path

Fixes #1280

Tests

  • uv run pytest tests/test_plugins.py -q
  • uv run pytest -q
  • uv run ruff check .
  • uv run black . --check
  • uv run mypy llm
  • uv run cog --check -p "import sys, os; sys._called_from_test=True; os.environ['LLM_USER_PATH'] = '/tmp'" README.md docs/*.md

Catch exceptions from installed llm entry points one plugin at a time so a crashing third-party plugin no longer prevents the CLI from starting. Add regression coverage for skipped plugins and the LLM_RAISE_PLUGIN_ERRORS debug path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle plugins that crash during load

1 participant