The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
import { describe, expect, it } from 'vitest'
import { shouldExitForSignal } from '../lib/gracefulExit.js'
describe('shouldExitForSignal', () => {
it('ignores only the signals explicitly disabled for embedded dashboard chat', () => {
expect(shouldExitForSignal('SIGINT', ['SIGINT'])).toBe(false)
expect(shouldExitForSignal('SIGTERM', ['SIGINT'])).toBe(true)
expect(shouldExitForSignal('SIGHUP', ['SIGINT'])).toBe(true)
})
})