feat: release OpsXShell 2.1.0 native Tauri edition

This commit is contained in:
Logan.Li committed 2026-07-30 23:32:51 +08:00
1 parent e9a0d21758
commit a3dba0c6ed
311 files changed
+31748 -14897

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
import { describe, expect, it } from 'vitest'
import { resolveTerminalInputTargets } from '../../src/utils/terminalPanes'
const panes = [
{ id: 'left', shellId: 'shell-1' },
{ id: 'starting', shellId: null },
{ id: 'right', shellId: 'shell-3' },
]
describe('terminal pane input routing', () => {
it('routes normal input only to the source pane', () => {
expect(resolveTerminalInputTargets(panes, 'right', false)).toEqual(['shell-3'])
})
it('routes broadcast input to every ready shell in pane order', () => {
expect(resolveTerminalInputTargets(panes, 'left', true)).toEqual([
'shell-1',
'shell-3',
])
})
it('does not write when the source pane has no ready shell', () => {
expect(resolveTerminalInputTargets(panes, 'starting', false)).toEqual([])
expect(resolveTerminalInputTargets(panes, 'missing', false)).toEqual([])
})
})