@agimon-ai/po-native 0.0.1-alpha.34 → 0.0.1-alpha.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +12 -12
  2. package/src/app/App.tsx +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-native",
3
- "version": "0.0.1-alpha.34",
3
+ "version": "0.0.1-alpha.35",
4
4
  "description": "Po for iOS and Android",
5
5
  "homepage": "https://agimon.ai",
6
6
  "bugs": {
@@ -29,17 +29,17 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@agimon-ai/po-core": "0.0.0-alpha.154",
33
- "@agimon-ai/po-expo-signing": "0.0.1-alpha.34",
34
- "@agimon-ai/po-identity": "0.0.2-alpha.101",
35
- "@agimon-ai/po-native-components": "0.0.0-alpha.154",
36
- "@agimon-ai/po-native-dashboard": "0.0.0-alpha.26",
37
- "@agimon-ai/po-template-advanced": "0.0.0-alpha.154",
38
- "@agimon-ai/po-template-elegant": "0.0.0-alpha.154",
39
- "@agimon-ai/po-voice": "0.0.0-alpha.154",
40
- "@agimon-ai/po-web-components": "0.0.0-alpha.154",
41
- "@agimon-ai/po-web-dashboard": "0.0.0-alpha.154",
42
- "@agimon-ai/po-web-security": "0.0.0-alpha.154",
32
+ "@agimon-ai/po-core": "0.0.0-alpha.155",
33
+ "@agimon-ai/po-expo-signing": "0.0.1-alpha.35",
34
+ "@agimon-ai/po-identity": "0.0.2-alpha.102",
35
+ "@agimon-ai/po-native-components": "0.0.0-alpha.155",
36
+ "@agimon-ai/po-native-dashboard": "0.0.0-alpha.27",
37
+ "@agimon-ai/po-template-advanced": "0.0.0-alpha.155",
38
+ "@agimon-ai/po-template-elegant": "0.0.0-alpha.155",
39
+ "@agimon-ai/po-voice": "0.0.0-alpha.155",
40
+ "@agimon-ai/po-web-components": "0.0.0-alpha.155",
41
+ "@agimon-ai/po-web-dashboard": "0.0.0-alpha.155",
42
+ "@agimon-ai/po-web-security": "0.0.0-alpha.155",
43
43
  "@better-auth/expo": "1.7.12",
44
44
  "@config-plugins/react-native-webrtc": "15.0.2",
45
45
  "@earendil-works/chord": "1.5.1",
package/src/app/App.tsx CHANGED
@@ -1945,10 +1945,14 @@ function SessionsRoute({
1945
1945
  async removeSession(sessionId) {
1946
1946
  if (!canMutate(sessionId)) return unavailable;
1947
1947
  const cloud = cloudHostFor(sessionId);
1948
- // The card leaves at once and comes back only if the computer refuses.
1948
+ // The card leaves at once and comes back only if the computer refuses. Both requests find the
1949
+ // session's workspace in the list, so they start before the card leaves it.
1949
1950
  const previous = sessionsStore.state.byId[sessionId]?.summary;
1951
+ const pending = cloud ? deleteCloudSession(cloud, sessionId) : stopSession(sessionId);
1950
1952
  applySessionRemoved({ sessionId });
1951
- const result = cloud ? await deleteCloudSession(cloud, sessionId) : await stopSession(sessionId);
1953
+ const result = await pending.catch((error: unknown) => ({
1954
+ error: error instanceof Error ? error.message : 'Could not remove the session.',
1955
+ }));
1952
1956
  if (result !== undefined && previous && sessionsStore.state.byId[sessionId] === undefined)
1953
1957
  applySessionUpsert({ session: previous });
1954
1958
  return result;