diff --git a/nix/deepagent-code.nix b/nix/deepagent-code.nix
index 5166f141..a5c55569 100644
--- a/nix/deepagent-code.nix
+++ b/nix/deepagent-code.nix
@@ -18,6 +18,11 @@ stdenvNoCC.mkDerivation (finalAttrs: {
inherit (node_modules) version src;
inherit node_modules;
+ patchPhase = ''
+ BUN_VERSION=$(bun --version)
+ sed -i "s/const expectedBunVersionRange.*/const expectedBunVersionRange = \"^$BUN_VERSION\";/" packages/script/src/index.ts
+ '';
+
nativeBuildInputs = [
bun
nodejs # for patchShebangs node_modules
diff --git a/nix/hashes.json b/nix/hashes.json
index cf1467c9..17fbfc4d 100644
--- a/nix/hashes.json
+++ b/nix/hashes.json
@@ -1,6 +1,6 @@
{
"nodeModules": {
- "x86_64-linux": "sha256-OttgLsPJSYW1b9RGqiYSi7qPdDC3GuD2FE7k5tPe6Iw=",
+ "x86_64-linux": "sha256-vB4imi5LtCxnDuOaJFQh+asK51RUDCnIVCkIzBQN12o=",
"aarch64-linux": "sha256-VsmW8tTiT3VkTxp5oiYc/maJLSsBMxK6VVUSVshWVT8=",
"aarch64-darwin": "sha256-/MaQBX2zoJMtLA8jHt8+uKpIFve/eec3RfcKT3FvXC8=",
"x86_64-darwin": "sha256-3ggap9rgR2TvVbYgnXsgkg6Rj1TqNZu32QgTVRdN0f0="
diff --git a/packages/app/src/app.tsx b/packages/app/src/app.tsx
index 2c4fd7b1..f23fd5fa 100644
--- a/packages/app/src/app.tsx
+++ b/packages/app/src/app.tsx
@@ -31,6 +31,7 @@ import { CommandProvider } from "@/context/command"
import { CommentsProvider } from "@/context/comments"
import { DebugProvider } from "@/context/debug"
import { FileProvider } from "@/context/file"
+import { GatewayProvider } from "@/context/gateway"
import { ServerSDKProvider } from "@/context/server-sdk"
import { ServerSyncProvider } from "@/context/server-sync"
import { GlobalProvider } from "@/context/global"
@@ -311,39 +312,41 @@ export function AppInterface(props: {
disableHealthCheck?: boolean
}) {
return (
-