From da9f5ee992771cfe3e3f58259a6dd6d47ac40dae Mon Sep 17 00:00:00 2001 From: kumarabhirup Date: Sat, 21 Feb 2026 11:03:31 -0800 Subject: [PATCH] fix: resolve no-base-to-string lint in agent subscribe CLI --- src/commands/agent-via-gateway.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/agent-via-gateway.ts b/src/commands/agent-via-gateway.ts index 86b75dd26f8..c24b20f724f 100644 --- a/src/commands/agent-via-gateway.ts +++ b/src/commands/agent-via-gateway.ts @@ -511,8 +511,8 @@ export async function agentCliCommand(opts: AgentCliOpts, runtime: RuntimeEnv, d // Subscribe-only mode: tail events for a session key with replay cursor. const subscribeKey = (opts as Record).subscribeSessionKey as string | undefined; if (subscribeKey && opts.streamJson) { - const afterSeq = - Number.parseInt(String((opts as Record).afterSeq ?? "0"), 10) || 0; + const rawAfterSeq = (opts as Record).afterSeq; + const afterSeq = Number.parseInt(typeof rawAfterSeq === "string" ? rawAfterSeq : "0", 10) || 0; return await agentSubscribeStreamJson(subscribeKey.trim(), afterSeq, runtime); }