Repository navigation
Commit 345895b
fix(web): keep chat shell fence check linear and match toolbar styling
The closing-fence regex nested `[ \t]*` inside a repeated group, so a
finished assistant code block with a line of repeated `> ` markers
backtracked exponentially (28 markers took ~5s, 30 took ~20s) on every
render. It ran for every code block, not just shell ones. Collapse the
blockquote prefix into one character class; the match is unchanged.
Also reject invisible format characters (bidi overrides, zero-width) so
the rendered command matches what Run sends, and use the ghost-muted
variant that main now gives the sibling Copy and Wrap actions.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent cdaac7b commit 345895b
2 files changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
595 | 597 | | |
596 | 598 | | |
597 | 599 | | |
| |||
959 | 961 | | |
960 | 962 | | |
961 | 963 | | |
962 | | - | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
963 | 967 | | |
964 | 968 | | |
965 | 969 | | |
| |||
1038 | 1042 | | |
1039 | 1043 | | |
1040 | 1044 | | |
1041 | | - | |
| 1045 | + | |
1042 | 1046 | | |
1043 | 1047 | | |
1044 | 1048 | | |
| |||
0 commit comments