@atolis-hq/wake 0.3.112 → 0.3.113
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.
|
@@ -180,6 +180,8 @@ function recordToolOutput(payload, telemetry) {
|
|
|
180
180
|
function recordExecOutput(call, result, telemetry) {
|
|
181
181
|
if (call.spawnsBackgroundJob === true && result.exitCode === undefined && result.pendingCellId)
|
|
182
182
|
telemetry.pendingCells.add(result.pendingCellId);
|
|
183
|
+
if (call.writeStdinSessionId !== undefined && result.pendingCellId !== undefined)
|
|
184
|
+
telemetry.sessionsByCell.set(result.pendingCellId, call.writeStdinSessionId);
|
|
183
185
|
if (call.writeStdinSessionId === undefined || result.jsonExitCode === undefined)
|
|
184
186
|
return;
|
|
185
187
|
resolveSession(call.writeStdinSessionId, telemetry);
|
|
@@ -193,8 +195,12 @@ function resolveSession(sessionId, telemetry) {
|
|
|
193
195
|
function recordWaitOutput(call, result, telemetry) {
|
|
194
196
|
if (call.cellId === undefined)
|
|
195
197
|
return;
|
|
196
|
-
if (result.exitCode !== undefined)
|
|
198
|
+
if (result.exitCode !== undefined) {
|
|
197
199
|
telemetry.resolvedCells.add(call.cellId);
|
|
200
|
+
const sessionId = telemetry.sessionsByCell.get(call.cellId);
|
|
201
|
+
if (sessionId !== undefined && result.jsonExitCode !== undefined)
|
|
202
|
+
resolveSession(sessionId, telemetry);
|
|
203
|
+
}
|
|
198
204
|
if (result.sessionId !== undefined)
|
|
199
205
|
telemetry.sessionsByCell.set(call.cellId, result.sessionId);
|
|
200
206
|
if (result.notFoundCellId === call.cellId)
|