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
fix(output): escape bidi and zero-width format characters in text output #54
Security and stability hardening audit finding TS-06 / Low (2026-09-28). Priority is an audit recommendation, not a claim of a production incident. Related to abruption/session-peer#239, which covers control characters only.
Text output escapes C0, DEL, C1 and U+2028/U+2029, but not bidirectional formatting or zero-width characters. In a synthetic HOME, a session name in a fixture session record containing U+202E (RLO), U+2066/U+2069 (isolates) and U+200B was printed verbatim by list --output-format text, so the visual order of agent:id name home=... can be spoofed on one line. Names come from local session records, Codex thread titles (usually derived from the first prompt) or a remote list response over SSH.
What you expected
Text output escapes U+061C, U+200B–U+200F, U+202A–U+202E, U+2060–U+2069 and U+FEFF in the same \uXXXX form, while preserving other Unicode. JSON output is unchanged.
Environment
Baseline: published session-peer 0.2.0 (npm latest), repository commit 38a1300369443e064f58bb18e8bda70f31af0fbb.
Audit environment: macOS arm64, Node 22.14.0.
No live message tests or production mutation.
Reproduction: synthetic HOME with a fixture session record; no connection was made.
Activity
fix: harden Codex delivery, CLI parsing, SSH and output (#49-#57) (#62)