mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 22:05:50 +00:00
feat(remote-control): 优化 Web 展示、状态同步与桥接控制流程 (#288)
Co-authored-by: chengzifeng <chengzifeng@meituan.com>
This commit is contained in:
@@ -19,12 +19,15 @@ type ProcessQueueResult = {
|
||||
*/
|
||||
function isSlashCommand(cmd: QueuedCommand): boolean {
|
||||
if (typeof cmd.value === 'string') {
|
||||
return cmd.value.trim().startsWith('/')
|
||||
return cmd.value.trim().startsWith('/') && (!cmd.skipSlashCommands || cmd.bridgeOrigin === true)
|
||||
}
|
||||
// For ContentBlockParam[], check the first text block
|
||||
for (const block of cmd.value) {
|
||||
if (block.type === 'text') {
|
||||
return block.text.trim().startsWith('/')
|
||||
return (
|
||||
block.text.trim().startsWith('/') &&
|
||||
(!cmd.skipSlashCommands || cmd.bridgeOrigin === true)
|
||||
)
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user