@henryqw/pi-pr 6.2.11 → 6.2.12

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/extensions/pr.ts +6 -2
  2. package/package.json +1 -1
package/extensions/pr.ts CHANGED
@@ -828,11 +828,15 @@ export default function pullRequestExtension(
828
828
  return;
829
829
  }
830
830
  } catch (error) {
831
- if (generation === sessionGeneration) ctx.ui.notify(`PR continuation stopped: ${error instanceof Error ? error.message : String(error)}`, "warning");
831
+ if (generation === sessionGeneration) {
832
+ activeInvocations.delete(invocation);
833
+ ctx.ui.notify(`PR continuation stopped: ${error instanceof Error ? error.message : String(error)}`, "warning");
834
+ }
832
835
  } finally {
833
836
  if (generation === sessionGeneration && (!workflowContext || completedRoutes.has(workflowContext.route))) {
834
837
  clearWorkflow(workflowContext);
835
- activeInvocations.delete(invocation);
838
+ // Settlement refreshes successful continuations; failed discovery must not retry immediately.
839
+ if (activeInvocations.has(invocation)) activeInvocations.set(invocation, "workflow");
836
840
  reconcileWidget(ctx);
837
841
  }
838
842
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-pr",
3
- "version": "6.2.11",
3
+ "version": "6.2.12",
4
4
  "description": "Run /pr to safely discover or link the current pull request, then create, update, address feedback, fix CI, or merge when ready.",
5
5
  "keywords": [
6
6
  "pi-package",