next-issue 14.1.0 → 14.1.1

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.
Files changed (2) hide show
  1. package/dist/serve.mjs +8 -2
  2. package/package.json +1 -1
package/dist/serve.mjs CHANGED
@@ -76,6 +76,12 @@ export async function startWorker(options) {
76
76
  void close();
77
77
  }
78
78
  };
79
+ const idleTimeUp = () => {
80
+ if (polled()) {
81
+ idleTimer = setTimeout(idleTimeUp, idleMs - (Date.now() - polledAt));
82
+ }
83
+ closeWhenIdle();
84
+ };
79
85
  const upgradeBetweenIssues = (run) => {
80
86
  if (restart === undefined) {
81
87
  return;
@@ -233,7 +239,7 @@ export async function startWorker(options) {
233
239
  const answer = async (request, response) => {
234
240
  polledAt = Date.now();
235
241
  clearTimeout(idleTimer);
236
- idleTimer = setTimeout(closeWhenIdle, idleMs);
242
+ idleTimer = setTimeout(idleTimeUp, idleMs);
237
243
  const refusal = (text) => [
238
244
  { type: 'error', root: options.root, message: text },
239
245
  ];
@@ -270,7 +276,7 @@ export async function startWorker(options) {
270
276
  await listen(server, draft);
271
277
  await rename(draft, options.socketPath);
272
278
  owned.socket = fileId(options.socketPath);
273
- idleTimer = setTimeout(closeWhenIdle, idleMs);
279
+ idleTimer = setTimeout(idleTimeUp, idleMs);
274
280
  return { closed, close, release: () => removeOwned(owned) };
275
281
  }
276
282
  function upgradedRun(run) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "14.1.0",
3
+ "version": "14.1.1",
4
4
  "description": "Autonomous issue harness driven by the Claude Agent SDK",
5
5
  "keywords": [
6
6
  "github",