@eduardo191labs/opencode-free-pi 0.3.12 → 0.3.13
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.
- package/dist/session/replay.js +3 -1
- package/package.json +1 -1
- package/src/session/replay.ts +7 -1
package/dist/session/replay.js
CHANGED
|
@@ -77,8 +77,10 @@ export async function replayConcurrentResponse(deps, event) {
|
|
|
77
77
|
.text()
|
|
78
78
|
.catch(() => undefined)
|
|
79
79
|
: undefined);
|
|
80
|
-
if (!body)
|
|
80
|
+
if (!body) {
|
|
81
|
+
deps.log.warn("free-pi session busy but the request body was not available to replay", { sessionID: event.sessionID });
|
|
81
82
|
return;
|
|
83
|
+
}
|
|
82
84
|
let previous = request.headers.get("x-session-id") ??
|
|
83
85
|
wireSessionID(deps, event.sessionID);
|
|
84
86
|
for (let attempt = 1; attempt <= REPLAY_MAX_ATTEMPTS; attempt++) {
|
package/package.json
CHANGED
package/src/session/replay.ts
CHANGED
|
@@ -91,7 +91,13 @@ export async function replayConcurrentResponse(
|
|
|
91
91
|
.text()
|
|
92
92
|
.catch(() => undefined)
|
|
93
93
|
: undefined);
|
|
94
|
-
if (!body)
|
|
94
|
+
if (!body) {
|
|
95
|
+
deps.log.warn(
|
|
96
|
+
"free-pi session busy but the request body was not available to replay",
|
|
97
|
+
{ sessionID: event.sessionID },
|
|
98
|
+
);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
95
101
|
|
|
96
102
|
let previous =
|
|
97
103
|
request.headers.get("x-session-id") ??
|