@zq-silk/yui 0.13.3 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3111,6 +3111,17 @@ export class FileSchedulerStoreAdapter {
|
|
|
3111
3111
|
current = rememberRoleAgentCompletedTurn(current, input.agentId, nativeSessionId, input.turnId, now);
|
|
3112
3112
|
store.saveGlobalRoleSessionSet(current);
|
|
3113
3113
|
completeRuntimeHookReservation(store, owner, input.launchId);
|
|
3114
|
+
if (input.roleName === SYSTEM_OPERATOR_ROLE
|
|
3115
|
+
&& input.adapterId === "codex"
|
|
3116
|
+
&& completedStatus === "ready") {
|
|
3117
|
+
const operatorMailbox = store.getWorkMailbox({ kind: "operator" });
|
|
3118
|
+
// A completed foreground Codex Turn leaves its native TUI attached to
|
|
3119
|
+
// the thread. Stop only that idle Role runtime so Desktop can become
|
|
3120
|
+
// the writer; the durable nativeSessionId remains available to resume.
|
|
3121
|
+
if (operatorMailbox === null || !mailboxHasWork(operatorMailbox)) {
|
|
3122
|
+
enqueueWork(store, runtimeLifecycleTarget(owner), RUNTIME_CLEANUP_REQUIRED_REASON, now);
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3114
3125
|
return current.sessions[input.agentId];
|
|
3115
3126
|
});
|
|
3116
3127
|
}
|