omp-plugin-duplicate-detector 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +5 -4
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -302,15 +302,16 @@ function notifyBaselineStatus(
|
|
|
302
302
|
? "warning"
|
|
303
303
|
: "info";
|
|
304
304
|
|
|
305
|
-
// 1. Send
|
|
305
|
+
// 1. Send TUI notification if UI is active (presents directly without wiping chat container)
|
|
306
306
|
ctx?.ui?.notify?.(message, level);
|
|
307
307
|
|
|
308
|
-
// 2. Send
|
|
308
|
+
// 2. Send status message into session with display: false to prevent triggering
|
|
309
|
+
// an invasive chat rebuild that clears ephemeral startup banners (e.g. omp update notification)
|
|
309
310
|
pi.sendMessage(
|
|
310
311
|
{
|
|
311
312
|
customType: "duplicate-detector-status",
|
|
312
313
|
content: message,
|
|
313
|
-
display:
|
|
314
|
+
display: false,
|
|
314
315
|
attribution: "user",
|
|
315
316
|
details: {
|
|
316
317
|
status,
|
|
@@ -447,7 +448,7 @@ export default function duplicateDetectorExtension(pi: ExtensionAPI): void {
|
|
|
447
448
|
{
|
|
448
449
|
customType: "duplicate-detector-status",
|
|
449
450
|
content: message,
|
|
450
|
-
display:
|
|
451
|
+
display: false,
|
|
451
452
|
attribution: "user",
|
|
452
453
|
details: {
|
|
453
454
|
status: "failed",
|