Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): install provider CLI updates in the background #17585

Openmaria-rckswants to merge 4 commits intomain fromt3/background-provider-updatesopened View on GitHub

Showing 40 changed files with 32 additions and 0 deletions (loading 37).

x
0 of 40 viewed, 40 left
3 additions and 0 deletionsapps/mobile/src/components/ComposerEditor.tsxModified
View file
@@ -4,6 +4,8 @@
import { AsyncResult } from "effect/reactivity";
import { settlePromise, squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
import { useEffect, useState } from "react";
+import * as Effect from "effect/Effect";
+import { mobileInteraction } from "../connection/background-activity-scopes";
import type { EnvironmentId } from "@t3tools/contracts";
import { encodeComposerContextFragment } from "@t3tools/shared/composerContextClipboard";
import { collectComposerContextReferences } from "@t3tools/shared/composerContextReferences";
@@ -69,6 +71,7 @@
// oxlint-disable-next-line t3code/no-unreasoned-state-sync -- releases the attachment file leases held for native text undo when the history is replaced or unmounts
useEffect(() => () => contextHistory.dispose(), [contextHistory]);
const changeText = (text: string) => {
+ Effect.runSync(mobileInteraction.record);
const restored = contextHistory.restore(
text,
draftKey ? getComposerDraftSnapshot(draftKey) : draft,
17 additions and 0 deletionsapps/mobile/src/connection/background-activity-scopes.tsModified
View file
@@ -1,6 +1,7 @@
import type { EnvironmentRpcSubscriptionObservation } from "@t3tools/client-runtime/rpc";
import { type BackgroundScope, type EnvironmentId, WS_METHODS } from "@t3tools/contracts";
import * as Effect from "effect/Effect";
+import * as Clock from "effect/Clock";
​
interface RetainedScope {
readonly environmentId: EnvironmentId;