Repository navigation
Commit 03f7da1
fix(web): typing after a selected skill no longer lags
A skill chip is stored as `$name`, and a lone `$` sent every prompt through the
full remark math parser several times per keystroke. Skip math parsing unless
the text has a pair of `$`, and build the editor's initial content once instead
of on every render.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent e68e19d commit 03f7da1
2 files changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
1106 | 1113 | | |
1107 | 1114 | | |
1108 | 1115 | | |
1109 | | - | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
| 1116 | + | |
1113 | 1117 | | |
1114 | 1118 | | |
1115 | 1119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
0 commit comments