diff --git a/app/renderer/sections/InstallFlow.tsx b/app/renderer/sections/InstallFlow.tsx index fc52303e..50c651f1 100644 --- a/app/renderer/sections/InstallFlow.tsx +++ b/app/renderer/sections/InstallFlow.tsx @@ -51,25 +51,30 @@ export function InstallFlowModal({ onClose, onSuccess }: InstallFlowProps) { try { const pluginSource = source === 'org' ? orgInput.trim() : folderPath! const result = await codeburn.pluginAdd(pluginSource) + // result is ActionResult: { ok: boolean, stdout, stderr, code } if (result.ok) { const match = result.stdout.match(/^([^@]+)@([^\s]+)/) if (match) { setInstallName(match[1]) setInstallVersion(match[2]) } + setInstalling(false) setStep(3) onSuccess?.() } else { + // CLI failed: display stderr verbatim const stderr = result.stderr || 'Plugin installation failed' if (stderr.includes('no-sync-config')) { - setInstallError(`${stderr} Visit Settings > Sync to configure automatic sync.`) + setInstallError(`${stderr}\n\nHint: Visit Settings > Sync to configure.`) } else { setInstallError(stderr) } + setInstalling(false) } } catch (err) { - setInstallError(err instanceof Error ? err.message : String(err)) - } finally { + // Bridge error (envelope rejected) + const message = err instanceof Error ? err.message : String(err) + setInstallError(message) setInstalling(false) } } @@ -154,41 +159,51 @@ export function InstallFlowModal({ onClose, onSuccess }: InstallFlowProps) { {step === 2 && ( <> -
Installing plugin from {source === 'org' ? orgInput : folderPath}...
-{installError}
+Installing plugin from {source === 'org' ? orgInput : folderPath}...
+ {installError}
+
+ Failed to fetch plugin manifest: HTTP 404+
Installing plugin from teams...
+