claude-code-best/src/bridge/remoteInterruptHandling.ts
Cheng Zi Feng 72a2093cd6
feat(remote-control): 优化 Web 展示、状态同步与桥接控制流程 (#288)
Co-authored-by: chengzifeng <chengzifeng@meituan.com>
2026-04-17 16:21:27 +08:00

14 lines
348 B
TypeScript

import { feature } from 'bun:bundle'
export function handleRemoteInterrupt(
abortController: AbortController | null,
): void {
if (feature('PROACTIVE') || feature('KAIROS')) {
const { pauseProactive } =
require('../proactive/index.js') as typeof import('../proactive/index.js')
pauseProactive()
}
abortController?.abort()
}