fix(opencode): stop MCP SSE error reconnect loops - #39697
Merged
Conversation
DevFlex-AI
added a commit
to bolt-builder/bolt-cli
that referenced
this pull request
Jul 30, 2026
fix(opencode): stop MCP SSE error reconnect loops (anomalyco#39697)
luismgluis
pushed a commit
to luismgluis/opencode-lm
that referenced
this pull request
Jul 30, 2026
Up to c1ee3c6 fix(opencode): stop MCP SSE error reconnect loops (anomalyco#39697). Conflicts resolved: - .github/workflows/publish.yml — accept delete (fork cleanup). - packages/app/src/components/help-button.tsx — kept fork HelpButton stub (return null to suppress floating opencode.ai link); kept upstream TabsInfoPopup unchanged below. - packages/app/src/context/settings.tsx — kept fork 'settings.v5' persistence namespace and showCustomAgents: true default. - packages/app/src/components/prompt-input.tsx — REVERTED to HEAD. Upstream refactored agent/model selector into a new ModelSelectorPopover component and restructured the JSX around it. The fork keeps the parallel v2 layout with ComposerAgentControl + ComposerModelControl helpers (used by the v2 composer region + plan agent orange theming). Reverting matches the strategy from the previous merge on session-composer-region.tsx — accept losing the architectural refactor to preserve fork behavior. - packages/app/src/pages/home.tsx — REVERTED to HEAD. Upstream extracted the inline Home into a controller-based NewHome pattern (home-controller, home-projects-controller, home-sessions-controller, etc.). The fork keeps the inline Home component with server-synced projects, useSavedProjects, saveProjectsToServer, plan agent styling, and other UX customizations. Reverting matches the same strategy as session-composer-region.tsx and prompt-input.tsx. New orphaned upstream files in tree (unused but harmless): - packages/app/src/components/prompt-input-v2.tsx - packages/app/src/components/prompt-input/* submodule - packages/app/src/pages/home/home-*.ts/x (8 controller files) - packages/session-ui/src/v2/components/prompt-input/* These were added by upstream's controller-extraction refactors and remain in the tree but are not referenced by the (reverted) fork files. Same situation as session-composer-region-controller.ts after the previous merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Method not foundThis ports the focused fix from #39671 to the
devbranch. The upstream fix is modelcontextprotocol/typescript-sdk#1390.Checks
bun test ./test/mcp/transport.test.ts(frompackages/opencode)bun typecheck(frompackages/opencode)bun install --frozen-lockfile --ignore-scripts