Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(home): add Home, an agent that manages threads across your machines #15975

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 13 commits intomain fromt3code/cross-environment-meta-threadopened View on GitHub

Showing 91 changed files with 26 additions and 0 deletions (loading 87).

x
0 of 91 viewed, 91 left
6 additions and 0 deletionsapps/desktop/src/app/DesktopState.tsModified
View file
@@ -8,12 +8,18 @@
{
readonly backendReady: Ref.Ref<boolean>;
readonly quitting: Ref.Ref<boolean>;
+ /**
+ * While Home is on, the renderer relays its calls to other environments.
+ * On macOS, closing the window then hides it so the relay keeps running.
+ */
+ readonly keepAliveOnClose: Ref.Ref<boolean>;
>()("@t3tools/desktop/app/DesktopState") {}
​
const make = Effect.all({
backendReady: Ref.make(false),
quitting: Ref.make(false),
+ keepAliveOnClose: Ref.make(false),
});
​
export const layer = Layer.effect(DesktopState, make);
18 additions and 0 deletionsapps/desktop/src/ipc/methods/keepAliveOnClose.tsAdded
View file
@@ -0,0 +1,18 @@
+import * as Effect from "effect/Effect";
+import * as Ref from "effect/Ref";
+import * as Schema from "effect/Schema";
+​
+import * as DesktopState from "../../app/DesktopState.ts";
+import * as IpcChannels from "../channels.ts";
+import * as DesktopIpc from "../DesktopIpc.ts";