personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

convey/sol: migrate loadIdentity to wave 0 primitives (wave 2)

Move the identity panel load to apiJson.
Render a standard error card on failure and keep the updated-days banner untouched.

+8 -8
+8 -8
apps/sol/workspace.html
··· 1195 1195 } 1196 1196 1197 1197 function loadIdentity() { 1198 - fetch('/app/sol/api/identity') 1199 - .then(r => r.json()) 1198 + window.apiJson('/app/sol/api/identity') 1200 1199 .then(data => { 1201 - if (data.error) { 1202 - document.getElementById('sol-identity').style.display = 'none'; 1203 - return; 1204 - } 1205 1200 const agent = data.agent || {}; 1206 1201 const identity = data.identity || {}; 1207 1202 const thickness = data.thickness || {}; ··· 1226 1221 + (thickness.ready ? 'Ready' : 'Growing') 1227 1222 + '</div>'; 1228 1223 }) 1229 - .catch(() => { 1230 - document.getElementById('sol-identity').style.display = 'none'; 1224 + .catch((err) => { 1225 + window.logError(err, { context: 'sol: loadIdentity failed' }); 1226 + document.getElementById('sol-identity').innerHTML = window.SurfaceState.errorCard({ 1227 + heading: "Couldn't load identity", 1228 + desc: 'Reload to try again.', 1229 + serverMessage: err.serverMessage, 1230 + }); 1231 1231 }); 1232 1232 } 1233 1233