diff --git a/src/paired-execution-context.ts b/src/paired-execution-context.ts index 6554726..3c201ad 100644 --- a/src/paired-execution-context.ts +++ b/src/paired-execution-context.ts @@ -484,7 +484,15 @@ export function preparePairedExecutionContext(args: { pairedTurnIdentity?: PairedTurnIdentity; }): PreparedPairedExecutionContext | undefined { const { group, chatJid, roomRoleContext } = args; - if (!roomRoleContext || !group.workDir) { + // Do NOT bail out on a null group.workDir here: ensurePairedProject() below + // self-heals that case for tribunal rooms by provisioning the canonical + // workspace on demand. Returning early made that self-heal unreachable, so a + // tribunal room registered without work_dir produced no paired context at + // all — the turn output was never persisted, the task revision stayed frozen + // and the 10-minute execution lease was never released, which silently + // dropped every follow-up human message inside that window. Single-mode + // rooms still bail out via ensureActiveTask returning null. + if (!roomRoleContext) { return undefined; }