Skip to content

Commit 5458aad

Browse files
committed
do not exit on ctrl-c by default
1 parent d7b132b commit 5458aad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cli/src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@ import './polyfills/bun-strip-ansi'
33
import { createRequire } from 'module'
44

55
import { API_KEY_ENV_VAR } from '@codebuff/common/old-constants'
6+
import { validateAgents } from '@codebuff/sdk'
67
import { render } from '@opentui/react'
78
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
89
import { Command } from 'commander'
910
import React from 'react'
1011

11-
import { validateAgents } from '@codebuff/sdk'
12-
1312
import { App } from './chat'
1413
import './state/theme-store' // Initialize theme store and watchers
1514
import { getUserCredentials } from './utils/auth'
15+
import { loadAgentDefinitions } from './utils/load-agent-definitions'
1616
import { getLoadedAgentsData } from './utils/local-agent-registry'
1717
import { clearLogFile } from './utils/logger'
18-
import { loadAgentDefinitions } from './utils/load-agent-definitions'
1918

2019
const require = createRequire(import.meta.url)
2120

@@ -153,6 +152,7 @@ function startApp() {
153152
</QueryClientProvider>,
154153
{
155154
backgroundColor: 'transparent',
155+
exitOnCtrlC: false,
156156
},
157157
)
158158
}

0 commit comments

Comments
 (0)