Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): reconcile client state when a settle does not land #4593

Closedcolonelpanic8(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/4593/headopened View on GitHub

Showing 11 changed files with 184 additions and 3 deletions (loading 8).

x
0 of 11 viewed, 11 left
2 additions and 1 deletionapps/web/src/connection/platform.tsModified
View file
@@ -19,6 +19,7 @@
type PlatformConnectionRegistration,
PrimaryConnectionRegistration,
PrimaryConnectionTarget,
+ ResyncRequests,
Wakeups,
} from "@t3tools/client-runtime/connection";
import { bootstrapRemoteBearerSession } from "@t3tools/client-runtime/authorization";
@@ -110,7 +111,7 @@
managedRelayAccountChanges(appAtomRegistry).pipe(
Stream.map(() => "credentials-changed" as const),
- ),
+ ).pipe(Stream.merge(ResyncRequests.resyncRequestStream)),
});
​
function clientMetadata() {
31 additions and 2 deletionsapps/web/src/hooks/useThreadActions.tsModified
View file
@@ -13,6 +13,8 @@
import { useCallback, useMemo, useRef } from "react";
​
import { getFallbackThreadIdAfterDelete } from "../components/Sidebar.logic";
+import { requestResync } from "../lib/resyncRequests";
+import { confirmSettleConverged as confirmSettleConvergedWith } from "../lib/settleConvergence";
import { useComposerDraftStore } from "../composerDraftStore";
import { terminalEnvironment } from "../state/terminal";