Skip to content

Commit 6c9ef99

Browse files
committed
fix: satisfy single-flight lint contracts
1 parent 50763ce commit 6c9ef99

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎src/gateway/session-reset-service.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,7 @@ async function ensureSessionRuntimeCleanup(params: {
445445
});
446446
};
447447
const ensureMcpRetirementWatcher = () => {
448-
let watcher!: Promise<void>;
449-
watcher = getOrCreatePromise(
448+
const watcher = getOrCreatePromise(
450449
mcpRunEndWatchers,
451450
sessionId,
452451
async () => {

‎src/tui/tui-task-suggestions.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export function createTuiTaskSuggestionController(deps: TaskSuggestionController
368368
// An event raced this snapshot. Retry instead of resurrecting resolved work.
369369
if (revision !== startRevision) {
370370
requestRerun();
371-
return;
371+
return true;
372372
}
373373
suggestions.clear();
374374
for (const value of listed) {

0 commit comments

Comments
 (0)