{"record":{"id":"cd3fe1d47749c202","repo":"Fission-AI/OpenSpec","slug":"warning-failed-to-sync-copilot-cloud-agent-files","errorCode":null,"errorMessage":"Warning: failed to sync Copilot cloud agent files: ${message}","messagePattern":"Warning: failed to sync Copilot cloud agent files: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/update.ts","lineNumber":557,"sourceCode":"            );\n          }\n        } else if (isInteractive()) {\n          console.log(\n            chalk.dim(\n              \"GitHub Copilot cloud coding-agent files are available (opt-in). Enable with 'openspec init --copilot-cloud'.\"\n            )\n          );\n        }\n        return;\n      }\n\n      const removed = await removeCopilotCloudFiles(projectPath);\n      if (removed > 0) {\n        console.log(chalk.dim(`Removed: ${removed} Copilot cloud agent file(s) (github-copilot not configured)`));\n      }\n    } catch (error) {\n      const message = error instanceof Error ? error.message : String(error);\n      console.warn(`Warning: failed to sync Copilot cloud agent files: ${message}`);\n    }\n  }\n\n  /**\n   * Display message when all tools are up to date.\n   */\n  private displayUpToDateMessage(toolStatuses: ToolVersionStatus[]): void {\n    const toolNames = toolStatuses.map((s) => s.toolId);\n    console.log(chalk.green(`✓ All ${toolStatuses.length} tool(s) up to date (v${OPENSPEC_VERSION})`));\n    console.log(chalk.dim(`  Tools: ${toolNames.join(', ')}`));\n    console.log();\n    console.log(chalk.dim('Use --force to refresh files anyway.'));\n  }\n\n  /**\n   * Display the update plan showing which tools need updating.\n   */\n  private displayUpdatePlan(","sourceCodeStart":539,"sourceCodeEnd":575,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/update.ts#L539-L575","documentation":"Error \"Warning: failed to sync Copilot cloud agent files: ${message}\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/update.ts:557 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-08-25T16:17:27.014Z"}