@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eduardo191labs/opencode-free-pi",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "Ad-supported free-pi provider plugin for OpenCode on Windows, Linux, macOS and Termux",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -91,7 +91,13 @@ export async function replayConcurrentResponse(
91
91
  .text()
92
92
  .catch(() => undefined)
93
93
  : undefined);
94
- if (!body) return;
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") ??