mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +00:00
feat(remote-control): 优化 Web 展示、状态同步与桥接控制流程 (#288)
Co-authored-by: chengzifeng <chengzifeng@meituan.com>
This commit is contained in:
13
src/bridge/remoteInterruptHandling.ts
Normal file
13
src/bridge/remoteInterruptHandling.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user