Skip to content

Commit

Permalink
CLI: remove automatic jsonrpc command
Browse files Browse the repository at this point in the history
Fixes CODY-2752

Previously, running `cody-agent` started the `cody-agent jsonrpc`
subcommand. This was done for historical reasons that are no longer
important. This is a breaking change and means that IDE clients will
need to explicitly mention the `api jsonrpc` subcommand now.
  • Loading branch information
olafurpg committed Jul 5, 2024
1 parent 266cef3 commit e187aab
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ process.on('uncaughtException', e => {
registerLocalCertificates()

const args = process.argv.slice(2)
const { operands } = rootCommand.parseOptions(args)
if (operands.length === 0) {
args.push('jsonrpc')
}

rootCommand.parseAsync(args, { from: 'user' }).catch(error => {
console.error('Error:', error)
Expand Down

0 comments on commit e187aab

Please sign in to comment.