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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +5 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-plugin-duplicate-detector",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Code clone and duplication detector plugin for oh-my-pi powered by jscpd",
5
5
  "type": "module",
6
6
  "files": [
package/src/index.ts CHANGED
@@ -302,15 +302,16 @@ function notifyBaselineStatus(
302
302
  ? "warning"
303
303
  : "info";
304
304
 
305
- // 1. Send transient TUI toast if UI is active
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 persistent transcript notification into the chat feed
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: true,
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: true,
451
+ display: false,
451
452
  attribution: "user",
452
453
  details: {
453
454
  status: "failed",