You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4bdf9ca
Browse filesBrowse the repository at this point in the historyBrowse files
title: TUI terminal rendering and output safety PTY contracts
2
+
scenario:
3
+
id: tui-terminal-safety-pty
4
+
surface: tui
5
+
category: tui.rendering-and-output-safety
6
+
coverage:
7
+
primary:
8
+
- tui.terminal-rendering-primitives
9
+
- tui.output-safety
10
+
risk: medium
11
+
objective: Prove narrow terminal rendering and hostile display-boundary sanitization through the real runTui PTY loop.
12
+
successCriteria:
13
+
- Long Unicode output renders through narrow real PTY frames without replacement characters.
14
+
- Wrapped URLs retain their complete copy-safe OSC 8 target.
15
+
- ANSI, OSC, clipboard, and C1 payloads cannot reach raw terminal frames.
16
+
- Printable text surrounding hostile terminal controls remains visible.
17
+
- A row-aware synchronized-frame oracle proves selector labels, descriptions, footer fields, connection status, BTW questions, and complete headers collapse CR, LF, and tab payloads to exact single-space one-line copies while preserving printable Unicode and RTL isolation.
18
+
- The authenticated row oracle uses the final bounded viewport at the fixture's exact PTY dimensions, including autowrap and bottom scrolling, and matches only visible cells authenticated by balanced synchronized frames; later frames preserve untouched authenticated cells, while unsynchronized writes and erases revoke touched cells.
19
+
- The oracle has negative controls for split rows, literal tabs, stale spaces, post-frame text and erases, right-margin wrapping, scrolling, and incomplete synchronized frames or trailing controls, which invalidate prior frames until controls and OSC 8 state are complete.
20
+
- Hostile selected session and agent identity fields cannot inject controls through the header while their stored identity remains raw.
21
+
- Live tool titles sanitize before trusted styling, tool-result Markdown sanitizes source before parsing and isolates rendered RTL content outside OSC 8 and padding, and control-only system or BTW error output renders a neutral visible fallback.
22
+
- Restored in-flight Markdown and dynamic command descriptions sanitize display copies, while unsafe thinking-level completion values are omitted before editor rendering.
23
+
- Model and session selections pass exact unmodified backend values to patchSession and loadHistory.
0 commit comments