feat: enable type-aware no-floating-promises rule, fix all 177 violations (#22741)

This commit is contained in:
Kit Langton
2026-04-15 23:27:32 -04:00
committed by GitHub
parent 343a564183
commit 80f1f1b5b8
103 changed files with 212 additions and 187 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ const opencode = await createOpencode({
console.log("✅ Opencode server ready")
const sessions = new Map<string, { client: any; server: any; sessionId: string; channel: string; thread: string }>()
;(async () => {
void (async () => {
const events = await opencode.client.event.subscribe()
for await (const event of events.stream) {
if (event.type === "message.part.updated") {
@@ -29,7 +29,7 @@ const sessions = new Map<string, { client: any; server: any; sessionId: string;
// Find the session for this tool update
for (const [_sessionKey, session] of sessions.entries()) {
if (session.sessionId === part.sessionID) {
handleToolUpdate(part, session.channel, session.thread)
void handleToolUpdate(part, session.channel, session.thread)
break
}
}