Skip to content

Commit fc70d78

Browse files
Kacper Wojciechowskiclaude
authored andcommitted
fix(agentos): remove fetch override and export ShellSnapshot type
Remove the globalThis.fetch override (fetch-compat.ts) that buffered ReadableStream request bodies for HTTP/1.1 compatibility. Export ShellSnapshot and ShellReplayMode from the package index so downstream consumers (agentos-apps) can name them in generated declarations.
1 parent 0353298 commit fc70d78

3 files changed

Lines changed: 2 additions & 68 deletions

File tree

packages/agentos/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export type {
5555
ShellDataPayload,
5656
ShellExitPayload,
5757
ShellInfo,
58+
ShellReplayMode,
59+
ShellSnapshot,
5860
VmBootedPayload,
5961
VmShutdownPayload,
6062
} from "./types.js";

packages/agentos/src/inspector-tabs/lib/fetch-compat.ts

Lines changed: 0 additions & 64 deletions
This file was deleted.

packages/agentos/src/inspector-tabs/main.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@ import { dehydrate, hydrate, QueryClient, QueryClientProvider } from "@tanstack/
22
import { lazy, type ComponentType, StrictMode, useEffect, useState } from "react";
33
import { createRoot } from "react-dom/client";
44
import { isInspectorActionError, tabIdFromUrl } from "./lib/actor-client";
5-
import { installStreamBodyFetchCompat } from "./lib/fetch-compat";
65
import { RivetProvider } from "./lib/rivet";
76
import { PermissionPrompts } from "./permission-prompts";
87
import { TabBoundary } from "./tab-boundary";
98
import React from "react";
109

1110
import "./styles.css";
1211

13-
// Must run before any rivetkit client is constructed.
14-
installStreamBodyFetchCompat();
15-
1612
// Tab registry: id → lazy component. Add a tab here + register the same id in
1713
// actor.ts `inspectorTabs` pointing `source` at this shared asset dir.
1814
const TABS: Record<string, () => Promise<{ default: ComponentType<{ actorId: string }> }>> = {

0 commit comments

Comments
 (0)