next-issue 6.1.0 → 6.2.0

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/README.md CHANGED
@@ -437,6 +437,10 @@ the prompt asks them to keep only what still holds. The reviewer only reads it.
437
437
 
438
438
  ## Retry an issue that waits for a person
439
439
 
440
+ When the implementer makes no change, the hand-over comment holds its full
441
+ reply after the note, so its reasons and questions can be answered on the issue.
442
+ A reply too long for a GitHub comment is cut to fit, with a line that says so.
443
+
440
444
  A hand-over marks the state file as handed over. To give the issue another try,
441
445
  take the `status:needs-human` label off, or answer the hand-over. The next run
442
446
  that claims the issue puts the budgets and the findings back to zero, clears
@@ -1,6 +1,7 @@
1
1
  import { parseCommitSubject } from './agent-reply.mjs';
2
2
  import { CODING } from './agents.mjs';
3
3
  import { commitWork } from './fix.mjs';
4
+ import { HAND_OVER } from './hand-over-comments.mjs';
4
5
  import { escalateAndFinish } from './handover.mjs';
5
6
  import { fallbackTitle, ROUND_CONTINUE, runRole } from './job.mjs';
6
7
  import { implementPrompt } from './prompts.mjs';
@@ -25,9 +26,21 @@ async function useEarlierCommit(job) {
25
26
  const { context, log, state, worktree } = job;
26
27
  const earlier = await context.ports.latestSubject(worktree, context.base, context.config.remote);
27
28
  if (earlier === undefined) {
28
- return escalateAndFinish(job, 'The implementer produced no change.', 'no implementation commit');
29
+ return escalateAndFinish(job, noChangeNote(state.implementerReply ?? ''), 'no implementation commit');
29
30
  }
30
31
  log.event('implement.earlier', { subject: earlier }, 'quiet');
31
32
  state.title = earlier;
32
33
  return undefined;
33
34
  }
35
+ const NO_CHANGE = 'The implementer produced no change.';
36
+ const COMMENT_LIMIT = 65536;
37
+ const CUT = '\n\nThe reply was too long for a GitHub comment and was cut.';
38
+ function noChangeNote(reply) {
39
+ const text = reply.trim();
40
+ if (text === '') {
41
+ return NO_CHANGE;
42
+ }
43
+ const note = `${NO_CHANGE}\n\n${text}`;
44
+ const room = COMMENT_LIMIT - HAND_OVER.length - 1;
45
+ return note.length > room ? `${note.slice(0, room - CUT.length)}${CUT}` : note;
46
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-issue",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "description": "Autonomous issue harness driven by the pi SDK",
5
5
  "keywords": [
6
6
  "github",