{"record":{"id":"688648bc7fab78d8","repo":"paperclipai/paperclip","slug":"choose-a-wiki-root-folder-path-before-fixing-all-c","errorCode":null,"errorMessage":"Choose a wiki root folder path before fixing all configuration errors.","messagePattern":"Choose a wiki root folder path before fixing all configuration errors\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/plugin-llm-wiki/src/ui/app.tsx","lineNumber":6041,"sourceCode":"      toast({ tone: \"error\", title: \"Skill sync failed\", body: err instanceof Error ? err.message : String(err) });\n    } finally {\n      setSkillBusy(false);\n    }\n  }\n\n  async function fixAllConfigurationErrors() {\n    if (!context.companyId || !hasConfigurationErrors) return;\n    const confirmed = typeof window === \"undefined\" || window.confirm(\n      \"Fix all detected LLM Wiki configuration errors? This may recreate missing wiki baseline files and restore plugin-managed agents, projects, routines, and skills to their current defaults.\",\n    );\n    if (!confirmed) return;\n\n    setAllRepairBusy(true);\n    try {\n      if (!data.folder.healthy) {\n        const path = folderPath.trim() || data.folder.path?.trim() || \"\";\n        if (!path && !data.folder.configured) {\n          throw new Error(\"Choose a wiki root folder path before fixing all configuration errors.\");\n        }\n        await bootstrap(path ? { companyId: context.companyId, path } : { companyId: context.companyId });\n      }\n\n      if (skillHealthWarnings.length > 0) {\n        await resetSkills({ companyId: context.companyId });\n      }\n\n      const shouldResetAgent =\n        data.managedAgent.source !== \"managed\" ||\n        !managedAgentIsReady(data.managedAgent) ||\n        Boolean(data.managedAgent.defaultDrift?.changedFiles.length);\n      const shouldResetProject =\n        data.managedProject.source !== \"managed\" ||\n        !managedProjectIsReady(data.managedProject);\n\n      if (shouldResetAgent) {\n        await resetAgent({ companyId: context.companyId });","sourceCodeStart":6023,"sourceCodeEnd":6059,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/packages/plugins/plugin-llm-wiki/src/ui/app.tsx#L6023-L6059","documentation":"Error \"Choose a wiki root folder path before fixing all configuration errors.\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/plugins/plugin-llm-wiki/src/ui/app.tsx:6052 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Choose a wiki root folder path in the plugin settings, then run fix-all again."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5716fe907e596ce73501408fc6efdb19fb61edf2","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}