From 9f0bbd8d2cba7feeaca52adff1f11a8cc2ef1fd7 Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Wed, 26 Nov 2025 15:29:05 -0500 Subject: [PATCH 1/2] Delay update check to avoid blocking plugin init The checkForUpdates call was running immediately on plugin load, which could slow down startup. Moving it to a 5-second timeout ensures the plugin initializes quickly while still checking for updates in the background. --- index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 744070b..2d78068 100644 --- a/index.ts +++ b/index.ts @@ -127,7 +127,9 @@ const plugin: Plugin = (async (ctx) => { model: config.model || "auto" }) - checkForUpdates(ctx.client, logger).catch(() => { }) + setTimeout(() => { + checkForUpdates(ctx.client, logger).catch(() => { }) + }, 5000) if (migrations.length > 0) { setTimeout(async () => { From 5fa7a9cf2667b0d1b42c3e91be9634889a6ff736 Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Wed, 26 Nov 2025 15:29:18 -0500 Subject: [PATCH 2/2] v0.3.19 - Bump version --- README.md | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d0907ca..874c64d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Add to your OpenCode config: ```jsonc // opencode.jsonc { - "plugins": ["@tarquinen/opencode-dcp@0.3.18"] + "plugins": ["@tarquinen/opencode-dcp@0.3.19"] } ``` diff --git a/package-lock.json b/package-lock.json index 0d58fa7..a1128a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@tarquinen/opencode-dcp", - "version": "0.3.18", + "version": "0.3.19", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@tarquinen/opencode-dcp", - "version": "0.3.18", + "version": "0.3.19", "license": "MIT", "dependencies": { "@ai-sdk/openai-compatible": "^1.0.27", diff --git a/package.json b/package.json index 857cd24..e7bdeff 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@tarquinen/opencode-dcp", - "version": "0.3.18", + "version": "0.3.19", "type": "module", "description": "OpenCode plugin that optimizes token usage by pruning obsolete tool outputs from conversation context", "main": "./dist/index.js",