fix: address network command review feedback

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BB-fatandCursor committed 2026-07-18 22:52:53 +08:00
1 parent 259b4826b7
commit 9799b98937
16 files changed
+488 -289

No files matched your search

@@ -106,6 +106,13 @@ describe("ToolDispatcher", () => {
send: vi.fn(),
detachSession: vi.fn(async () => {}),
ensureConsoleCapture: vi.fn(async () => {}),
ensureNetworkCapture: vi.fn(async () => {}),
networkEntriesSince: vi.fn(() => ({
tab_id: 7,
entries: [],
next_since: 0,
truncated: false,
})),
consoleEntriesSince: vi.fn(
() =>
({
@@ -149,6 +156,13 @@ describe("ToolDispatcher", () => {
const cdp = {
send: vi.fn(),
detachSession: vi.fn(async () => {}),
ensureNetworkCapture: vi.fn(async () => {}),
networkEntriesSince: vi.fn(() => ({
tab_id: 7,
entries: [],
next_since: 0,
truncated: false,
})),
};
const dispatcher = new ToolDispatcher({ transport, sessions, cdp });
dispatcher.start();