From f9fbbfb2f05efc33c8fa6b23bbd9f694d901c5a6 Mon Sep 17 00:00:00 2001 From: Research Assistant Date: Sun, 10 May 2026 17:12:22 +0800 Subject: [PATCH] fix(dashboard): fix _renderNextStepCard this.plugin is undefined - Replace this.plugin with this.app.plugins.plugins['paperforge'] - PaperForgeStatusView does not have a plugin property - Remove debug console.log lines --- paperforge/plugin/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paperforge/plugin/main.js b/paperforge/plugin/main.js index 40aaaf79..ef4f11d6 100644 --- a/paperforge/plugin/main.js +++ b/paperforge/plugin/main.js @@ -1530,11 +1530,9 @@ class PaperForgeStatusView extends ItemView { const lastSlash = entry.note_path.lastIndexOf('/'); const wsDir = lastSlash !== -1 ? entry.note_path.substring(0, lastSlash) : '.'; const discPath = wsDir + '/ai/discussion.json'; - console.log('PaperForge: looking for discussion at', discPath); // Use Obsidian adapter for path correctness (handles unicode reliably) this.app.vault.adapter.exists(discPath).then((exists) => { - console.log('PaperForge: discussion exists?', exists); if (!exists) return; return this.app.vault.adapter.read(discPath); }).then((raw) => { @@ -1694,7 +1692,7 @@ class PaperForgeStatusView extends ItemView { }); // Show "Run in [agent_platform]" label below the button (DASH-02) - const platform = this.plugin.settings?.agent_platform || 'opencode'; + const platform = this.app.plugins.plugins['paperforge']?.settings?.agent_platform || 'opencode'; const labelEl = card.createEl('div', { cls: 'paperforge-agent-platform-label' }); labelEl.setText(t('run_in_agent').replace('{0}', platform)); } else if (nextStep === 'ready') {