Skip to content

fix(plugins): handle malformed execute JSON#135

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/plugins-execute-invalid-json
Jul 9, 2026
Merged

fix(plugins): handle malformed execute JSON#135
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/plugins-execute-invalid-json

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • return a 400 Invalid JSON body response when POST /api/plugins/execute receives malformed JSON
  • avoid initializing or running plugins when the request body cannot be parsed
  • add focused regression coverage for the malformed-body path

Tests

  • corepack pnpm exec vitest run src/app/api/plugins/execute/route.test.js --config .codex-vitest-no-react.config.mjs (temporary no-React config; default vitest config is blocked locally by @vitejs/plugin-react importing vite/internal)
  • corepack pnpm exec oxlint src/app/api/plugins/execute/route.js src/app/api/plugins/execute/route.test.js (passes with pre-existing unused-parameter warnings in route.js)
  • git diff --check

@ralyodio ralyodio merged commit 3b9b805 into profullstack:master Jul 9, 2026
8 checks passed
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.

2 participants