feat(web,hub): cancel queued messages (#568)

This commit is contained in:
Junmo Kim
2026-05-06 13:32:45 +08:00
committed by GitHub
parent de69027926
commit 8185f0287e
30 changed files with 1365 additions and 15 deletions
+6
View File
@@ -205,6 +205,12 @@ export async function runCodex(opts: {
});
});
session.onCancelQueuedMessage((localId) => {
const removed = messageQueue.cancelByLocalId(localId);
logger.debug(`[codex] cancelByLocalId(${localId}): ${removed ? 'removed' : 'not found (best-effort)'}`);
return removed;
});
const formatFailureReason = (message: string): string => {
const maxLength = 200;
if (message.length <= maxLength) {