@henryqw/pi-pr 9.0.2 → 9.0.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/README.md CHANGED
@@ -78,7 +78,7 @@ CI repair reads each failed job's log once, retaining at most a 20 KiB UTF-8 tai
78
78
 
79
79
  ### Refresh and Herdr
80
80
 
81
- Discovery starts in the background when a session starts. Status refreshes after local commits, PR creation, pushes, and completed workflows, but not on a timer; external changes may leave the display stale. `/pr` always reads fresh state before acting. Outside a Git worktree the UI stays silent; discovery failures show `PR · status unavailable` with a generic error. A GitHub API quota error instead reports `GitHub API rate limit exhausted; retry after GitHub resets it` without immediately retrying.
81
+ Discovery starts in the background when a session starts. Status refreshes after local commits, PR creation, pushes, and completed workflows, but not on a timer; external changes may leave the display stale. `/pr` always reads fresh state before acting. Fresh route discovery updates the PR footer during automatic continuation, including after PR creation, without waiting for final settlement. Action hints stay hidden while a workflow is active. Outside a Git worktree the UI stays silent; discovery failures show `PR · status unavailable` with a generic error. A GitHub API quota error instead reports `GitHub API rate limit exhausted; retry after GitHub resets it` without immediately retrying.
82
82
 
83
83
  After creating a PR, the extension prefixes the Herdr workspace name with `#<number> • ` when `HERDR_ENV=1` and `HERDR_WORKSPACE_ID` is non-empty. It renames only the workspace, not the branch. Outside Herdr nothing is renamed. A failed rename leaves the PR and UI usable and warns `Herdr workspace rename failed: <error>`.
84
84
 
package/extensions/pr.ts CHANGED
@@ -963,7 +963,14 @@ export default function pullRequestExtension(
963
963
  });
964
964
 
965
965
  const commandHandler = createCommandHandler(pi, {
966
- loadCurrentPullRequest: load,
966
+ loadCurrentPullRequest: async (api, loadContext, inspectedLocal) => {
967
+ const generation = sessionGeneration;
968
+ const discovery = await load(api, loadContext, inspectedLocal);
969
+ // Show fresh route discovery before settlement, without refreshing helper preflights.
970
+ if (generation === sessionGeneration && context?.cwd === loadContext.cwd &&
971
+ !loadContext.signal?.aborted && discovery.kind === "current") render(context, discovery);
972
+ return discovery;
973
+ },
967
974
  needsFeedbackAttention: dependencies.needsFeedbackAttention,
968
975
  syncLocalHead: dependencies.syncLocalHead,
969
976
  ciPollMs: dependencies.ciPollMs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-pr",
3
- "version": "9.0.2",
3
+ "version": "9.0.3",
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",