Skip to content

Commit bd06757

Browse files
test(server): drop the duplicate user-tab close test main already covers
Main asserts that an unclaimed tab cannot be closed by an agent, with the newer unclaimedTab reason. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent bb2d021 commit bd06757

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

‎apps/server/src/preview/ServerBrowser.test.ts‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,24 +1152,6 @@ it.live("a later agent session of the same thread can close the tab an earlier o
11521152
).pipe(Effect.provide(layer)),
11531153
);
11541154

1155-
it.live("agents still cannot close a server tab the user opened", () =>
1156-
Effect.scoped(
1157-
Effect.gen(function* () {
1158-
const { browser, broker } = yield* ready;
1159-
const manager = yield* Manager.PreviewManager;
1160-
const opened = yield* manager.open({ threadId: scope.thread.threadId, runtime: "server" });
1161-
yield* browser.attachViewer(viewerInput(opened.tabId, false));
1162-
const rejected = yield* broker
1163-
.invoke<void>({ scope, tabId: opened.tabId, operation: "close", input: {} })
1164-
.pipe(Effect.flip);
1165-
expect(rejected).toMatchObject({
1166-
_tag: "PreviewAutomationControlInterruptedError",
1167-
reason: "agentMismatch",
1168-
});
1169-
}),
1170-
).pipe(Effect.provide(layer)),
1171-
);
1172-
11731155
it.live("streams to a read-only viewer without allowing takeover, input, or viewport changes", () =>
11741156
Effect.scoped(
11751157
Effect.gen(function* () {

0 commit comments

Comments
 (0)