Commit 52f4bdf
committed
fix(ui): show tool diff as side-by-side before/after for changed tools
The quarantine panel previously rendered the current description as a
plain paragraph and, below it, a single diff box that mixed added,
removed, and same tokens — making it look like the same text was being
shown twice with random green highlights. Split the diff into two
labelled boxes so each side only renders its own words: the "Before
(approved)" box shows the previous description (with any removed words
highlighted red), and the "After (current)" box shows the new
description (with added words highlighted green). The plain paragraph
is suppressed when a diff is available so the current text is not
duplicated above the "After" box.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b85e7db commit 52f4bdf
1 file changed
Lines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
359 | 373 | | |
360 | 374 | | |
361 | 375 | | |
| |||
0 commit comments