GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — fix: show header-specific MCP validation errors by pei711 · Pull Request #17966 · OpenHands/OpenHands Conversation
|
|
PR Artifact Cleanup Queued The |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The MCP validation fix is ready for review: Ubuntu/Windows test-and-build, description, title, and artifact checks pass. The focused MCP validation suite also passes all 12 tests locally. After marking the PR ready, the separate |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This review was posted by an AI agent (OpenHands).
Canvas-owned UI/i18n change (form validation message selection + src/i18n/translation.json). It belongs in OpenHands/OpenHands; no Agent Server contract, wire, or durable-state change is involved.
The fix threads an optional errorKey through the shared validateEnvFormat helper and passes SETTINGS$MCP_ERROR_HEADER_INVALID_FORMAT from the Header branch, while the STDIO env call at line 245 keeps the default SETTINGS$MCP_ERROR_ENV_INVALID_FORMAT. The parameter is optional and defaults to the previous value, so parsing and all other callers are unchanged — the only behavioral delta is the selected message, which is exactly the reported defect.
Verified on the current head 07b762b6e9b74efaaadb04ebc544e4e3cf31088f:
npm run make-i18n and npm run check-translation-completeness both pass.__tests__/components/features/settings/mcp-settings/mcp-server-form.validation.test.tsx — 12/12 pass. The new case drives the real validator (no mock of the validation logic) and asserts the header key appears while the env key does not, so it fails if the header key stops being passed.__tests__/i18n/translation-completeness.test.ts — 10/10 pass (covers the new key's locale coverage and no English-copy regressions).test-and-build (ubuntu) and test-and-build (windows) success, check-pr-artifacts success, and the latest Validate PR description runs (05:58) success. The two earlier Validate PR description failures (04:19/04:20) are superseded by the later passing runs on the same head.SETTINGS$MCP_ERROR_HEADER_INVALID_FORMAT now passed from the Header branch.SETTINGS$MCP_ERROR_HEADER_REQUIRED — that branch is untouched.KEY=value header still submits and is stored under auth.headers unchanged — parsing is untouched; the existing submit test passes.SETTINGS$MCP_ERROR_ENV_INVALID_FORMAT — default key preserved; existing env test passes..pr/bugs/ exercise the same production entry point described in the issue reproduction. A still screenshot is the correct artifact type here, since the changed behavior is a static rendered message..pr/ artifacts are temporary and are cleaned up by repo automation after merge; no action required.✅ APPROVED
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Reusing validateEnvFormat with an errorKey parameter is the right minimal refactor, and the new key is present in all 15 locales. The test asserts the header-specific message shows and the env message doesn't. Approving.
This review was posted by an AI agent (OpenHands) on behalf of the requester.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
🚀 Released in v1.27.0. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Custom MCP server editor reports a malformed header as an environment-variable error
There was an error while loading. Please reload this page.