fix(pi): resolve packaged proxy token lazily
This commit is contained in:
@@ -573,8 +573,22 @@ export function createCodingConversationStore(
|
||||
},
|
||||
};
|
||||
});
|
||||
await deps.recover(conversationId);
|
||||
await get().loadSnapshot(conversationId, true);
|
||||
try {
|
||||
await deps.recover(conversationId);
|
||||
await get().loadSnapshot(conversationId, true);
|
||||
} catch (error) {
|
||||
const failure = errorDetails(error);
|
||||
set((state) => {
|
||||
const entry = state.entriesByConversationId[conversationId] ?? emptyEntry();
|
||||
return {
|
||||
entriesByConversationId: {
|
||||
...state.entriesByConversationId,
|
||||
[conversationId]: { ...entry, loadState: 'error', error: failure.message },
|
||||
},
|
||||
};
|
||||
});
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
|
||||
async connectEvents() {
|
||||
|
||||
Reference in New Issue
Block a user