Skip to content

Commit 1834ee9

Browse files
committed
fix(gateway): use unknown-typed catch variables for persistence error logging
1 parent 9154c1f commit 1834ee9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/gateway/chat-abort.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function registerChatAbortController(params: {
176176
params.chatAbortControllers.delete(params.runId);
177177
}
178178
})
179-
.catch((err) => {
179+
.catch((err: unknown) => {
180180
// A rejected terminal persistence must still release the controller,
181181
// but log it so operators can see DB/file-system health failures
182182
// instead of losing the terminal state silently.

src/gateway/server-runtime-subscriptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function startGatewayEventSubscriptions(params: {
102102
entry.projectSessionTerminalPersistence = persistence;
103103
if (entry.registrationCleanupRequested === true) {
104104
void persistence
105-
.catch((err) => {
105+
.catch((err: unknown) => {
106106
// Still release the entry on failure, but surface the
107107
// persistence error instead of swallowing it silently.
108108
log.error?.(
@@ -124,7 +124,7 @@ export function startGatewayEventSubscriptions(params: {
124124
sessionKey &&
125125
sessionId
126126
) {
127-
void persistence.catch((err) => {
127+
void persistence.catch((err: unknown) => {
128128
// Fall back to restart recovery on failure, and log the
129129
// persistence error so the fallback is not silent.
130130
log.error?.(

0 commit comments

Comments
 (0)