Files
orca/src/shared/terminal-preview.ts
T
Brennan Benson 3468b434d6 feat(dashboard): add agent dashboard popout (#9604)
* feat(dashboard): add agent dashboard popout

* fix(dashboard): gate and harden agent popout

* test(ipc): isolate dashboard handler registration

* fix(dashboard): drop diff status from bucket counts

* fix(dashboard): address review feedback

* perf(dashboard): ignore unrelated store churn
2026-07-20 17:11:23 -07:00

21 lines
605 B
TypeScript

export type TerminalPreviewSnapshot = {
data: string
cols: number
rows: number
seq?: number
scrollbackAnsi?: string
pendingEscapeTailAnsi?: string
}
export type TerminalPreviewConnectResult = {
snapshot: TerminalPreviewSnapshot | null
/** Live bytes captured while the snapshot was being serialized. */
replay: string[]
/** Snapshot acquisition overflowed twice; refresh without blanking the existing view. */
resyncRequired?: boolean
}
export type TerminalPreviewDataPayload =
| { type: 'data'; ptyId: string; data: string; bytes: number }
| { type: 'resync'; ptyId: string }