aiterm-steer-delivery 0.5.2 → 0.5.3
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/CHANGELOG.md +4 -0
- package/dist/codex-receiver.js +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 0.5.3 (2026-11-12)
|
|
2
|
+
|
|
3
|
+
- A Codex App Server request no longer times out while an answer is already waiting in the pipe. When the calling process's event loop was blocked past the deadline (15 s by default), the timer fired before the answer was read and the request failed with `CODEX_RECEIVER_TIMEOUT`. The timer now waits one turn of the loop and rejects only if the request is still pending. Reported by Kiro: a host Aiterm blocked for ~16 s by goal reads made Codex goal reads unavailable.
|
|
4
|
+
|
|
1
5
|
## 0.5.2 (2026-11-03)
|
|
2
6
|
|
|
3
7
|
- Preserve safe OS failure details for process reads without exposing command lines or output.
|
package/dist/codex-receiver.js
CHANGED
|
@@ -78,10 +78,14 @@ export async function withCodexReceiver(profile, parent, action, runtime = {}) {
|
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
const id = ++sequence;
|
|
81
|
-
|
|
81
|
+
// A loop blocked past the deadline fires this timer before reading an answer already in the pipe.
|
|
82
|
+
// setImmediate runs after this turn's poll phase, so that answer settles the request first.
|
|
83
|
+
const timer = setTimeout(() => setImmediate(() => {
|
|
84
|
+
if (!pending.has(id))
|
|
85
|
+
return;
|
|
82
86
|
pending.delete(id);
|
|
83
87
|
reject(new CodexDeliveryError("CODEX_RECEIVER_TIMEOUT", `${method}の応答を確認できません`, method === "thread/queue/add"));
|
|
84
|
-
}, runtime.timeout_ms ?? 15_000);
|
|
88
|
+
}), runtime.timeout_ms ?? 15_000);
|
|
85
89
|
pending.set(id, { resolve, reject, timer, method });
|
|
86
90
|
child.stdin.write(JSON.stringify({ id, method, params }) + "\n");
|
|
87
91
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiterm-steer-delivery",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Aiterm's steer delivery as a library: deliver text to the parent AI session that called your MCP tool — steered into the running turn when it is busy, delivered normally when it is idle. Codex (official queue + sync hooks), Claude Code (asyncRewake hooks), Cursor (hooks + background receiver).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|