Skip to content

fix: resolve plugin presets before conversation start - #339

Open
ShivangiRay wants to merge 1 commit into
OpenHands:mainfrom
ShivangiRay:codex/fix-plugin-preset-conversation
Open

fix: resolve plugin presets before conversation start#339
ShivangiRay wants to merge 1 commit into
OpenHands:mainfrom
ShivangiRay:codex/fix-plugin-preset-conversation

Conversation

@ShivangiRay

Copy link
Copy Markdown

Summary

Resolve and validate plugin sources in the plugin-preset runner before creating the remote conversation. The conversation receives verified local paths rather than remote coordinates, preventing lazy server-side fetch failures from surfacing as opaque errors during event polling.

Root cause

Plugin presets passed remote plugin coordinates directly to the in-sandbox agent server. Plugin fetching happens lazily when the conversation starts, so failures appear as 500 responses while reading conversation events.

Validation

  • uv run pytest tests/test_preset_router.py -q (97 passed, 41 skipped)
  • pre-commit run --files openhands/automation/presets/plugin/sdk_main.py tests/test_preset_router.py --show-diff-on-failure

Related: OpenHands/OpenHands#16611

AI assistance was used to prepare this change; the submitter reviewed the diff and test results.

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

Labels

type: fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant