mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 08:15:53 +00:00
feat(remote-control): 优化 Web 展示、状态同步与桥接控制流程 (#288)
Co-authored-by: chengzifeng <chengzifeng@meituan.com>
This commit is contained in:
16
src/commands/plan/index.test.ts
Normal file
16
src/commands/plan/index.test.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { describe, expect, test } from 'bun:test'
|
||||
|
||||
import plan from './index.js'
|
||||
|
||||
describe('plan bridge invocation safety', () => {
|
||||
test('allows headless plan mode operations over Remote Control', () => {
|
||||
expect(plan.getBridgeInvocationError?.('')).toBeUndefined()
|
||||
expect(plan.getBridgeInvocationError?.('write a migration plan')).toBeUndefined()
|
||||
})
|
||||
|
||||
test('blocks /plan open over Remote Control', () => {
|
||||
expect(plan.getBridgeInvocationError?.('open')).toBe(
|
||||
"Opening the local editor via /plan open isn't available over Remote Control.",
|
||||
)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user