Skip to content

fix(config): retain MCP timeout entries - #50810

Closed
dajiaohuang wants to merge 1 commit into
anomalyco:devfrom
dajiaohuang:mcp-timeout
Closed

dajiaohuang wants to merge 1 commit into
anomalyco:devfrom
dajiaohuang:mcp-timeout

Conversation

@dajiaohuang

@dajiaohuang dajiaohuang commented Sep 23, 2026 •

Copy link
Copy Markdown

Issue for this PR

Fixes #50807

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Preserves numeric and request-shaped MCP timeouts during V2-to-V1 config normalization and keeps the global numeric timeout mapping. This prevents configured servers from being dropped when they use a documented timeout.

How did you verify your code works?

  • bun test test/config/v2-compat.test.ts from packages/opencode (36 passed)
  • bun typecheck from packages/opencode
  • Prettier check and git diff --check
  • Root bun typecheck was attempted; it remains blocked by the existing packages/app/src/custom-elements.d.ts placeholder (TS1128), outside this diff.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Sep 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

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.

mcp: server entries with a "timeout" field are silently dropped from the normalized config

1 participant