fix: node names everywhere, cloud peer names, sync timeout 180s

- Federation: nodeName() with Node-XXXX fallback for all views + map + sync results
- Cloud: peerDisplayName() replaces raw DIDs, hides onion addresses
- Sync timeout increased to 180s for Tor-connected nodes
- Better error message when sync fails

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-19 20:52:39 +00:00
parent 96e8afb526
commit ffc8e25c17
2 changed files with 11 additions and 7 deletions

View File

@@ -689,11 +689,15 @@ async function syncAll() {
try {
syncing.value = true
error.value = ''
const result = await rpcClient.federationSyncState()
syncResults.value = []
const result = await rpcClient.call<{
synced: number; failed: number;
results: Array<{ did: string; status: string; apps?: number; error?: string }>
}>({ method: 'federation.sync-state', timeout: 180000 })
syncResults.value = result.results
await loadNodes()
} catch (e) {
error.value = e instanceof Error ? e.message : 'Sync failed'
error.value = e instanceof Error ? e.message : 'Sync failed — some peers may be unreachable over Tor'
} finally {
syncing.value = false
}