The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 16:30 UTC
fix: ignore pull request actions in latency tracker (#6476)
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
t3-code[bot] committed
Aug 13, 2026 at 14:51 UTC
2ab188f1c0afe99ba269739704e2e96f0bbbe78f
2 files changed
+15
-1
apps/web/src/rpc/requestLatencyState.test.ts
+10
@@ -59,6 +59,16 @@ describe("requestLatencyState", () => {
59
expect(getSlowRpcAckRequests()).toEqual([]);
60
});
61
62
+ it.each(Object.values(WS_METHODS).filter((method) => method.startsWith("pullRequests.")))(
63
+ "ignores pull request workspace request %s",
64
+ (method) => {
65
+ trackRpcRequestSent("1", method);
66
+ vi.advanceTimersByTime(SLOW_RPC_ACK_THRESHOLD_MS * 2);
67
+
68
+ expect(getSlowRpcAckRequests()).toEqual([]);
69
+ },
70
+ );
71
+
72
it("keeps ignoring untracked methods when a display tag is supplied", () => {
73
trackRpcRequestSent(
74
"1",
apps/web/src/rpc/requestLatencyState.ts
+5
-1
@@ -49,7 +49,11 @@ function getSlowRpcAckRequestsValue(): ReadonlyArray<SlowRpcAckRequest> {
49
}
50
51
function shouldTrackRpcAck(method: string): boolean {
52
- return !method.includes("subscribe") && !untrackedRpcAckMethods.has(method);
52
+ return (
53
+ !method.includes("subscribe") &&
54
+ !method.startsWith("pullRequests.") &&
55
+ !untrackedRpcAckMethods.has(method)
56
+ );
57
}
58
59
function rpcAckThresholdMs(method: string): number {