{"record":{"id":"69e1733387d25338","repo":"ruvnet/ruflo","slug":"remote-sync-failed","errorCode":"REMOTE_SYNC_FAILED","errorMessage":"Team ${teamName} is not connected to remote","messagePattern":"Team (.+?) is not connected to remote","errorType":"exception","errorClass":"TeammateError","httpStatus":null,"severity":"error","filePath":"v3/plugins/teammate-plugin/src/teammate-bridge.ts","lineNumber":1667,"sourceCode":"      JSON.stringify(remoteSession, null, 2),\n      { encoding: 'utf-8', mode: 0o600 }\n    );\n\n    this.emit('remote:pushed', { team: teamName, remoteUrl: remoteSession.remoteSessionUrl });\n\n    return remoteSession;\n  }\n\n  /**\n   * Sync with remote\n   */\n  async syncWithRemote(teamName: string): Promise<SyncResult> {\n    this.ensureAvailable();\n\n    const team = this.getTeamOrThrow(teamName);\n\n    if (!team.remoteSessionId) {\n      throw new TeammateError(\n        `Team ${teamName} is not connected to remote`,\n        TeammateErrorCode.REMOTE_SYNC_FAILED,\n        teamName\n      );\n    }\n\n    // Simulate sync result\n    const result: SyncResult = {\n      success: true,\n      changesPushed: 0,\n      changesPulled: 0,\n      conflicts: 0,\n      remoteUrl: team.remoteSessionUrl,\n    };\n\n    this.emit('remote:synced', { team: teamName, result });\n\n    return result;","sourceCodeStart":1649,"sourceCodeEnd":1685,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/teammate-plugin/src/teammate-bridge.ts#L1649-L1685","documentation":"syncWithRemote() found team.remoteSessionId is unset, meaning pushToRemote() was never called (or the session was cleared) for this team. The team has no established remote session to synchronize with, so the sync operation is refused up front.","triggerScenarios":"Thrown at v3/plugins/teammate-plugin/src/teammate-bridge.ts:1667 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Connect the team to the remote before performing remote operations."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}