Commit 46276ba
committed
fix(auto): escape Rich markup in persisted answer log rendering
Addresses ouroboros-agent[bot] review on #720:
- _print_status now wraps source / question / answer fields with
rich.markup.escape() before passing them to console.print(). The
persisted text comes straight from the interview backend and may
legitimately contain "[" / "]" sequences. Without the escape Rich
would interpret those as markup styles, either swallowing the text
from the rendered output or raising a markup parse error and making
ooo auto --resume <id> --status fail for otherwise-valid sessions.
- New regression test feeds "Use [bold]uv[/] toolchain" + "Use uv [from
existing setup]" through the status surface and asserts both literal
bracketed segments survive verbatim.
- Reformat tests/unit/auto/test_answer_source_log.py per repo ruff
format policy.
Refs #6391 parent 642e158 commit 46276ba
2 files changed
Lines changed: 44 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
285 | | - | |
286 | | - | |
287 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
288 | 295 | | |
289 | 296 | | |
290 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 120 | + | |
123 | 121 | | |
124 | 122 | | |
125 | 123 | | |
| |||
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
134 | 164 | | |
135 | 165 | | |
136 | 166 | | |
| |||
139 | 169 | | |
140 | 170 | | |
141 | 171 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 172 | + | |
145 | 173 | | |
146 | 174 | | |
147 | 175 | | |
| |||
0 commit comments