Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): poll provider usage only while visible #31032

ClosedElliotDrel(GitHub profile, opens in a new tab)wants to merge 174 commits intomain fromrefs/pull/31032/headopened View on GitHub

Showing 99 changed files with 75 additions and 26 deletions (loading 97).

x
0 of 99 viewed, 99 left
62 additions and 26 deletionsapps/mobile/src/features/threads/NewTaskDraftScreen.tsxModified
View file
@@ -40,7 +40,10 @@
​
import { ComposerEditor, type ComposerEditorHandle } from "../../components/ComposerEditor";
import { composerContextImportsAtom } from "../../state/use-composer-drafts";
-import { abortComposerDraftOperations } from "../../state/composerDraftOperations";
+import {
+ abortComposerDraftOperations,
+ waitForComposerDraftOperations,
+} from "../../state/composerDraftOperations";
import { composerContextSendBlockReason } from "../../lib/composerContext";
import { ComposerInlineControl } from "../../components/ComposerToolbar";
​
@@ -75,6 +78,7 @@
} from "../../lib/modelOptions";
import { enqueueThreadOutboxMessage } from "../../state/thread-outbox";
import {
+ environmentConnectedAtom,
useRemoteConnections,
useRemoteEnvironmentRuntime,
} from "../../state/use-remote-environment-registry";
@@ -92,6 +96,8 @@
import { incomingShareImports, useIncomingShare } from "../sharing/IncomingShareProvider";
import { idleShareFlagAtom, idleShareImportPhaseAtom } from "./incomingShareImport";
import { newTaskFlowKey } from "./new-task-flow-state";
+import { serverEnvironment } from "../../state/server";
+import { vcsEnvironment } from "../../state/vcs";
import { EnvironmentMachineSymbol } from "../../components/EnvironmentMachineSymbol";
import { ConnectionStatusDot } from "../connection/ConnectionStatusDot";