fix: preserve paired owner workspace branch invariant
Safely re-anchor drifted paired owner workspaces, guard owner completion handling, and tighten generated attachment temp-dir allowlisting.
This commit is contained in:
@@ -676,6 +676,27 @@ export function completePairedExecutionContext(args: {
|
||||
}
|
||||
|
||||
if (role === 'owner') {
|
||||
try {
|
||||
provisionOwnerWorkspaceForPairedTask(taskId);
|
||||
} catch (error) {
|
||||
if (isOwnerWorkspaceRepairNeededError(error)) {
|
||||
logger.warn(
|
||||
{
|
||||
taskId,
|
||||
role,
|
||||
repairMessage: error.blockMessage || error.message,
|
||||
},
|
||||
'Owner workspace post-run guard blocked completion handling',
|
||||
);
|
||||
handleFailedOwnerExecution({
|
||||
task,
|
||||
taskId,
|
||||
summary: error.blockMessage || error.message,
|
||||
});
|
||||
return;
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
handleOwnerCompletion({ task, taskId, summary: args.summary });
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user