chore: fix eslint warnings
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -829,6 +829,7 @@ export class DashboardTUI {
|
||||
// them from the stream.
|
||||
private installMouseListener(): void {
|
||||
if (this.mouseStdinListener) return;
|
||||
// eslint-disable-next-line no-control-regex -- ESC byte is intentional for SGR mouse parsing
|
||||
const mouseRe = /\x1b\[<(\d+);\d+;\d+[Mm]/g;
|
||||
const listener = (chunk: Buffer | string): void => {
|
||||
const text = typeof chunk === "string" ? chunk : chunk.toString("utf8");
|
||||
|
||||
@@ -3867,10 +3867,10 @@ export function connectAgentOnboardingStream(
|
||||
try { handlers.onThinking?.(JSON.parse(event.data)); } catch { handlers.onThinking?.(event.data); }
|
||||
},
|
||||
question: (event) => {
|
||||
try { handlers.onQuestion?.(JSON.parse(event.data) as PlanningQuestion); } catch {}
|
||||
try { handlers.onQuestion?.(JSON.parse(event.data) as PlanningQuestion); } catch { /* ignore parse error */ }
|
||||
},
|
||||
summary: (event) => {
|
||||
try { handlers.onSummary?.(JSON.parse(event.data) as AgentOnboardingSummary); } catch {}
|
||||
try { handlers.onSummary?.(JSON.parse(event.data) as AgentOnboardingSummary); } catch { /* ignore parse error */ }
|
||||
},
|
||||
error: (event) => {
|
||||
try {
|
||||
|
||||
@@ -304,7 +304,7 @@ export async function cancelAgentOnboardingSession(sessionId: string): Promise<v
|
||||
const session = sessions.get(sessionId);
|
||||
if (!session) throw new SessionNotFoundError(`Agent onboarding session ${sessionId} not found or expired`);
|
||||
stopAgentOnboardingGeneration(sessionId);
|
||||
try { session.agent?.session.dispose?.(); } catch {}
|
||||
try { session.agent?.session.dispose?.(); } catch { /* ignore dispose errors */ }
|
||||
sessions.delete(sessionId);
|
||||
agentOnboardingStreamManager.cleanupSession(sessionId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user