- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.7k
fix: Compatibility fixes necessary to run 'npm install -g' for CLI #8515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Open
      
      
            rossigee
  wants to merge
  4
  commits into
  continuedev:main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
rossigee:compatibility-fixes
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          
      
        
          +1
        
        
          −9
        
        
          
        
      
    
  
Conversation
  
    
      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
    
  
  
    
    - Update ToolPermissionService to handle MCP server connections correctly - Remove deprecated responsesStream usage from exponentialBackoff - Fix test import order in posthogService.test.ts - Remove unused logger import from telemetryService test These changes ensure compatibility with the latest dependencies and API changes. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <[email protected]>
- Update ToolPermissionService to handle MCP server connections correctly - Remove deprecated responsesStream usage from exponentialBackoff - Add proper spacing in posthogService.test.ts imports - Remove unused logger import from telemetryService test These changes ensure compatibility with the latest dependencies and API changes. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <[email protected]>
- Update ToolPermissionService to handle MCP server connections correctly - Remove deprecated responsesStream usage from exponentialBackoff - Clean up import spacing and remove unnecessary eslint disable in posthogService.test.ts - Remove unused logger import from telemetryService test These changes ensure compatibility with the latest dependencies and API changes. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <[email protected]>
- Remove deprecated responsesStream usage from exponentialBackoff This change ensures compatibility with the latest openai-adapters API changes. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <[email protected]>
| Without this,   | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 1 file
  
    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.
  
    
  
    
Fix Compatibility Issues After Main Branch Merge
Description
This PR fixes compatibility issues that arose after merging the latest changes from the main branch. The changes ensure the CLI continues to work correctly with updated dependencies.
Changes Made
exponentialBackoff.ts
isResponsesModelandresponsesStreamfrom@continuedev/openai-adapterschatCompletionStreammethodWhy These Changes Are Needed
These compatibility fixes became necessary after merging recent main branch changes that included updates to the openai-adapters package API. Without this fix, the CLI would fail to build due to the removal of the
isResponsesModelexport.Testing
npm run buildRelated Issues
These changes are compatibility fixes and prevent build failures after main branch merges.
Summary by cubic
Fix CLI compatibility with the latest @continuedev/openai-adapters so global installs (npm install -g) work again. Removed deprecated responsesStream/isResponsesModel usage and now always stream via chatCompletionStream.