mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 16:02:24 +00:00
This codebase folds control characters in three deliberate places, each with its reason written down: workspace and tab names at the machine store so no two drawers disagree, an OSC title at the daemon so one line goes in and one line is stored, and a *filename* at the point of drawing, because the raw bytes are what `join` and `rename` are handed. The sidebar draws two things in that third category and folded neither: the cwd under a tab row, and the section headers built from repo roots and path components. `mkdir $'a\nb'` is a directory somebody can be sitting in, and gpui breaks a label on a newline whatever its wrapping says — the row grows and paints over what is under it, which is the failure the rule's own comment describes. The grouping key is deliberately left raw: it is a path, and the sections are grouped by comparing it. The test pins that too, since folding the key would silently split one project into two.