Skip to content

[3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests - #3580

Merged
integry merged 13 commits into
3542-epic-plugin-system-xu8from
3551/claude-opus-5-5-plugin-slash-commands-pro-20261115-2203-syc
Nov 16, 2026
Merged

integry merged 13 commits into
3542-epic-plugin-system-xu8from
3551/claude-opus-5-5-plugin-slash-commands-pro-20261115-2203-syc

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3551

Branch: 3551/claude-opus-5-5-plugin-slash-commands-pro-20261115-2203-syc
Commits: ✅ Changes committed (dadc700)


AI Processing Completed

Execution Details:

Summary:
Plugins can now add prompt slash commands. On a pull request, a command queues one follow-up task; on an issue, it starts an implementation task. The task's instruction is the prompt from the manifest, followed by the rest of the comment line, which is marked as untrusted text. The run gets the plugin's skill and read server from the manifest.

Tests:

  • Passing: the new tests (core resolver/enable conflicts 9, shared commands 4, intake 8); the updated shared, core, plugins:check, parser and UI suites; 707 root tests that load the changed job and webhook files; 330 in a second root run; 3 Playwright tests on the Plugins page.
  • Clean: typecheck for root, core, API and UI; the zero-warning lint for root src/, core, API and the changed UI files; the OpenAPI check.
  • Not run: the full repository suite and a docs site build, so the new doc anchors and links are unchecked.

How it works:

  • One built-in list. packages/shared/src/commands.ts now holds the built-in command list. The existing parser uses it, so built-in parsing is unchanged; regression tests confirm it. The manifest schema refuses plugin command names that are built-in, so plugins:check refuses them too.
  • Command schema. contributes.commands entries need where, kind: 'prompt' and prompt, and may list skills, servers and needsWrite. The listed skills and servers must be the plugin's own, and a write server requires needsWrite. The example plugin now has /example-notes.
  • Pull requests. After the built-in commands, commentEventHandler.ts looks up enabled plugin commands for that repository. A plugin command goes through the same author filters, ignore keywords, assignment gate and duplicate check as /review. It always gets its own job and is never batched with other comments. The job's extension request adds the plugin's library items by their library names, taken from the manifest; the comment can't change them.
  • Issues. Until now, comments on plain issues were ignored. They are now acted on only when they are a plugin command. issueCommentCommands.ts adds the first processing label (e.g. AI) and queues the usual issue job carrying the command. If the issue already has a task (queued, or an AI-processing / AI-done label), it replies with the reason instead of starting a second one.
  • Disabled, uninstalled or out of scope. The comment is treated exactly as before plugins. If the plugin state can't be read, the command is also treated as unknown.
  • Conflicts at enable time. Enabling is refused when another enabled plugin has a command with the same name, and the message names that plugin. The Enable step shows this before you try.
  • Help. The Plugins page lists commands under "What it added". The "ProPR Slash Commands" block in completion comments and issue PR bodies lists enabled plugin commands with their plugin name; with none enabled it is unchanged. Both docs pages are updated.

Decisions for you:

  • needsWrite commands are accepted by the manifest check but refused when used, with a reply comment.
  • Only the command line counts as the argument. The issue says the argument is "the rest of the comment line", so lines below the command are left out. Tell me if they should be included.
  • Issue commands can't re-run finished work. On an issue with an AI-done label, a plugin command replies instead of starting a new task. Allowing re-runs there would need its own design.
  • Not covered: comments posted through the ProPR API follow-up route, and the "blocked" completion comment's command list.

A preview of the "What it added" list with the new command row is attached.

Acceptance criteria

  • AC1: met — packages/core/src/webhook/commentEventHandler.ts, packages/core/src/webhook/issueCommentCommands.ts, src/jobs/processPullRequestCommentJob.ts, src/jobs/issueJob/agent.ts; test/pluginCommandIntake.test.ts, packages/core/test/pluginCommands.test.ts
  • AC2: met — packages/shared/src/plugins.ts, scripts/check-plugins.mjs, packages/core/src/plugins/pluginStore.ts; test/checkPlugins.test.mjs, packages/shared/test/plugins.test.ts, packages/core/test/pluginCommands.test.ts ("enabling a plugin whose command another enabled plugin has is refused")
  • AC3: met — packages/core/src/plugins/pluginCommands.ts; packages/core/test/pluginCommands.test.ts, test/pluginCommandIntake.test.ts (repository limit, disabled, uninstalled, filtered author, assignment gate on the same path as built-ins)
  • AC4: met — packages/shared/src/commands.ts; packages/shared/test/commands.test.ts, packages/core/test/pluginCommands.test.ts and test/pluginCommandIntake.test.ts (arguments that try to add instructions, skills and servers)
  • AC5: met — packages/core/src/webhook/slashCommandParser.ts; test/slashCommandParser.test.ts, test/pluginCommandIntake.test.ts ("built-in commands keep their behaviour"), existing test/commentEventHandler.*.test.ts and test/slashCommandsBlock.test.ts pass
  • AC6: met — docs/docs/features/pr-commands.md (Plugin Commands section), docs/docs/features/plugins.md (Commands sections); docs build not run

Review digest

Acceptance criteria (6 of 6 met, as stated by the agent)

  • ✅ AC1 (met): A `prompt` command from the example plugin on a pull request queues one follow-up task whose instruction contains the manifest prompt and the delimited user argument, with the plugin's named skill and read server attached; on an issue it starts an implementation task. — `packages/core/src/webhook/commentEventHandler.ts`, `packages/core/src/webhook/issueCommentCommands.ts`, `src/jobs/processPullRequestCommentJob.ts`, `src/jobs/issueJob/agent.ts`; `test/pluginCommandIntake.test.ts`, `packages/core/test/pluginCommands.test.ts`
  • ✅ AC2 (met): Name conflicts with built-ins and between plugins are refused by `plugins:check` and at enable time. — `packages/shared/src/plugins.ts`, `scripts/check-plugins.mjs`, `packages/core/src/plugins/pluginStore.ts`; `test/checkPlugins.test.mjs`, `packages/shared/test/plugins.test.ts`, `packages/core/test/pluginCommands.test.ts` ("enabling a plugin whose command another enabled plugin has is refused")
  • ✅ AC3 (met): Commands are ignored outside the plugin's repository limit and when the plugin is off; trigger access rules are honoured. — `packages/core/src/plugins/pluginCommands.ts`; `packages/core/test/pluginCommands.test.ts`, `test/pluginCommandIntake.test.ts` (repository limit, disabled, uninstalled, filtered author, assignment gate on the same path as built-ins)
  • ✅ AC4 (met): The command's argument cannot change which skills or servers are attached and is delimited as untrusted text in the prompt (test with an argument that tries to add instructions). — `packages/shared/src/commands.ts`; `packages/shared/test/commands.test.ts`, `packages/core/test/pluginCommands.test.ts` and `test/pluginCommandIntake.test.ts` (arguments that try to add instructions, skills and servers)
  • ✅ AC5 (met): Existing built-in commands behave exactly as before (regression tests on the current parser). — `packages/core/src/webhook/slashCommandParser.ts`; `test/slashCommandParser.test.ts`, `test/pluginCommandIntake.test.ts` ("built-in commands keep their behaviour"), existing `test/commentEventHandler.*.test.ts` and `test/slashCommandsBlock.test.ts` pass
  • ✅ AC6 (met): Docs: `docs/docs/features/pr-commands.md` (plugin commands section) and `docs/docs/features/plugins.md`. — `docs/docs/features/pr-commands.md` (Plugin Commands section), `docs/docs/features/plugins.md` (Commands sections); docs build not run

Risk-tiered paths

  • High risk: none
  • Normal risk (27 files)
    • packages/api/openapi/schemasPlugins.ts (+8/−2)
    • packages/client/src/generated/apiTypes.ts (+28/−4)
    • packages/core/src/index.ts (+5/−0)
    • packages/core/src/plugins/pluginCommands.ts (added, +197/−0)
    • packages/core/src/plugins/pluginStore.ts (+13/−3)
    • packages/core/src/queue/taskQueue.types.ts (+5/−0)
    • packages/core/src/webhook/commentEventHandler.ts (+56/−3)
    • packages/core/src/webhook/issueCommentCommands.ts (added, +120/−0)
    • packages/core/src/webhook/slashCommandParser.ts (+5/−2)
    • packages/core/src/webhook/webhookHandler.ts (+4/−0)
    • packages/plugins/example-pack/manifest.json (+12/−1)
    • packages/shared/src/commands.ts (added, +113/−0)
    • packages/shared/src/index.ts (+1/−0)
    • packages/shared/src/plugins.ts (+51/−8)
    • propr-ui/src/pages/PluginsPage/PluginContributions.tsx (+17/−1)
    • propr-ui/src/pages/PluginsPage/pluginFixtures.testUtils.tsx (+1/−1)
    • scripts/check-plugins.mjs (+3/−1)
    • src/github/prFormatters.ts (+4/−0)
    • src/jobs/issueJob/agent.ts (+6/−2)
    • src/jobs/pluginCommandTask.ts (added, +35/−0)
    • src/jobs/prCommentLabelGate.ts (+4/−3)
    • src/jobs/prCommentPostExecution.ts (+2/−0)
    • src/jobs/prCommentReviewJob.ts (+1/−1)
    • src/jobs/prCompletionComment.ts (+7/−5)
    • src/jobs/processPullRequestCommentJob.ts (+10/−4)
    • src/shared/pluginCommandHelp.ts (added, +17/−0)
    • src/shared/slashCommandsBlock.ts (+12/−2)
  • Low risk (27 files)
    • docs/docs/features/plugins.md (+57/−6)
    • docs/docs/features/pr-commands.md (+23/−0)
    • docs/static/openapi/propr-api.yaml (+66/−0)
    • packages/core/test/pluginCommands.test.ts (added, +176/−0)
    • packages/plugins/example-pack/README.md (+5/−0)
    • packages/shared/test/commands.test.ts (added, +50/−0)
    • packages/shared/test/plugins.test.ts (+23/−3)
    • propr-ui/e2e/plugins.fixture.ts (+2/−1)
    • propr-ui/e2e/plugins.pw.ts (+3/−0)
    • propr-ui/src/pages/PluginsPage/PluginDetail.test.tsx (+1/−0)
    • propr-ui/src/pages/PluginsPage/pluginUi.test.ts (+1/−1)
    • test/checkPlugins.test.mjs (+10/−0)
    • test/fixtures/plugins-check/manifests/bad-id.json (+1/−1)
    • test/fixtures/plugins-check/manifests/duplicate-server-name.json (+1/−1)
    • test/fixtures/plugins-check/manifests/host-not-hostname.json (+1/−1)
    • test/fixtures/plugins-check/manifests/missing-connection.json (+1/−1)
    • test/fixtures/plugins-check/manifests/package-command.json (+1/−1)
    • test/fixtures/plugins-check/manifests/package-missing-integrity.json (+1/−1)
    • test/fixtures/plugins-check/manifests/package-path.json (+1/−1)
    • test/fixtures/plugins-check/manifests/package-range.json (+1/−1)
    • test/fixtures/plugins-check/manifests/package-tag.json (+1/−1)
    • test/fixtures/plugins-check/manifests/secret-env-not-token.json (+1/−1)
    • test/fixtures/plugins-check/manifests/unknown-permission.json (+1/−1)
    • …and 4 more

Validation evidence

  • No repository validation commands ran.

Diff size: 54 files changed, +1,634/−66 lines

Detailed Logs:

  • Conversation: 190 messages
  • Session: 5c728511-81f7-4569-be70-9bf2e6b6c836

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3551-2026-11-15T22-34-07-875Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3551-2026-11-15T22-34-07-875Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: Plugins can now add `prompt` slash commands. On a pull request, a command queues one follow-up task; on an issue, it starts an implementation task. The task's instruction is the prompt from the manife...


This PR was created automatically by ProPR after processing issue #3551.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!


Visual preview

Plugin commands under What it added

Plugin commands under What it added

The example plugin's page with the plugin enabled: its /example-notes command is listed under What it added with its description, where it works (pull request and issue comments) and its state.

Full-size original

…mand queues one follow-up task; on an issue, it starts an implementation task. The task's instruction is the prompt from the manifest, followed by the rest of the comment line, which is marked as untrusted text. The run gets the plugin's skill and read server from the manifest.

Tests:
- Passing: the new tests (core resolver/enable conflicts 9, shared commands 4, intake 8); the updated shared, core, `plugins:check`, parser and UI suites; 707 root tests that load the changed job and webhook files; 330 in a second root run; 3 Playwright tests on the Plugins page.
- Clean: typecheck for root, core, API and UI; the zero-warning lint for root `src/`, core, API and the changed UI files; the OpenAPI check.
- Not run: the full repository suite and a docs site build, so the new doc anchors and links are unchecked.

How it works:
- One built-in list. `packages/shared/src/commands.ts` now holds the built-in command list. The existing parser uses it, so built-in parsing is unchanged; regression tests confirm it. The manifest schema refuses plugin command names that are built-in, so `plugins:check` refuses them too.
- Command schema. `contributes.commands` entries need `where`, `kind: 'prompt'` and `prompt`, and may list `skills`, `servers` and `needsWrite`. The listed skills and servers must be the plugin's own, and a write server requires `needsWrite`. The example plugin now has `/example-notes`.
- Pull requests. After the built-in commands, `commentEventHandler.ts` looks up enabled plugin commands for that repository. A plugin command goes through the same author filters, ignore keywords, assignment gate and duplicate check as `/review`. It always gets its own job and is never batched with other comments. The job's extension request adds the plugin's library items by their library names, taken from the manifest; the comment can't change them.
- Issues. Until now, comments on plain issues were ignored. They are now acted on only when they are a plugin command. `issueCommentCommands.ts` adds the first processing label (e.g. `AI`) and queues the usual issue job carrying the command. If the issue already has a task (queued, or an `AI-processing` / `AI-done` label), it replies with the reason instead of starting a second one.
- Disabled, uninstalled or out of scope. The comment is treated exactly as before plugins. If the plugin state can't be read, the command is also treated as unknown.
- Conflicts at enable time. Enabling is refused when another enabled plugin has a command with the same name, and the message names that plugin. The Enable step shows this before you try.
- Help. The Plugins page lists commands under "What it added". The "ProPR Slash Commands" block in completion comments and issue PR bodies lists enabled plugin commands with their plugin name; with none enabled it is unchanged. Both docs pages are updated.

Decisions for you:
- `needsWrite` commands are accepted by the manifest check but refused when used, with a reply comment.
- Only the command line counts as the argument. The issue says the argument is "the rest of the comment line", so lines below the command are left out. Tell me if they should be included.
- Issue commands can't re-run finished work. On an issue with an `AI-done` label, a plugin command replies instead of starting a new task. Allowing re-runs there would need its own design.
- Not covered: comments posted through the ProPR API follow-up route, and the "blocked" completion comment's command list.

A preview of the "What it added" list with the new command row is attached.

Acceptance criteria
- AC1: met — `packages/core/src/webhook/commentEventHandler.ts`, `packages/core/src/webhook/issueCommentCommands.ts`, `src/jobs/processPullRequestCommentJob.ts`, `src/jobs/issueJob/agent.ts`; `test/pluginCommandIntake.test.ts`, `packages/core/test/pluginCommands.test.ts`
- AC2: met — `packages/shared/src/plugins.ts`, `scripts/check-plugins.mjs`, `packages/core/src/plugins/pluginStore.ts`; `test/checkPlugins.test.mjs`, `packages/shared/test/plugins.test.ts`, `packages/core/test/pluginCommands.test.ts` ("enabling a plugin whose command another enabled plugin has is refused")
- AC3: met — `packages/core/src/plugins/pluginCommands.ts`; `packages/core/test/pluginCommands.test.ts`, `test/pluginCommandIntake.test.ts` (repository limit, disabled, uninstalled, filtered author, assignment gate on the same path as built-ins)
- AC4: met — `packages/shared/src/commands.ts`; `packages/shared/test/commands.test.ts`, `packages/core/test/pluginCommands.test.ts` and `test/pluginCommandIntake.test.ts` (arguments that try to add instructions, skills and servers)
- AC5: met — `packages/core/src/webhook/slashCommandParser.ts`; `test/slashCommandParser.test.ts`, `test/pluginCommandIntake.test.ts` ("built-in commands keep their behaviour"), existing `test/commentEventHandler.*.test.ts` and `test/slashCommandsBlock.test.ts` pass
- AC6: met — `docs/docs/features/pr-commands.md` (Plugin Commands section), `docs/docs/features/plugins.md` (Commands sections); docs build not run
@propr-dev

propr-dev Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=10
Triggered automatically by the requested execution settings.

@propr-dev propr-dev Bot added the ultrafix label Nov 15, 2026
@propr-dev

propr-dev Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

This PR adds manifest-defined slash commands across resolution, comment intake, task execution, help, and documentation. It needs changes before merge: issue-command intake can lose requests after transient failures and overlooks lifecycle labels associated with other configured processing labels.

✅ Manifest-controlled extensions — Skills and servers are resolved from plugin-owned library entries, independently of comment arguments.

✅ Delimited arguments — Argument encoding prevents user text from closing the untrusted-input delimiter; focused tests cover this behavior.

✅ Built-in compatibility — The existing parser now consumes the shared command list without changing its recognized commands.

This is a static review of the supplied code; no commands were run. Current checks show no failures and four pending checks.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Failed issue intake can permanently suppress retries

  • Category: correctness

  • Required behavior: A transient intake failure must remain retryable without losing the plugin instruction or falsely reporting that work already exists.

  • Evidence: packages/core/src/webhook/issueCommentCommands.ts:83-85,97-99,116-118 — claim acquisition and failure cleanup.

    1. An eligible issue command acquires its comment claim and the 30-second issue dedupe key.
    2. Adding the processing label or enqueueing the job throws before a job is created.
    3. The catch deletes only the comment claim; the issue dedupe key remains.
    4. A redelivery within 30 seconds reacquires the comment claim, encounters the retained dedupe key, posts “already starting or running,” and returns normally.
    5. That refusal retains the comment claim for 24 hours, suppressing subsequent deliveries even though this attempt created no task.

    The short dedupe TTL does not recover the command because the retry creates a much longer claim. There is a sibling cleanup gap: defaultGitHub() is awaited after acquiring the comment claim but before entering try, so an authentication initialization failure also strands that claim. static trace: both sequences follow the supplied handler’s acquisition, return, and exception paths; the new tests cover successful intake and busy refusal, not these failures.

  • Minimum fix: Include GitHub initialization inside the protected failure scope and release the issue dedupe reservation owned by a failed attempt along with its comment claim. Add regression coverage for failure followed by immediate redelivery.

F2: 🔴 Busy detection ignores other configured label families

  • Category: correctness

  • Required behavior: Issue commands must refuse issues whose ProPR work is already running or finished, regardless of which configured processing label started it.

  • Evidence: packages/core/src/webhook/issueCommentCommands.ts:93-98 — only the first primary label contributes lifecycle labels to the busy check.

    1. Configure primary processing labels as ['AI', 'propr'].
    2. An issue previously processed through propr carries propr-done and has no active or waiting parent job.
    3. An eligible plugin command selects AI and checks only AI-processing, AI-done, and AI-cancelled.
    4. With no current dedupe reservation, intake adds AI and queues another implementation task despite the existing completion label.

    Queue inspection cannot detect completed work, and the dedupe key only covers a short intake window. static trace: the handler explicitly discards every primary label after the first; existing tests exercise only ['AI'].

  • Minimum fix: Check lifecycle labels derived from every configured primary processing label, while retaining the first label as the default for newly started work. Test refusal for a completed issue using a secondary label.

Suggestions

These are optional follow-ups and are not sent to /fix.

No suggestions.

Score

The core command implementation is coherent and has focused coverage, but two issue-intake defects require correction before merge. Current CI has no reported failures, with four checks still pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 45s
  • Tokens: 89,090 (87,966 in / 1,124 out)
  • Cost: $0.81

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 F2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 3a8cdc3

Addressed 1 AI review comment (IDs: 6902692840)

Addressed findings F1, F2

Summary of Changes

I fixed both findings in packages/core/src/webhook/issueCommentCommands.ts. All 13 tests in test/pluginCommandIntake.test.ts pass, including the new ones. Typecheck for core and root and the zero-warning core lint are clean. I put the original handler back temporarily, and 4 of the new regression tests failed on it, so they do catch both defects.

F1: a failed issue intake now stays retryable

  • The GitHub sign-in step (defaultGitHub()) now runs inside the protected try, so a sign-in failure releases the comment claim too.
  • An attempt that takes the issue's 30-second dedupe window now gives it back if it fails. Before, a failure released only the comment claim. Now it also releases the dedupe window, and only if the window is still this attempt's (an atomic check-and-delete against a unique token). So a failure can't release a window that a later label event or command has taken.
  • If releasing either one fails, that is logged and the original error is still raised.
  • New tests: a failure during GitHub sign-in, adding the processing label, or queueing the job, each followed by an immediate redelivery. The redelivery starts the task and doesn't post "already starting or running". A further test confirms a failed attempt leaves another holder's dedupe window alone.

F2: busy detection covers every processing label

  • The busy check now uses the -processing, -done and -cancelled labels of every configured primary label. New work still starts with the first label.
  • New test: with labels ['AI', 'propr'], an issue marked propr-done gets the refusal reply and nothing is queued. An unlabelled issue still starts with AI.

Other notes

  • Existing gap, unchanged: if adding the label succeeds and queueing the job then fails, the processing label stays on the issue. If the label webhook arrives after the window is released, it can start a task without the command. The retried comment would then be told the issue is busy. That depends on when GitHub delivers the webhook, so it can't be fully closed.
  • Same defect elsewhere: the pull-request path for plugin commands in commentEventHandler.ts already does its sign-in inside the protected block and has no dedupe window, so it needed no change.
  • Test environment: the test file only runs here with GIT_CLONES_BASE_PATH and GIT_WORKTREES_BASE_PATH pointed at writable directories, because /tmp/git-processor is read-only in this container. This isn't caused by the change.

No preview is attached because nothing visible changed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/webhook/issueCommentCommands.ts (+34/−8)
  • Low risk (1 file)
    • test/pluginCommandIntake.test.ts (+57/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 2 files changed, +91/−8 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 4m 41s
  • Tokens: 732,752 (725,378 in / 7,374 out)
  • Cost: $0.59

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…mmentCommands.ts`. All 13 tests in `test/pluginCommandIntake.test.ts` pass, including the new ones. Typecheck for core and root and the zero-warning core lint are clean. I put the original handler back temporarily, and 4 of the new regression tests failed on it, so they do catch both defects.

I fixed both findings in `packages/core/src/webhook/issueCommentCommands.ts`. All 13 tests in `test/pluginCommandIntake.test.ts` pass, including the new ones. Typecheck for core and root and the zero-warning core lint are clean. I put the original handler back temporarily, and 4 of the new regression tests failed on it, so they do catch both defects.

**F1: a failed issue intake now stays retryable**
- The GitHub sign-in step (`defaultGitHub()`) now runs inside the protected `try`, so a sign-in failure releases the comment claim too.
- An attempt that takes the issue's 30-second dedupe window now gives it back if it fails. Before, a failure released only the comment claim. Now it also releases the dedupe window, and only if the window is still this attempt's (an atomic check-and-delete against a unique token). So a failure can't release a window that a later label event or command has taken.
- If releasing either one fails, that is logged and the original error is still raised.
- New tests: a failure during GitHub sign-in, adding the processing label, or queueing the job, each followed by an immediate redelivery. The redelivery starts the task and doesn't post "already starting or running". A further test confirms a failed attempt leaves another holder's dedupe window alone.

**F2: busy detection covers every processing label**
- The busy check now uses the `-processing`, `-done` and `-cancelled` labels of every configured primary label. New work still starts with the first label.
- New test: with labels `['AI', 'propr']`, an issue marked `propr-done` gets the refusal reply and nothing is queued. An unlabelled issue still starts with `AI`.

**Other notes**
- **Existing gap, unchanged:** if adding the label succeeds and queueing the job then fails, the processing label stays on the issue. If the label webhook arrives after the window is released, it can start a task without the command. The retried comment would then be told the issue is busy. That depends on when GitHub delivers the webhook, so it can't be fully closed.
- **Same defect elsewhere:** the pull-request path for plugin commands in `commentEventHandler.ts` already does its sign-in inside the protected block and has no dedupe window, so it needed no change.
- **Test environment:** the test file only runs here with `GIT_CLONES_BASE_PATH` and `GIT_WORKTREES_BASE_PATH` pointed at writable directories, because `/tmp/git-processor` is read-only in this container. This isn't caused by the change.

No preview is attached because nothing visible changed.

PR: #3580
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements plugin command discovery, validation, task propagation, documentation, and UI support coherently. It needs a localized recovery fix before merging: an issue command can lose its instruction after a queue failure while ordinary implementation work starts instead.

✅ Manifest-controlled extensions — Skills and servers resolve from plugin-owned library entries, independently of comment arguments.

✅ Argument delimiting — JSON encoding and escaped delimiters prevent arguments from breaking out of their designated prompt section.

✅ Built-in compatibility — The existing parser retains precedence, and regression tests cover the shared built-in command list.

This review is based on static inspection of the supplied code; no commands were run. Current checks show no failures, with five checks pending.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F3: 🔴 Queue failure can discard issue commands

  • Category: correctness

  • Required behavior: AC1 requires an issue command to start an implementation task carrying the manifest instruction and extensions. Recovery must not substitute an ordinary task that omits the accepted command.

  • Evidence: packages/core/src/webhook/issueCommentCommands.ts:120-139 — label publication, enqueue, and reservation cleanup.

    1. An eligible issue has no processing label or existing task. The command handler reserves the issue dedupe key.
    2. The awaited GitHub label request succeeds, adding the processing label and generating a label webhook. Delivery of that webhook can occur independently after the HTTP response.
    3. The subsequent awaited enqueue rejects before creating a job. The catch block deletes both the issue dedupe reservation and the comment claim, but the processing label remains.
    4. The generated label webhook arrives before the command redelivery. The ordinary issue-detection path acquires the now-free dedupe key and queues ordinary implementation work without pluginCommand.
    5. Command redelivery finds that job active or waiting and returns job_already_queued, retaining its new comment claim. The issue is implemented without the plugin instruction or explicit extensions.

    The reservation prevents label-triggered dispatch only while it exists; cleanup explicitly removes it after the external label mutation. The ownership-aware deletion protects another reservation but does not preserve the command obligation. The new enqueue-failure test immediately retries the command and never delivers the generated label webhook between attempts.

    static trace: the changed handler’s ordered awaits and catch block, together with the supplied issueDetection.ts:233-282 dedupe and queue checks. proposed regression: fail enqueue after successful label publication, deliver the label webhook, then redeliver the command; assert the resulting task retains the command.

  • Minimum fix: Preserve recoverable command intent before publishing the processing label, and have label-triggered intake honor that intent until the command-bearing job is durably queued. Alternatively, durably enqueue the command-bearing job first with coordinated label application and recovery. Do not release the reservation into ordinary dispatch while the published label can still start command-less work.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Exercise command execution end to end

The intake tests assert queued payloads and invoke prompt and extension helpers separately. An integration test through issue dispatch and PR worker execution would strengthen confidence that command instructions and extensions reach the agent together. This is optional additional coverage; the supplied dispatcher spread and worker wiring already support those paths statically.

Score

The implementation covers the main feature well, but the issue-intake recovery defect can silently replace requested plugin work with ordinary implementation work. Current checks have no reported failures, although five remain pending.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 0s
  • Tokens: 91,828 (90,633 in / 1,195 out)
  • Cost: $0.84

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F3 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 30d11ba

Addressed 1 AI review comment (IDs: 6902982086)

Addressed finding F3

Summary of Changes

A background wait loop I started was stopped when it hit its time limit. It wasn't needed: the run it was waiting on had already finished, and I took the results straight from its output (taskIntentWithdrawal 169 passed, 0 failed). The loop never ended because its pgrep -f "taskIntentWithdrawal" check matched the loop's own command line. The results above and the F3 fix are unchanged.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • packages/core/src/daemon/issueDetection.ts (+9/−1)
    • packages/core/src/plugins/issueCommandIntent.ts (added, +102/−0)
    • packages/core/src/webhook/issueCommentCommands.ts (+26/−4)
  • Low risk (1 file)
    • test/pluginCommandIntake.test.ts (+66/−4)

Validation evidence

  • No repository validation commands ran.

Diff size: 4 files changed, +203/−9 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 19m 20s
  • Tokens: 2,986,167 (2,985,663 in / 504 out)
  • Cost: $1.07

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…s time limit. It wasn't needed: the run it was waiting on had already finished, and I took the results straight from its output (`taskIntentWithdrawal` 169 passed, 0 failed). The loop never ended because its `pgrep -f "taskIntentWithdrawal"` check matched the loop's own command line. The results above and the F3 fix are unchanged.

A background wait loop I started was stopped when it hit its time limit. It wasn't needed: the run it was waiting on had already finished, and I took the results straight from its output (`taskIntentWithdrawal` 169 passed, 0 failed). The loop never ended because its `pgrep -f "taskIntentWithdrawal"` check matched the loop's own command line. The results above and the F3 fix are unchanged.

PR: #3580
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR adds plugin command validation, resolution, intake, execution payloads, and discoverability with good separation between manifest instructions and comment arguments. It needs a localized correction before merging.

✅ Manifest-owned extensions — Skills and servers are selected from the plugin’s managed contributions, independently of comment arguments.

✅ Delimited arguments — Argument encoding escapes delimiter characters and bounds input length; focused tests cover attempted delimiter injection.

✅ Built-in compatibility — The existing parser retains its command set through the shared list, with regression coverage.

The supplied current-head status has no failures and five pending checks. This review is based on static inspection; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F4: 🔴 Delayed issue jobs silently discard commands

  • Category: correctness

  • Required behavior: An accepted issue command must start a task carrying its instruction, or explicitly refuse because work already exists.

  • Evidence: packages/core/src/webhook/issueCommentCommands.ts, defaultHasQueuedIssueJob, defaultEnqueue, and processIssueCommentCommand.

    static trace:

    1. An existing ordinary issue parent enters delayed retry before publishing a processing lifecycle label—for example, an attempt fails during initialization. Issue jobs explicitly support exponential retries, and the issue can still carry only its primary AI label.
    2. An allowed user posts a plugin command. The busy check finds no lifecycle label, and defaultHasQueuedIssueJob checks only active and waiting jobs, excluding the delayed parent.
    3. After the short dedupe window has elapsed, intake records the command intent and calls add with the existing parent’s deterministic ID, issue-${owner}-${repo}-${number}.
    4. BullMQ’s duplicate-ID handling retains the existing job rather than replacing its data. Intake nevertheless releases the command intent and returns accepted. The ordinary retry therefore runs without the plugin instruction or extensions.

    The deterministic ID prevents duplication but does not prove that the existing job carries this command. The new tests replace enqueueing with a collector or an unconditional mock, so they do not exercise this distinction. proposed regression: retain an ordinary parent in delayed state, submit a command, and verify explicit refusal without deleting an accepted command intent.

  • Minimum fix: Include delayed parents in the existing-work check and verify that the persisted job carries this command before releasing its intent or reporting acceptance. If the ID belongs to other work, return the existing-work refusal.

Suggestions

These are optional follow-ups and are not sent to /fix.

S2: 🟢 Qualify prompt-isolation guarantees

The new documentation says the argument “cannot change” the instruction. Encoding guarantees delimiter integrity and manifest-controlled extension selection, but natural-language instructions do not guarantee model obedience. Describe the argument as marked and handled as untrusted data. This wording improvement is optional because the deterministic extension boundary is implemented correctly.

Score

The implementation covers the main feature thoroughly, but the delayed-job path can acknowledge and then lose a command. Correct that queue-state handling before merge; the remaining supplied checks are pending, not failed.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 8s
  • Tokens: 90,346 (89,039 in / 1,307 out)
  • Cost: $0.83

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F4 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 5b022af

Addressed 1 AI review comment (IDs: 6903443311)

Addressed finding F4

Summary of Changes

The wait loop for the taskIntentWithdrawal suite has now exited. It had nothing new: that suite had already finished with 169 passed and 0 failed, as in my earlier report, and the F4 fix is unchanged.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • packages/core/src/daemon/issueDetection.ts (+6/−1)
    • packages/core/src/plugins/issueCommandIntent.ts (+39/−2)
    • packages/core/src/webhook/issueCommentCommands.ts (+29/−8)
  • Low risk (1 file)
    • test/pluginCommandIntake.test.ts (+76/−3)

Validation evidence

  • No repository validation commands ran.

Diff size: 4 files changed, +150/−14 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 11m 24s
  • Tokens: 2,109,325 (2,109,043 in / 282 out)
  • Cost: $0.88
  • Subscription usage: Fable +1%

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…exited. It had nothing new: that suite had already finished with 169 passed and 0 failed, as in my earlier report, and the F4 fix is unchanged.

The wait loop for the `taskIntentWithdrawal` suite has now exited. It had nothing new: that suite had already finished with 169 passed and 0 failed, as in my earlier report, and the F4 fix is unchanged.

PR: #3580
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements plugin command parsing, dispatch, extension attachment, and discoverability with substantial focused coverage. It needs a correction to issue-command recovery before merging.

✅ Manifest-controlled extensions — Command arguments cannot alter the skill and server identifiers resolved from the plugin’s managed contributions.

✅ Built-in compatibility — The parser retains its existing behavior while sharing the reserved command-name list with manifest validation.

This review uses static tracing of the supplied code; no commands were run. Current checks report 32 passed, two pending, and no failures.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F5: 🔴 Consumed issue commands can remain replayable

  • Category: correctness

  • Required behavior: Once an issue command has successfully started its task, its recovery intent must not attach that command to a later, independent issue task.

  • Evidence: packages/core/src/webhook/issueCommentCommands.ts, processIssueCommentCommand success cleanup; packages/core/src/plugins/issueCommandIntent.ts, settlePendingIssueCommand; packages/core/src/daemon/issueDetection.ts, processDetectedIssue.

    1. An issue command records a pending intent, publishes its processing label, and successfully queues the command-bearing job.
    2. The Redis eval in releaseIssueCommandIntent fails transiently. The handler catches the failure, logs it, and returns accepted, leaving the intent in pending state for up to 24 hours.
    3. The task completes. Within that period, the user removes its terminal label and reapplies the processing label to request another ordinary implementation task.
    4. processDetectedIssue reads the surviving pending intent and spreads its command and original user identity into the new job. The old command executes again instead of the requested ordinary task.

    The label-recovery sibling has the same failure: settlePendingIssueCommand suppresses failure to mark the intent queued. The 30-second dedupe window has expired by the later trigger, and the comment claim does not protect label intake. Neither recovery path checks whether the pending command was already consumed before attaching it.

    static trace: Both successful settlement paths explicitly suppress Redis update failures; the subsequent label path accepts any surviving pending record. Existing tests cover successful settlement, but not settlement failure followed by a fresh label trigger.

  • Minimum fix: Make failed intent settlement recoverable using durable evidence that the command was dispatched, and reconcile that evidence before attaching a pending intent to another job. Cover both direct enqueue and label-recovery settlement failures with a regression test showing that a later ordinary trigger cannot replay the consumed command.

Suggestions

These are optional follow-ups and are not sent to /fix.

S3: 🟢 Exercise the final worker request

The new intake tests verify queued data and prompt helpers, but do not execute the changed worker assembly paths. An integration test capturing the final agent request would strengthen coverage of command propagation, isolation from pending comments, and extension attachment. This is additional confidence rather than a separate merge requirement.

Score

The implementation covers the main feature well, but failed recovery bookkeeping can replay completed commands and misattribute subsequent work. That correctness issue prevents merge readiness despite the strong passing-check status.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 15s
  • Tokens: 92,867 (91,137 in / 1,730 out)
  • Cost: $0.89

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F5 S3

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 956cc45

Addressed 1 AI review comment (IDs: 6903890263)

Addressed finding F5

Summary of Changes

I fixed F5. A command that has already started can no longer be attached to a later, ordinary issue task. If the webhook can't update the command's record after queueing the job, the job's dispatcher now settles that record before it starts any work.

Root cause: both success paths (the command's own enqueue and the label-recovery path) ignore a failed Redis update. The record then stays pending, and nothing else in the system knew the command had been consumed.

What changed:

  • The queued job is now the evidence. Jobs that carry a command now also carry the token of the command's pending record, in a new pluginCommandIntent field. This covers both the command's own enqueue (issueCommentCommands.ts) and the label-recovery path (issueCommandJobFields).
  • The dispatcher settles it. In src/jobs/issueJobDispatcher.ts, before any child job is added, the dispatcher calls the new settleDispatchedIssueCommand (packages/core/src/plugins/issueCommandIntent.ts). This marks the record queued, but only while it is still the pending record that job names. A record from a newer command, or one already queued or gone, is left alone. If the update fails, the dispatch attempt fails before any child is added, and BullMQ's retry settles it.
  • What this guarantees for later label events. Any record still pending was never carried into running work. Its job, if any, is still queued and holds the issue's job ID, so a later label event's add does nothing. That is why I didn't add a separate check in processDetectedIssue. The webhook still tries its own update first; its failure logs now say the dispatcher settles it.

Tests:

  • test/pluginCommandIntake.test.ts: 22 pass, including 3 new. The new ones cover:
    • a failed update after the command's own enqueue
    • a failed update on the label-recovery path
    • the settle function's own rules: other commands' records, records already settled or gone, and failure then retry
  • test/issueJobDispatcher.handleDispatch.test.ts: 3 pass, 2 of them new. Settlement happens before any child is queued, and a failure queues no children.
  • With the dispatcher's settle step removed, both scenario tests fail on "the consumed command is not replayed", so they do catch the defect.
  • Neighbouring suites pass: dispatcher (91), issue detection (36), submission lifecycle (30), multi-model siblings (6), no-change retry (5), worker (6).
  • Root and core typechecks and the zero-warning lint on the changed files are clean. I didn't run the full repository suite.

Remaining edge cases:

  • A command can be lost. If the dispatcher settles the record and then fails on every retry, the command doesn't run and the task shows as failed. A later label starts ordinary work; nothing is replayed.
  • Settlement can be blocked. If Redis can't be updated through all of the dispatcher's retries, the command never starts and its record stays pending. A later label would then run the command, which never ran.

Nothing here is visible on screen, so there's no preview.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (5 files)
    • packages/core/src/index.ts (+1/−0)
    • packages/core/src/plugins/issueCommandIntent.ts (+41/−6)
    • packages/core/src/queue/taskQueue.types.ts (+7/−0)
    • packages/core/src/webhook/issueCommentCommands.ts (+4/−3)
    • src/jobs/issueJobDispatcher.ts (+22/−1)
  • Low risk (2 files)
    • test/issueJobDispatcher.handleDispatch.test.ts (+40/−4)
    • test/pluginCommandIntake.test.ts (+94/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 7 files changed, +209/−14 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (high)
  • Requested By: @propr-ultrafix
  • Time: 10m 16s
  • Tokens: 3,172,800 (3,141,825 in / 30,975 out)
  • Cost: $1.80
  • Subscription usage: Weekly +1%

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…r be attached to a later, ordinary issue task. If the webhook can't update the command's record after queueing the job, the job's dispatcher now settles that record before it starts any work.

I fixed F5. A command that has already started can no longer be attached to a later, ordinary issue task. If the webhook can't update the command's record after queueing the job, the job's dispatcher now settles that record before it starts any work.

**Root cause:** both success paths (the command's own enqueue and the label-recovery path) ignore a failed Redis update. The record then stays `pending`, and nothing else in the system knew the command had been consumed.

**What changed:**
- **The queued job is now the evidence.** Jobs that carry a command now also carry the token of the command's pending record, in a new `pluginCommandIntent` field. This covers both the command's own enqueue (`issueCommentCommands.ts`) and the label-recovery path (`issueCommandJobFields`).
- **The dispatcher settles it.** In `src/jobs/issueJobDispatcher.ts`, before any child job is added, the dispatcher calls the new `settleDispatchedIssueCommand` (`packages/core/src/plugins/issueCommandIntent.ts`). This marks the record `queued`, but only while it is still the pending record that job names. A record from a newer command, or one already `queued` or gone, is left alone. If the update fails, the dispatch attempt fails before any child is added, and BullMQ's retry settles it.
- **What this guarantees for later label events.** Any record still `pending` was never carried into running work. Its job, if any, is still queued and holds the issue's job ID, so a later label event's add does nothing. That is why I didn't add a separate check in `processDetectedIssue`. The webhook still tries its own update first; its failure logs now say the dispatcher settles it.

**Tests:**
- `test/pluginCommandIntake.test.ts`: 22 pass, including 3 new. The new ones cover:
  - a failed update after the command's own enqueue
  - a failed update on the label-recovery path
  - the settle function's own rules: other commands' records, records already settled or gone, and failure then retry
- `test/issueJobDispatcher.handleDispatch.test.ts`: 3 pass, 2 of them new. Settlement happens before any child is queued, and a failure queues no children.
- With the dispatcher's settle step removed, both scenario tests fail on "the consumed command is not replayed", so they do catch the defect.
- Neighbouring suites pass: dispatcher (91), issue detection (36), submission lifecycle (30), multi-model siblings (6), no-change retry (5), worker (6).
- Root and core typechecks and the zero-warning lint on the changed files are clean. I didn't run the full repository suite.

**Remaining edge cases:**
- **A command can be lost.** If the dispatcher settles the record and then fails on every retry, the command doesn't run and the task shows as failed. A later label starts ordinary work; nothing is replayed.
- **Settlement can be blocked.** If Redis can't be updated through all of the dispatcher's retries, the command never starts and its record stays pending. A later label would then run the command, which never ran.

Nothing here is visible on screen, so there's no preview.

PR: #3580
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements plugin command resolution, task instructions, extension attachment, and discoverability across PR and issue comments. It needs a localized recovery-state correction before merging.

✅ Manifest-controlled extensions — Skills and servers are resolved from plugin-owned contributions; comment arguments cannot alter the attachment lists.

✅ Built-in compatibility — The existing parser retains its command behavior while sharing the reserved names with manifest validation.

The supplied current-head status reports 29 passed checks, five pending, and no failures. This review used static analysis of the supplied code; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F6: 🔴 Refused commands remain eligible for later execution

  • Category: correctness

  • Required behavior: An issue command reported as not started must not remain pending for an unrelated future processing-label trigger.

  • Evidence: packages/core/src/webhook/issueCommentCommands.ts, processIssueCommentCommand busy-refusal branch; packages/core/src/plugins/issueCommandIntent.ts, readPendingIssueCommand; packages/core/src/daemon/issueDetection.ts, processDetectedIssue.

    1. A plugin command records its intent and publishes the processing label, but enqueueing fails. The catch block retains the pending intent and releases the comment claim.
    2. An ordinary parent holds the issue's deterministic job ID. A subsequent label event cannot replace that job, so settlePendingIssueCommand leaves the command pending.
    3. The command webhook is redelivered. The busy check finds the ordinary parent and replies that the command “was not started,” instructing the user to run it again later. This return neither withdraws nor otherwise retires that comment's pending intent.
    4. After the ordinary work finishes, an eligible processing-label application within the intent's 24-hour lifetime reads that pending record. issueCommandJobFields attaches the previously refused command and its original requester to the new task.

    The result is execution of a command ProPR explicitly refused, with the new label-triggered task receiving stale instructions and ownership. The comment claim prevents another comment delivery; it does not prevent label intake from consuming the intent. The dispatcher settlement safeguard also does not help: no earlier job carried this command.

    static trace: The added test “a label event whose add finds a delayed ordinary parent leaves the pending command pending” establishes steps 1–3, including the refusal. The supplied label-intake implementation establishes step 4. No test was executed during this review.

    A sibling stale-intent path exists when label publication definitively fails, such as an explicit permission rejection: the catch block still preserves the pre-publication intent, allowing a later independent label application to consume it.

  • Minimum fix: Before reporting a command as not started, conditionally retire its own still-pending intent while preserving another comment's record and already-queued evidence. Also withdraw an intent when label publication definitively failed without publishing a trigger; retain recovery state for ambiguous publication outcomes. Add regression coverage showing later independent label triggers do not execute either abandoned command.

Suggestions

These are optional follow-ups and are not sent to /fix.

No suggestions.

Score

The implementation covers the main feature and includes substantial targeted tests, but the retained-intent defect can execute stale, explicitly refused work. That recovery behavior needs correction before merge.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 3s
  • Tokens: 96,282 (94,703 in / 1,579 out)
  • Cost: $0.90

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F6

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 305397b

Addressed 1 AI review comment (IDs: 6904234184)

Addressed finding F6

Summary of Changes

I fixed F6: a command ProPR reports as "not started" no longer stays pending, so a later processing-label event can't run it. A command whose label GitHub refused is also withdrawn. All tests I ran pass, and the 6 new regression tests fail on the old code.

What changed

  • Every "not started" reply now drops the command first. This covers the busy label, a task already queued or running, the 30-second duplicate window being taken, the job ID held by other work, and the reply for commands that need write access. Before replying, the handler deletes the issue's command record, but only if it is still this comment's pending one. Another comment's record is kept. If the record has turned queued in the meantime (a label event started the command), the reply is skipped instead of claiming it wasn't started. The new helper is retireIssueCommandIntent in packages/core/src/plugins/issueCommandIntent.ts.

  • The job-ID-held branch puts back only another comment's record. It used to restore whatever record it had replaced, including this comment's own earlier pending one, which brought back the same defect.

  • The failure handler keeps the record only while this attempt's label may be on the issue. It is withdrawn, and the record it replaced is put back, in three cases:

    • GitHub answered the label request with a 4xx error.
    • The label was already on the issue, so none was requested.
    • The attempt failed before requesting the label.

    Network errors (which Octokit reports as 500) and 5xx answers count as unknown, so the record is kept for the label's webhook to pick up. To withdraw a record even when its write failed, its value is now built before it is written, so recordIssueCommandIntent takes that value.

Tests
Six new tests in test/pluginCommandIntake.test.ts. Each runs a later, unrelated label event and checks that it queues ordinary work owned by whoever applied the label. They cover:

  • the full F6 sequence.
  • each refusal reply.
  • the job-ID-held branch.
  • another comment's record being kept, and a command queued meanwhile getting no "not started" reply.
  • 403 and 422 label answers withdrawing the record, 500 and 502 keeping it.
  • a label already on the issue.
Check Result
pluginCommandIntake 28 pass
taskIntentWithdrawal 169 pass
issueDetection.integration 36 pass
intentWithdrawalWebhook 36 pass
Three webhook suites 30 pass
Typecheck, core and root clean
Zero-warning core lint, both changed files clean
Test file typecheck same 20 errors as HEAD, none new

The suites need GIT_CLONES_BASE_PATH and GIT_WORKTREES_BASE_PATH set, because /tmp/git-processor is read-only in this container. That's a container issue, not a code one.

A race that remains: a label event can read the pending record at the same moment a redelivery deletes it. Then either the command runs although the reply says it wasn't started, or the label queues ordinary work. Closing that would need the label path to claim the record atomically, which is a redesign, so I left it.

Other problems I found but didn't fix (not part of F6):

  1. A false "not started" reply. If the label path queued this command but couldn't mark its record, a redelivery sees that job and replies "not started" while it runs. Deleting the record there is harmless, because the dispatcher accepts a missing record.
  2. A command that is never redelivered. If the label path finds the job ID taken and the comment is never redelivered, the record stays pending for up to 24 hours and a later label runs it. No refusal is ever posted in that case.
  3. Settings that change between deliveries. If the plugin is disabled, or the author filter or ignore keywords change, the redelivery is ignored silently and an earlier pending record stays. The label path doesn't recheck whether the plugin is enabled.

There's no visual change, so I made no preview.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/core/src/plugins/issueCommandIntent.ts (+39/−9)
    • packages/core/src/webhook/issueCommentCommands.ts (+68/−23)
  • Low risk (1 file)
    • test/pluginCommandIntake.test.ts (+123/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 3 files changed, +230/−32 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (xhigh)
  • Requested By: @propr-ultrafix
  • Time: 16m 7s
  • Tokens: 4,840,639 (4,840,148 in / 491 out)
  • Cost: $1.71

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…ger stays pending, so a later processing-label event can't run it. A command whose label GitHub refused is also withdrawn. All tests I ran pass, and the 6 new regression tests fail on the old code.

I fixed F6: a command ProPR reports as "not started" no longer stays pending, so a later processing-label event can't run it. A command whose label GitHub refused is also withdrawn. All tests I ran pass, and the 6 new regression tests fail on the old code.

**What changed**
- **Every "not started" reply now drops the command first.** This covers the busy label, a task already queued or running, the 30-second duplicate window being taken, the job ID held by other work, and the reply for commands that need write access. Before replying, the handler deletes the issue's command record, but only if it is still this comment's pending one. Another comment's record is kept. If the record has turned `queued` in the meantime (a label event started the command), the reply is skipped instead of claiming it wasn't started. The new helper is `retireIssueCommandIntent` in `packages/core/src/plugins/issueCommandIntent.ts`.
- **The job-ID-held branch puts back only another comment's record.** It used to restore whatever record it had replaced, including this comment's own earlier pending one, which brought back the same defect.
- **The failure handler keeps the record only while this attempt's label may be on the issue.** It is withdrawn, and the record it replaced is put back, in three cases:
  - GitHub answered the label request with a 4xx error.
  - The label was already on the issue, so none was requested.
  - The attempt failed before requesting the label.

  Network errors (which Octokit reports as 500) and 5xx answers count as unknown, so the record is kept for the label's webhook to pick up. To withdraw a record even when its write failed, its value is now built before it is written, so `recordIssueCommandIntent` takes that value.

**Tests**
Six new tests in `test/pluginCommandIntake.test.ts`. Each runs a later, unrelated label event and checks that it queues ordinary work owned by whoever applied the label. They cover:
- the full F6 sequence.
- each refusal reply.
- the job-ID-held branch.
- another comment's record being kept, and a command queued meanwhile getting no "not started" reply.
- 403 and 422 label answers withdrawing the record, 500 and 502 keeping it.
- a label already on the issue.

| Check | Result |
|---|---|
| `pluginCommandIntake` | 28 pass |
| `taskIntentWithdrawal` | 169 pass |
| `issueDetection.integration` | 36 pass |
| `intentWithdrawalWebhook` | 36 pass |
| Three webhook suites | 30 pass |
| Typecheck, core and root | clean |
| Zero-warning core lint, both changed files | clean |
| Test file typecheck | same 20 errors as HEAD, none new |

The suites need `GIT_CLONES_BASE_PATH` and `GIT_WORKTREES_BASE_PATH` set, because `/tmp/git-processor` is read-only in this container. That's a container issue, not a code one.

**A race that remains:** a label event can read the pending record at the same moment a redelivery deletes it. Then either the command runs although the reply says it wasn't started, or the label queues ordinary work. Closing that would need the label path to claim the record atomically, which is a redesign, so I left it.

**Other problems I found but didn't fix (not part of F6):**
1. **A false "not started" reply.** If the label path queued this command but couldn't mark its record, a redelivery sees that job and replies "not started" while it runs. Deleting the record there is harmless, because the dispatcher accepts a missing record.
2. **A command that is never redelivered.** If the label path finds the job ID taken and the comment is never redelivered, the record stays pending for up to 24 hours and a later label runs it. No refusal is ever posted in that case.
3. **Settings that change between deliveries.** If the plugin is disabled, or the author filter or ignore keywords change, the redelivery is ignored silently and an earlier pending record stays. The label path doesn't recheck whether the plugin is enabled.

There's no visual change, so I made no preview.

PR: #3580
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 4/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 4/4
  • Result: failure
  • Commit: 008e89bdf337 (008e89bdf3371555bc41e24aec2f99f40d88f7f8)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:42830
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@github-actions

Copy link
Copy Markdown

Full Test Suite Results

Validation failed during: Test shard (shard 4).

  • Dependency install: success
  • Workspace build: success
  • Docs validation: success
  • Shard coverage verification: success
  • Hosted native Electron units: success
  • Shard 1/4: passed in 757.7s on GitHub Actions 1000121406
  • Shard 2/4: passed in 871.6s on GitHub Actions 1000121407
  • Shard 3/4: passed in 930.0s on GitHub Actions 1000121404
  • Shard 4/4: failed during Test shard in 997.1s on GitHub Actions 1000121403
    • test/taskIntentWithdrawal.test.ts: exit 1
View shard 4/4 output
...(truncated)

icon
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2moffers everyone, me, nobody and the people seen, and reports a single choice
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2madds a second person to the selection instead of replacing the first
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2mnames a multi-person filter by its first login and how many more, and unticks one
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/TaskPlanner/PlanIssuesManager.batch.test.tsx �[2m(�[22m�[2m14 tests�[22m�[2m)�[22m�[33m 312�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2munticking the last person goes back to all assignees
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2madds a login nobody on the page is assigned to, and refuses an invalid one
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2mstops adding people at the filter's limit without calling a valid login invalid
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2mEnter in the field ticks a listed person it matches exactly
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2mkeeps a login that reads as a keyword or a default distinct from it
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2moffers only All and Unassigned without a signed-in user
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2mkeeps logins from the URL ticked when the page does not list them
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/TaskList/Filters.test.tsx�[2m > �[22m�[2mFilters�[2m > �[22m�[2mcloses on Escape and hands focus back to the trigger
�[22m�[39mAn update to RepoFilter inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/TaskList/Filters.test.tsx �[2m(�[22m�[2m15 tests�[22m�[2m)�[22m�[33m 670�[2mms�[22m�[39m
 �[32m✓�[39m src/api/proprApi.sharedReads.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 178�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopGitHubAuthorizationRecovery.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 314�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Agents/AgentEditor.runNow.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[33m 1233�[2mms�[22m�[39m
   �[32m✓�[39m AgentEditor Run now �[2m(8)�[22m
     �[33m�[2m✓�[22m�[39m starts the run and opens it when the subscription has room�[33m 351�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Dashboard/HappeningNowSection.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 553�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2momits tab and requests for disabled/legacy repositories (false)
�[22m�[39mAn update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2momits tab and requests for disabled/legacy repositories (false)
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
�[90m    at processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
  �[90m    at processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2momits tab and requests for disabled/legacy repositories (undefined)
�[22m�[39mAn update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2momits tab and requests for disabled/legacy repositories (undefined)
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
�[90m    at processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
  �[90m    at processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2mshows loading then empty state only for enabled repositories
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
�[90m    at processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
  �[90m    at processTicksAndRejections (node:internal/process/task_queues:103:5)�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2mshows failure, retries, and renders accessible images and non-autoplay videos
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2mclears media on repository change and disabling, ignoring stale requests
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2mclears media on repository change and disabling, ignoring stale requests
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2mclears media on repository change and disabling, ignoring stale requests
�[22m�[39mAn update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to RepoActionContainer inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2mclears media on repository change and disabling, ignoring stale requests
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media tab�[2m > �[22m�[2mloads additional pages and deduplicates media, preserving partial results on failure
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media lightbox�[2m > �[22m�[2mopens media in an in-app modal dialog instead of a new tab
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media lightbox�[2m > �[22m�[2mplays a video inline in the dialog with its native controls
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media lightbox�[2m > �[22m�[2mcloses on the close button and restores focus to the tile that opened it
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media lightbox�[2m > �[22m�[2mcloses on the backdrop and restores focus to the tile that opened it
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media lightbox�[2m > �[22m�[2mcloses on Escape and restores focus to the tile that opened it
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

�[90mstderr�[2m | src/components/Repositories/RepoMediaPanel.test.tsx�[2m > �[22m�[2mrepository Media lightbox�[2m > �[22m�[2mnavigates the whole collection with controls and arrow keys, wrapping at both ends
�[22m�[39mFailed to load indexed repositories: ProprClientError: The ProPR API could not be reached.
    at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:293:13)
    at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
    at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
    at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
  kind: �[32m'network'�[39m,
  status: �[90mundefined�[39m,
  code: �[90mundefined�[39m,
  body: �[90mundefined�[39m,
  cause: TypeError: Failed to parse URL from /api/repositories/indexing-status
  �[90m    at node:internal/deps/undici/undici:15456:13�[39m
      at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:14)
      at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:34�[90m)�[39m
      at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:20�[90m)�[39m
      at loadIndexedRepositories �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/setupWizardHooks.ts:67:16�[90m)�[39m {
    [cause]: TypeError: Invalid URL
    �[90m    at new URL (node:internal/url:818:25)�[39m
        at new URL (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/index.CK-t0WMg.js:1415:2)
    �[90m    at new Request (node:internal/deps/undici/undici:10034:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:10763:25)�[39m
    �[90m    at fetch (node:internal/deps/undici/undici:15454:10)�[39m
    �[90m    at fetch (node:internal/bootstrap/web/exposed-window-or-worker:75:12)�[39m
        at ProprClient.fetchImplementation (/home/runner/work/propr/propr/packages/client/src/client.ts:244:78)
        at ProprClient.fetch (/home/runner/work/propr/propr/packages/client/src/client.ts:282:25)
        at apiFetch �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/apiClient.ts:414:54�[90m)�[39m
        at getRepositoriesIndexingStatus �[90m(/home/runner/work/propr/propr/propr-ui/�[39msrc/api/repoIndexingApi.ts:32:26�[90m)�[39m {
      code: �[32m'ERR_INVALID_URL'�[39m,
      input: �[32m'/api/repositories/indexing-status'�[39m
    }
  }
}

 �[32m✓�[39m src/components/Repositories/RepoMediaPanel.test.tsx �[2m(�[22m�[2m12 tests�[22m�[2m)�[22m�[33m 826�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/electronAdapters.selectionFence.test.ts �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/App.hostedFlow.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 1544�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/demoViewer.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 333�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/ReviewContextSettings.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 240�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useLiveRefreshScheduler.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 32�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useHeaderStats.status.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 285�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/AddRepositoryModal.test.tsx�[2m > �[22m�[2mAddRepositoryModal�[2m > �[22m�[2mkeeps branch selection in the scroll-owned form and submits through one form path
�[22m�[39mIn HTML, <button> cannot be a descendant of <button>.
This will cause a hydration error.

  <AddRepositoryModal isOpen={true} newRepo="integry/propr" newAlias="Production" newBaseBranch="release/20..." ...>
    <div className="fixed inse..." onClick={function handleBackdropClick}>
      <div ref={{...}} role="dialog" aria-modal="true" aria-labelledby="_r_9_" tabIndex={-1} className="bg-white r...">
        <div>
        <form onSubmit={function handleSubmit} className="flex min-h...">
          <div data-testid="add-reposi..." className="min-h-0 fl...">
            <div>
            <div>
            <div>
              <label>
              <BaseBranchSelector repoName="integry/propr" value="release/20..." onChange={function Mock} ...>
                <div className="relative" ref={{...}}>
>                 <button
>                   id="_r_d_"
>                   type="button"
>                   onClick={function handleOpen}
>                   disabled={false}
>                   aria-labelledby="_r_e_ _r_h_"
>                   aria-describedby="_r_f_"
>                   aria-haspopup="listbox"
>                   aria-expanded={false}
>                   className="w-full px-3 py-2 text-left bg-white border border-gray-300 rounded-md font-mono text-sm..."
>                 >
                    <span>
                    <div className="flex items...">
>                     <button
>                       type="button"
>                       onClick={function handleClear}
>                       className="p-0.5 hover:bg-gray-200 rounded text-gray-400 hover:text-gray-600"
>                       title="Clear selection"
>                     >
                      ...
              ...
            ...
          ...

<button> cannot contain a nested <button>.
See this log for the ancestor stack trace.

 �[32m✓�[39m src/components/AddRepositoryModal.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 374�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/SetupWizardHeaders.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 228�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/VisualPreviewAuthSection.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 310�[2mms�[22m�[39m
 �[32m✓�[39m src/components/SystemHealthPush.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 429�[2mms�[22m�[39m
 �[32m✓�[39m src/components/SummaryBrowser/index.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 136�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/extensions/ExtensionOAuthServerName.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 278�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/Agents/AgentEditor.templates.test.tsx�[2m > �[22m�[2mAgentEditor templates�[2m > �[22m�[2mopens prefilled from the template named in the link
�[22m�[39mAn update to AgentScopeSection inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentEditor inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentEditor inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

�[90mstderr�[2m | src/components/Agents/AgentEditor.templates.test.tsx�[2m > �[22m�[2mAgentEditor templates�[2m > �[22m�[2mopens an empty form for an unknown template
�[22m�[39mAn update to AgentScopeSection inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentEditor inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
An update to AgentEditor inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/components/Agents/AgentEditor.templates.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[33m 683�[2mms�[22m�[39m
   �[32m✓�[39m AgentEditor templates �[2m(5)�[22m
     �[33m�[2m✓�[22m�[39m prefills the form from a chosen template and creates nothing until the user saves�[33m 507�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanEditorHeader.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 294�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/AiAgentsPlaygroundSession.test.tsx �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[33m 524�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopWindowControls.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 176�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalHeader.nativeCreation.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 308�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Analytics/activityAxis.test.ts �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 21�[2mms�[22m�[39m
 �[32m✓�[39m src/api/extensionSelectionHeaders.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 16�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Goals/goalTimeline.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/WorkflowSettingsSection.test.tsx �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 297�[2mms�[22m�[39m
�[90mstderr�[2m | src/components/TaskPlanner/usePlanQueueActions.test.ts�[2m > �[22m�[2mPlanner Studio queue actions�[2m > �[22m�[2ma refused action surfaces its error and rereads the queue
�[22m�[39mFailed to skip issue #1: Error: Issue #1 is in flight; wait for its run to finish or block.
    at �[90m/home/runner/work/propr/propr/propr-ui/�[39msrc/components/TaskPlanner/usePlanQueueActions.test.ts:52:32
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:1632:35
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:2801:26
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3338:20
    at new Promise (<anonymous>)
    at runWithCancel (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3333:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3318:20
    at new Promise (<anonymous>)
    at runWithTimeout (file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3276:10)
    at file:///home/runner/work/propr/propr/node_modules/�[4mvitest�[24m/dist/chunks/run.BPv-BBRv.js:3904:64

 �[32m✓�[39m src/components/TaskPlanner/usePlanQueueActions.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 22�[2mms�[22m�[39m
 �[32m✓�[39m src/api/triggerWhitelistApi.test.ts �[2m(�[22m�[2m9 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/components/AgentChat/ModelSelector.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[33m 388�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/McpServerSection.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 206�[2mms�[22m�[39m
 �[32m✓�[39m src/api/apiClient.accounts.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 13�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopExperience.shortcut-readiness.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 182�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Agents/AgentEditor.deleteWhileSaving.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[33m 364�[2mms�[22m�[39m
   �[32m✓�[39m AgentEditor deletion while saving �[2m(2)�[22m
     �[33m�[2m✓�[22m�[39m disables Delete while a save is pending�[33m 308�[2mms�[22m�[39m
 �[32m✓�[39m src/api/compatibility.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[33m 479�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/PlanEditor.responsive.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 43�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Dashboard/workTitle.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/App.hostedCompletion.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 124�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/browserAdapters.test.ts �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 17�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/PlansPageUtils.test.tsx �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/PushFailureDetails.test.tsx �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 213�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/LoginPage.authError.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 259�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SummaryBrowserPage.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 50�[2mms�[22m�[39m
 �[32m✓�[39m src/components/Analytics/activityPairs.test.ts �[2m(�[22m�[2m23 tests�[22m�[2m)�[22m�[32m 9�[2mms�[22m�[39m
 �[32m✓�[39m src/desktop/DesktopPresentationBoundary.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 218�[2mms�[22m�[39m
 �[32m✓�[39m src/components/ActivitySparkline.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 139�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/ThinkingLog.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 190�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/AgentTankSection.test.tsx �[2m(�[22m�[2m6 tests�[22m�[2m)�[22m�[32m 172�[2mms�[22m�[39m
 �[32m✓�[39m src/api/usageTipsApi.test.ts �[2m(�[22m�[2m4 tests�[22m�[2m)�[22m�[32m 8�[2mms�[22m�[39m
 �[32m✓�[39m src/components/GlobalSearch.scrollbar.test.ts �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/contexts/SystemStatusContext.push.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 20�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskPlanner/useAnchoredPopover.test.ts �[2m(�[22m�[2m8 tests�[22m�[2m)�[22m�[32m 6�[2mms�[22m�[39m
 �[32m✓�[39m src/utils/modalBackground.test.ts �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 21�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RepositoryListItem.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 158�[2mms�[22m�[39m
�[90mstderr�[2m | src/hooks/useDecoratedRepoOptions.test.tsx�[2m > �[22m�[2museDecoratedRepoOptions�[2m > �[22m�[2mpasses through undefined options
�[22m�[39mAn update to TestComponent inside a test was not wrapped in act(...).

When testing, code that causes React state updates should be wrapped into act(...):

act(() => {
  /* fire events that update state */
});
/* assert on the output */

This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act

 �[32m✓�[39m src/hooks/useDecoratedRepoOptions.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 67�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useAgentTankSuggestion.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 71�[2mms�[22m�[39m
 �[32m✓�[39m src/components/TaskDetails/SectionLabelHeader.test.tsx �[2m(�[22m�[2m5 tests�[22m�[2m)�[22m�[32m 190�[2mms�[22m�[39m
 �[32m✓�[39m src/components/workflowSelectionInput.test.ts �[2m(�[22m�[2m3 tests�[22m�[2m)�[22m�[32m 7�[2mms�[22m�[39m
 �[32m✓�[39m src/components/RepositoryPrTitleStatusControl.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 135�[2mms�[22m�[39m
 �[32m✓�[39m src/hooks/useInboxSelection.test.tsx �[2m(�[22m�[2m1 test�[22m�[2m)�[22m�[32m 20�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/PlansPageComponents.owner.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 50�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/UsageTipsSettingsSection.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 41�[2mms�[22m�[39m
 �[32m✓�[39m src/pages/SettingsPage/settingsCategoryGuides.test.ts �[2m(�[22m�[2m21 tests�[22m�[2m)�[22m�[32m 11�[2mms�[22m�[39m
 �[32m✓�[39m src/components/SidebarNavigation.test.tsx �[2m(�[22m�[2m2 tests�[22m�[2m)�[22m�[32m 286�[2mms�[22m�[39m
 �[32m✓�[39m src/utils/notificationIntents.test.ts �[2m(�[22m�[2m7 tests�[22m�[2m)�[22m�[32m 4�[2mms�[22m�[39m

�[2m Test Files �[22m �[1m�[32m91 passed�[39m�[22m�[90m (91)�[39m
�[2m      Tests �[22m �[1m�[32m842 passed�[39m�[22m�[90m (842)�[39m
�[2m   Start at �[22m 04:26:42
�[2m   Duration �[22m 67.01s�[2m (tests 37%, environment 35%, import 16%, setup 7%, transform 5%)�[22m

�[2mEnvironment �[22m �[33mjsdom was created 91 times�[39m�[2m · 44.18s total, 35% of tracked time�[22m
�[2m            �[22m �[2mcreate it once per worker with �[22m�[33mpool: 'vmThreads'�[39m�[2m (keeps per-file isolation) or �[22m�[33misolate: false�[39m�[2m (shares it across files)�[22m
�[2m            �[22m �[2mlearn more: https://vitest.dev/guide/improving-performance#test-environments�[22m


> [email protected] posttest
> npm run test:docker-context


> [email protected] test:docker-context
> node --test scripts/docker-context-inputs.test.mjs

TAP version 13
# Subtest: focused UI selectors are forwarded only to Vitest
ok 1 - focused UI selectors are forwarded only to Vitest
  ---
  duration_ms: 0.595991
  type: 'test'
  ...
# Subtest: the UI Docker context contains its complete non-type external source import closure
ok 2 - the UI Docker context contains its complete non-type external source import closure
  ---
  duration_ms: 43.479987
  type: 'test'
  ...
1..2
# tests 2
# suites 0
# pass 2
# fail 0
# cancelled 0
# skipped 0
# todo 0
# duration_ms 83.71435
[277/277] passed propr-ui#3/4 (workspace test script) in 67.6s

### Shard 4/4: 276/277 passed in 997.1s

Assigned 277 of 1109 discovered units.

| Duration | Status | Unit |
| ---: | --- | --- |
| 67.6s | passed | `propr-ui#3/4` (workspace) |
| 64.4s | passed | `packages/api/test/mcpAccessLog.test.ts` |
| 64.0s | passed | `packages/api/test/mcpAgentRuns.test.ts` |
| 47.8s | passed | `test/agentRunUnproductiveStreakRecovery.test.ts` |
| 34.5s | passed | `test/agentRunProductivity.test.ts` |
| 33.2s | passed | `apps/desktop/src/profile-store.crash-recovery.test.ts` |
| 30.9s | passed | `test/agentAutonomy.test.ts` |
| 29.3s | passed | `packages/core/test/managedDiagnostics.test.ts` |
| 27.0s | passed | `packages/api/test/planItemDependencies.test.ts` |
| 26.9s | passed | `test/agentRunStore.test.ts` |
| 26.3s | passed | `packages/core/test/fleetDataPlane.test.ts` |
| 21.2s | passed | `test/dockerExecutorWatchdog.test.ts` |
| 20.9s | passed | `packages/core/test/instanceStorage.test.ts` |
| 18.0s | passed | `packages/core/test/notificationService.test.ts` |
| 16.8s | passed | `packages/api/test/planProvenanceUpdates.test.ts` |


1/277 test runs failed in shard 4/4 after 997.1s:
- test/taskIntentWithdrawal.test.ts: exit 1

Details truncated; see the uploaded artifacts for complete failure rows and logs.

View Workflow
View uploaded artifacts

@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Run Full Test Suite

Please investigate and fix this CI failure.

Failure evidence

.github:67
Process completed with exit code 1.

.github:66
Full test suite shards finished with result 'failure'.

.github:4
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960, actions/download-artifact@018cc2c. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev propr-dev Bot changed the title ⚠️⑥ [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests 🔨 [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests Nov 16, 2026
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit d356da8

Summary of Changes

I fixed the Shard 4/4 failure: test/taskIntentWithdrawal.test.ts passes locally now, 169 of 169.

Cause: this PR made packages/core/src/webhook/webhookHandler.ts import the new issueCommentCommands.ts at the top of the file. That file pulls in a long chain of other modules, ending at agents/agentGitAccess.ts. That module needs loadMonitoredReposStrict from configManager.js, but the test replaces configManager.js with a stand-in that only provides loadPrimaryProcessingLabels. So the test file crashed while loading, before any test ran. Nothing in the test or in the withdrawal behaviour was wrong.

Fix: webhookHandler.ts now loads issueCommentCommands.js only when it handles a new comment on a plain issue, which is the one place it's used. Behaviour is unchanged. Webhook code that never sees such a comment no longer loads that chain, so this test and others like it are unaffected.

Checks run locally:

  • test/taskIntentWithdrawal.test.ts: 169 pass, 0 fail (it crashed on load before the change).
  • The other suites that load the webhook handler pass:
    • pluginCommandIntake: 53 pass. It needs GIT_CLONES_BASE_PATH and GIT_WORKTREES_BASE_PATH set to writable folders, because /tmp/git-processor is read-only in this container.
    • intentWithdrawalWebhook: 36 pass.
    • webhookReplayProtection: 22 pass.
    • deliveryInterestHandlerGuard: 5 pass.
    • webhookRepositoryFilter: 3 pass.
  • The core typecheck and the zero-warning lint on the changed file are clean.

I didn't rerun the full Shard 4. This change isn't visible in any UI, so there's no preview.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/core/src/webhook/webhookHandler.ts (+2/−1)
  • Low risk: none

Validation evidence

  • No repository validation commands ran.

Diff size: 1 file changed, +2/−1 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 6m 31s
  • Tokens: 993,350 (988,394 in / 4,956 out)
  • Cost: $0.54

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6907323735✓

…est.ts` passes locally now, 169 of 169.

I fixed the Shard 4/4 failure: `test/taskIntentWithdrawal.test.ts` passes locally now, 169 of 169.

**Cause:** this PR made `packages/core/src/webhook/webhookHandler.ts` import the new `issueCommentCommands.ts` at the top of the file. That file pulls in a long chain of other modules, ending at `agents/agentGitAccess.ts`. That module needs `loadMonitoredReposStrict` from `configManager.js`, but the test replaces `configManager.js` with a stand-in that only provides `loadPrimaryProcessingLabels`. So the test file crashed while loading, before any test ran. Nothing in the test or in the withdrawal behaviour was wrong.

**Fix:** `webhookHandler.ts` now loads `issueCommentCommands.js` only when it handles a new comment on a plain issue, which is the one place it's used. Behaviour is unchanged. Webhook code that never sees such a comment no longer loads that chain, so this test and others like it are unaffected.

**Checks run locally:**
- `test/taskIntentWithdrawal.test.ts`: 169 pass, 0 fail (it crashed on load before the change).
- The other suites that load the webhook handler pass:
  - `pluginCommandIntake`: 53 pass. It needs `GIT_CLONES_BASE_PATH` and `GIT_WORKTREES_BASE_PATH` set to writable folders, because `/tmp/git-processor` is read-only in this container.
  - `intentWithdrawalWebhook`: 36 pass.
  - `webhookReplayProtection`: 22 pass.
  - `deliveryInterestHandlerGuard`: 5 pass.
  - `webhookRepositoryFilter`: 3 pass.
- The core typecheck and the zero-warning lint on the changed file are clean.

I didn't rerun the full Shard 4. This change isn't visible in any UI, so there's no preview.

PR: #3580
Comment by: @propr-dev[bot] (ID: 6907323735)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @github-actions[bot], @propr-dev[bot]

Analysis Summary

The fix for this failure is already on the branch, so I changed nothing in this round.

Why CI failed: the failed run tested commit 008e89bdf. On that commit, packages/core/src/webhook/webhookHandler.ts loaded issueCommentCommands.js as soon as the file was read. That pulled in a long chain of modules, and one of them needs loadMonitoredReposStrict from configManager.js. test/taskIntentWithdrawal.test.ts swaps in a fake configManager.js that doesn't provide it, so the test file crashed while loading (exit 1) before any test ran.

Fix already on the branch: the next commit, d356da8c3, makes the webhook handler load issueCommentCommands.js only when it handles a new comment on a plain issue. Behaviour is the same; that code is just loaded later.

Check on the current branch: I ran the file through the CI runner (node scripts/run-test-suite.mjs test/taskIntentWithdrawal.test.ts). All 169 tests pass, where it crashed on load before.

Timing risk: in this container the file took 157s against the runner's 180s limit per file, and the runner warns at 87%. The slow tests are retry and backoff cases, the slowest about 30s ("discovery fails closed while a retained exclusion cannot be settled"). This PR doesn't change that test file. I didn't time the file on main, so I can't say whether it is always this slow; CI machines are usually faster than this container. If a later run fails on a timeout rather than exit 1, that is the cause, and splitting the file is the fix.

I didn't rerun the full Shard 4. Nothing here is visible in the UI, so there's no preview.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 8m 54s
  • Tokens: 753,021 (749,671 in / 3,350 out)
  • Cost: $0.57

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 6907326163✓, 6907326179✓

@propr-dev propr-dev Bot changed the title 🔨 [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests ⚠️⑥ [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests Nov 16, 2026
@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 2/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 2/4
  • Result: failure
  • Commit: d356da8c3b2e (d356da8c3b2e21581ee11ea456d4fb82916c6b0a)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:41442
Process completed with exit code 1.

propr-ui/src/pages/SettingsPage/AgentExtensionsOAuth.test.tsx:89 — src/pages/SettingsPage/AgentExtensionsOAuth.test.tsx > OAuth MCP servers in Skills & MCP servers > Reconnect keeps refreshing after a return to Settings before consent, until the new connection is shown
AssertionError: expected 1 to be 2 // Object.is equality

Ignored nodes: comments, script, style

Skills & MCP servers

Give agents extra tools for a task. An MCP server is a service the agent can call while it works, such as a documentation search or an issue tracker. A skill is a folder of instructions, with a

      <code
        class="text-[11px]"
      >
        SKILL.md
      </code>
       and optional scripts, that the agent reads when it is relevant. Only Claude and Codex runs can use extensions.
       
      <a
        class="font-medium text-primary-600 underline hover:text-primary-700"
        href="https://docs.propr.dev/docs/features/agent-extensions"
        rel="noopener noreferrer"
        target="_blank"
      >
        Skills & MCP servers docs
      </a>
    </p>
    <div
      class="max-w-4xl space-y-5"…

@propr-dev propr-dev Bot changed the title ⚠️⑥ [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests 🔨 [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests Nov 16, 2026
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 62fdd5c

Summary of Changes

I fixed the Shard 2/4 failure. It was a timing race in the test, not a bug in the product code, and I changed only propr-ui/src/pages/SettingsPage/AgentExtensionsOAuth.test.tsx.

Cause: The hook in useExtensionLibrary.ts attaches the "refresh on focus" listener in a useEffect. React can run that a moment after the "Finish signing in to … in the new tab" notice is already on screen. The test fired focus as soon as the notice appeared. On a loaded CI runner the listener sometimes wasn't attached yet, so no reload happened and the test got expected 1 to be 2. The final "listeners are gone" check could miss in the same way, because the listener is removed in that effect too.

Fix: A small helper in the test counts the focus listeners still attached to the window. Before firing focus, the test now waits until the listener is attached. Before the "listeners are gone" check, it waits until it has been removed. The "Connect" test had the same race, so I applied the fix there too.

Verification:

  • Reproduced: I temporarily delayed the listener's attach and removal by 100 ms in the hook. The old test then failed in both the Connect and Reconnect cases, while the new one passed 9 of 9. The hook is back to its original code afterwards.
  • Clean code: the file passes 9 of 9 on three runs.
  • Lint and types: zero-warning lint on the test file and the UI typecheck (tsc --noEmit) are clean.
  • Not run: the full CI shard.

There's no visual change, so I didn't make a preview.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk: none
  • Low risk (1 file)
    • propr-ui/src/pages/SettingsPage/AgentExtensionsOAuth.test.tsx (+19/−0)

Validation evidence

  • No repository validation commands ran.

Diff size: 1 file changed, +19/−0 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 4m 58s
  • Tokens: 553,466 (547,642 in / 5,824 out)
  • Cost: $0.47

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6907837273✓

…test, not a bug in the product code, and I changed only `propr-ui/src/pages/SettingsPage/AgentExtensionsOAuth.test.tsx`.

I fixed the Shard 2/4 failure. It was a timing race in the test, not a bug in the product code, and I changed only `propr-ui/src/pages/SettingsPage/AgentExtensionsOAuth.test.tsx`.

**Cause:** The hook in `useExtensionLibrary.ts` attaches the "refresh on focus" listener in a `useEffect`. React can run that a moment after the "Finish signing in to … in the new tab" notice is already on screen. The test fired `focus` as soon as the notice appeared. On a loaded CI runner the listener sometimes wasn't attached yet, so no reload happened and the test got `expected 1 to be 2`. The final "listeners are gone" check could miss in the same way, because the listener is removed in that effect too.

**Fix:** A small helper in the test counts the `focus` listeners still attached to the window. Before firing `focus`, the test now waits until the listener is attached. Before the "listeners are gone" check, it waits until it has been removed. The "Connect" test had the same race, so I applied the fix there too.

**Verification:**
- **Reproduced:** I temporarily delayed the listener's attach and removal by 100 ms in the hook. The old test then failed in both the Connect and Reconnect cases, while the new one passed 9 of 9. The hook is back to its original code afterwards.
- **Clean code:** the file passes 9 of 9 on three runs.
- **Lint and types:** zero-warning lint on the test file and the UI typecheck (`tsc --noEmit`) are clean.
- **Not run:** the full CI shard.

There's no visual change, so I didn't make a preview.

PR: #3580
Comment by: @propr-dev[bot] (ID: 6907837273)
Model: Claude Opus 5.5
@propr-dev propr-dev Bot changed the title 🔨 [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests ⚠️⑥ [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests Nov 16, 2026
@integry

integry commented Nov 16, 2026

Copy link
Copy Markdown
Owner

/review fable astra

@propr-dev propr-dev Bot changed the title ⚠️⑥ [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests 🔨 [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests Nov 16, 2026
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 2 reviews:

View Task Details

@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — fable

Overall Evaluation

This PR adds plugin prompt slash commands: a shared built-in command list, a stricter manifest schema, resolution against enabled plugins, a one-shot follow-up job on pull requests, an implementation task on issues, enable-time conflict checks, help rows, UI and docs. I traced the pull request intake, the issue intake with its intent record, the label-detection claim and the dispatcher settlement, and found no reachable failure that leaves a wrong outcome. The PR is merge-ready within scope, with two limits on that statement:

  • Intake tests not visible: test/pluginCommandIntake.test.ts was omitted from the diff, so I could not check that the intake tests cover the issue intent protocol.
  • Unchanged code not inspected: I assumed the author filter in processCommentEvent runs before the new plugin branch, as it does for the built-in commands. The prompt builder for pull request follow-ups and the comment-edit path were also not in the supplied context.

Current-head checks are all green (35 passed, 0 failed). The shard 4 failure in the comment history is from an earlier head.

✅ Argument cannot escape its delimiter — encodeCommandArgument in packages/shared/src/commands.ts strips control characters, caps the length, and emits one JSON string with <, > and & escaped. Extensions come only from pluginCommandExtensions, which reads the manifest and the plugin's own managed library items, so nothing in the comment can add or swap a skill or server.

✅ Built-ins stay authoritative — slashCommandParser.ts now builds its set from BUILT_IN_COMMAND_NAMES, the manifest schema refuses those names, and candidatePluginCommandName short-circuits before any database read. Plain comments and built-in commands therefore cost nothing and behave as before.

✅ Plugin jobs are isolated — the pull request job gets its own pr-plugin-command-… job ID and skips pickUpPendingCommentsWithClaim, so the plugin's instruction and library additions cannot leak into batched comments. Follow-ups still resolve with allowWrite false.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S9: 🟢 Issue intent protocol is heavy

packages/core/src/plugins/issueCommandIntent.ts (468 lines) and issueCommentCommands.ts (363 lines) add a pending/queued record, per-token fates, two leases and five Lua scripts. They also add hooks in issueDetection.ts and issueJobDispatcher.ts. All of this closes one window: the label is published and the enqueue then fails. I could not prove a simpler ordering is safe (for example enqueue first, then label), because the dispatcher's trigger-label checks were not in the context. It is worth a follow-up to see whether that ordering would remove most of this state; it is optional because the current design traces correctly.

S10: 🟢 "Leave for later" relies on redelivery

processIssueCommentCommand and the in_flight branch of processDetectedIssue throw so that the delivery is not acknowledged and the relay sends it again. If an instance receives GitHub webhooks directly, a thrown error may not produce a redelivery, and the command would wait for the poller or be lost. I could not verify how handleIssueCommentEvent callers treat a throw, so this is a suggestion to confirm, not a demonstrated failure.

S11: 🟢 Second command while a child job waits

defaultHasQueuedIssueJob ignores child jobs (!data.isChildJob), and the dedupe window is 30 seconds. If a dispatched child waits in the queue longer than that before it applies the -processing label, a second plugin command comment on the same issue could pass the busy checks and start another task. The label path has the same gap, but a comment is easier to repeat than a label re-apply. Counting child jobs as busy in the command intake would close it.

S12: 🟢 Closed issues are not checked

The issue intake does not look at issue.state. A command on a closed issue would apply the processing label and queue a job, whereas label polling only considers open issues. An explicit refusal reply for closed issues would be clearer, unless the dispatcher already stops such work.

S13: 🟢 Unrelated test change in the diff

propr-ui/src/pages/SettingsPage/AgentExtensionsOAuth.test.tsx gains a focus-listener watcher that has nothing to do with plugin commands. It looks like a flake fix; it is harmless but would be easier to review and revert as its own change.

S14: 🟢 Conflict lookup per listed plugin

PluginStore.view now calls commandConflicts for every disabled installed plugin, and each call queries plugin_installations and re-reads the manifests. Computing the enabled set once per list call would avoid the repeated reads; the cost is small at today's catalog size.

Score

No verified blocker, and current-head checks pass. The implementation meets the six acceptance criteria as far as the supplied diff shows, with the omitted intake test file and the size of the issue intent protocol as the main reservations.

Score: 8/10


🤖 Review Details

  • Model: Claude Fable 5.2
  • Time: 2m 27s
  • Tokens: 186,999 (174,123 in / 12,876 out)
  • Cost: $2.26
  • Review scope: Partial — 1 changed file has no patch content from GitHub, which a larger review budget cannot recover.

View Task

Files omitted from review diff

1 file was omitted from the review diff. Large, binary, generated, and lockfile changes are deprioritized.

No patch content from GitHub (a larger review budget cannot recover these)

  • test/pluginCommandIntake.test.ts

💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S9 S10 S11 S12 S13 S14

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — astra

Overall Evaluation

The PR implements manifest-defined prompt commands across PR and issue intake, task execution, help, and documentation. The supplied code is merge-ready within the reviewed scope; no verified merge blocker was found.

✅ Manifest-controlled execution — Command instructions and explicit extension selections come from the manifest. Arguments are encoded and delimited, and cannot alter the extension request.

✅ Recovery-aware issue intake — Conditional Redis updates, attempt tokens, queue read-back, and dispatcher settlement address interrupted enqueue operations and competing recovery attempts.

✅ Built-in compatibility — The parser retains the existing command names, with regression tests covering their behavior and manifest validation preventing shadowing.

Current-head checks report 35 passed and no failures. This is a partial static review: test/pluginCommandIntake.test.ts was omitted from the supplied diff. No commands or tests were run during this review.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S15: 🟢 Identify unavailable commands in help

packages/core/src/plugins/pluginCommands.ts, listPluginCommandHelp, includes commands with needsWrite: true, although invocation always refuses them. Consider annotating these help entries with their unavailable status, matching the Plugins page. This is optional because invocation correctly refuses the command and explains why.

S16: 🟢 Qualify prompt-injection guarantees

The new documentation says untrusted arguments can never become instructions. The implementation guarantees encoding, delimiter integrity, and manifest-controlled extension selection; model adherence remains behavioral. Describe arguments as explicitly marked and instructed to be treated as data, rather than promising absolute model compliance. This wording improvement does not change the verified extension-selection boundary.

Score

The reviewed implementation covers the requested behavior with substantial validation and passing current-head checks. The omitted intake test limits coverage verification, but does not establish a code defect.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 2m 4s
  • Tokens: 121,284 (119,513 in / 1,771 out)
  • Cost: $1.18
  • Review scope: Partial — 1 changed file has no patch content from GitHub, which a larger review budget cannot recover.

View Task

Files omitted from review diff

1 file was omitted from the review diff. Large, binary, generated, and lockfile changes are deprioritized.

No patch content from GitHub (a larger review budget cannot recover these)

  • test/pluginCommandIntake.test.ts

💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S15 S16

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests ✅⑧ [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests Nov 16, 2026
@integry
integry merged commit b62e5ae into 3542-epic-plugin-system-xu8 Nov 16, 2026
47 checks passed
@integry
integry deleted the 3551/claude-opus-5-5-plugin-slash-commands-pro-20261115-2203-syc branch November 16, 2026 09:11
@propr-dev propr-dev Bot changed the title ✅⑧ [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests [3551 by Claude Opus 5.5] Plugin slash commands: prompt commands on issues and pull requests Nov 16, 2026
propr-dev Bot pushed a commit that referenced this pull request Nov 17, 2026
…ites pass, the affected root tests pass, and typecheck and lint (zero warnings) are clean. There are no preview images, since all the changes are text written into GitHub PR bodies.

Status line (`pullRequestStatusBlock.ts`, `pullRequestStatusFacts.ts`)
1. Skipped checks no longer count as passed. They show separately only when there are any: `checks: 35 passed, 12 skipped`.
2. The time always includes the date: `updated Nov 16 13:59 UTC`. The issue asked for the date only when it isn't today, but the line is written "now" and can be read days later, so it always has to carry it. Old blocks without a date still count as the same status, so they aren't rewritten just for that.
3. Below goal now reads `⚠️ Needs you · review 6/10, goal 8`, with the separate score dropped. Sub-PR summaries in epics read the same way.
4. A running loop reads `🔨 Ultrafix cycle 3 of 10`. While its follow-up fix runs it still reads `Follow-up in progress · Ultrafix cycle 3 of 10`.
5. Cancelled checks:
   - A cancelled run that a newer run of the same check replaced, or whose name still contains `${{`, is left out of the counts entirely. That covers the #3580 case.
   - Decision for you: a cancelled run that nothing replaced shows as `cancelled: e2e · checks: …, 1 cancelled` and is never called failed, but the PR still reads "Needs you". I did this to respect the issue's note not to change state decisions, and because nothing will re-run it. Saying no would let such a PR read Ready, but ProPR's auto-merge would still refuse it, because that check logic is shared and unchanged.
   - A failed check name containing `${{` counts towards the `+N` but is never listed.
6. Edits are now batched: when only check counts or failed/cancelled names change, the body is edited at most once per 30 seconds, and the latest counts are written when the window ends. Any other change (state, reason, score, cycle, a title rename) is still written at once. This is in the new `pullRequestStatusEditPacing.ts`. The last edit time is kept in Redis when available, so all ProPR processes share the limit.

Review digest (`reviewDigestMarkdown.ts`)
7. The Validation evidence section is left out when no validation command is configured or ran.
8. Acceptance-criteria evidence now renders its own inline code as normal code spans. The rest is plain text with Markdown characters escaped, so it can't create links, @mentions, bare URLs or HTML.

Docs
9. `pr-status.md` now says what is guaranteed (ProPR's own merges, task titles, notifications). It also says a merge done on GitHub while the title has the emoji keeps it in GitHub's default merge message, and how to avoid that. I updated its examples and described the check counts and edit batching. I also added a `CHANGELOG.md` `[Unreleased]` → Fixed entry. The existing Unreleased entries didn't quote any of the old wording, so nothing there needed rewriting.

Tests: the new `packages/core/test/pullRequestStatusText.test.ts` covers each wording change, the skipped and cancelled counting, and what the edit batching holds back. Two sync tests show a burst of check completions producing one edit per window, with a state change still written at once. I updated the existing expectations for the new wording.
propr-dev Bot pushed a commit that referenced this pull request Nov 17, 2026
…uites pass (259 tests), and typecheck and lint (zero warnings) are clean. I also put back the old code briefly and checked that each new test fails without its fix.

I fixed F1 and F2. The status, readiness, epic and digest suites pass (259 tests), and typecheck and lint (zero warnings) are clean. I also put back the old code briefly and checked that each new test fails without its fix.

**F1: same-named checks hid cancellations** (`pullRequestStatusFacts.ts`, `cancelledCheckRuns`)
- A matching name alone no longer hides a cancelled run. It is only left out if a newer run of the same check replaced it:
  - **A re-run job:** same name, same check suite, newer run.
  - **A newer run of the same workflow:** same name, a different check suite that belongs to the same GitHub Actions workflow, newer run.
- "Newer" means a higher check run id, or a later start time if there is no id. With neither, it isn't treated as a replacement.
- To link a check suite to its workflow, I added one extra GitHub read (`GET /repos/{owner}/{repo}/actions/runs?head_sha=…`). It only runs when a replacement could be in a different suite. If that read fails, or the suite isn't in the results, the cancellation still counts and the PR still reads "Needs you".
- Runs named `${{` are still always left out, so the #3580 case is unchanged.
- New tests cover:
  - a re-run in the same suite, which makes no extra read
  - a newer run of the same workflow
  - two workflows that each have a `test` job, one passed and one cancelled, which now reads `⚠️ Needs you · cancelled: test`
  - the unproven cases: the workflow read fails, the suite isn't listed, the passing run is older, or the runs carry no id
- I updated the earlier duplicate-name test to give its runs an id and a suite.

**F2: bare `www.` addresses became links** (`reviewDigestMarkdown.ts`)
- Outside code spans, the dot after `www` (any case) is now escaped. GitHub then shows the address as plain text, not a link.
- The new test renders the evidence with the GitHub-flavoured Markdown parser `micromark-extension-gfm`. It checks that there are no links, that the text reads exactly as written, and that `` `www.example.com` `` in backticks stays code. It covers `www.`, `WWW.`, an address in brackets or with emphasis, an email address and an `https://` URL.
- **Dependency note:** the test imports `micromark` and `micromark-extension-gfm`. They come from the root `node_modules` (`packages/shared` depends on the GFM extension) and are not declared in `packages/core`. I did this to avoid changing the lockfile.

I also updated the `CHANGELOG.md` entry to describe what counts as a replacement now.

**Found separately, not fixed:** the evidence parser removes a trailing `*`, so `*www.example.com*` is stored as `*www.example.com`. This was already the behaviour before this PR. I changed my test input so it doesn't end in `*`.

PR: #3653
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
integry pushed a commit that referenced this pull request Nov 17, 2026
…nd count fixes (#3653)

* I've fixed all nine items. The status, digest, epic and title test suites pass, the affected root tests pass, and typecheck and lint (zero warnings) are clean. There are no preview images, since all the changes are text written into GitHub PR bodies.

Status line (`pullRequestStatusBlock.ts`, `pullRequestStatusFacts.ts`)
1. Skipped checks no longer count as passed. They show separately only when there are any: `checks: 35 passed, 12 skipped`.
2. The time always includes the date: `updated Nov 16 13:59 UTC`. The issue asked for the date only when it isn't today, but the line is written "now" and can be read days later, so it always has to carry it. Old blocks without a date still count as the same status, so they aren't rewritten just for that.
3. Below goal now reads `⚠️ Needs you · review 6/10, goal 8`, with the separate score dropped. Sub-PR summaries in epics read the same way.
4. A running loop reads `🔨 Ultrafix cycle 3 of 10`. While its follow-up fix runs it still reads `Follow-up in progress · Ultrafix cycle 3 of 10`.
5. Cancelled checks:
   - A cancelled run that a newer run of the same check replaced, or whose name still contains `${{`, is left out of the counts entirely. That covers the #3580 case.
   - Decision for you: a cancelled run that nothing replaced shows as `cancelled: e2e · checks: …, 1 cancelled` and is never called failed, but the PR still reads "Needs you". I did this to respect the issue's note not to change state decisions, and because nothing will re-run it. Saying no would let such a PR read Ready, but ProPR's auto-merge would still refuse it, because that check logic is shared and unchanged.
   - A failed check name containing `${{` counts towards the `+N` but is never listed.
6. Edits are now batched: when only check counts or failed/cancelled names change, the body is edited at most once per 30 seconds, and the latest counts are written when the window ends. Any other change (state, reason, score, cycle, a title rename) is still written at once. This is in the new `pullRequestStatusEditPacing.ts`. The last edit time is kept in Redis when available, so all ProPR processes share the limit.

Review digest (`reviewDigestMarkdown.ts`)
7. The Validation evidence section is left out when no validation command is configured or ran.
8. Acceptance-criteria evidence now renders its own inline code as normal code spans. The rest is plain text with Markdown characters escaped, so it can't create links, @mentions, bare URLs or HTML.

Docs
9. `pr-status.md` now says what is guaranteed (ProPR's own merges, task titles, notifications). It also says a merge done on GitHub while the title has the emoji keeps it in GitHub's default merge message, and how to avoid that. I updated its examples and described the check counts and edit batching. I also added a `CHANGELOG.md` `[Unreleased]` → Fixed entry. The existing Unreleased entries didn't quote any of the old wording, so nothing there needed rewriting.

Tests: the new `packages/core/test/pullRequestStatusText.test.ts` covers each wording change, the skipped and cancelled counting, and what the edit batching holds back. Two sync tests show a burst of check completions producing one edit per window, with a state change still written at once. I updated the existing expectations for the new wording.

* feat(ai): I fixed F1 and F2. The status, readiness, epic and digest suites pass (259 tests), and typecheck and lint (zero warnings) are clean. I also put back the old code briefly and checked that each new test fails without its fix.

I fixed F1 and F2. The status, readiness, epic and digest suites pass (259 tests), and typecheck and lint (zero warnings) are clean. I also put back the old code briefly and checked that each new test fails without its fix.

**F1: same-named checks hid cancellations** (`pullRequestStatusFacts.ts`, `cancelledCheckRuns`)
- A matching name alone no longer hides a cancelled run. It is only left out if a newer run of the same check replaced it:
  - **A re-run job:** same name, same check suite, newer run.
  - **A newer run of the same workflow:** same name, a different check suite that belongs to the same GitHub Actions workflow, newer run.
- "Newer" means a higher check run id, or a later start time if there is no id. With neither, it isn't treated as a replacement.
- To link a check suite to its workflow, I added one extra GitHub read (`GET /repos/{owner}/{repo}/actions/runs?head_sha=…`). It only runs when a replacement could be in a different suite. If that read fails, or the suite isn't in the results, the cancellation still counts and the PR still reads "Needs you".
- Runs named `${{` are still always left out, so the #3580 case is unchanged.
- New tests cover:
  - a re-run in the same suite, which makes no extra read
  - a newer run of the same workflow
  - two workflows that each have a `test` job, one passed and one cancelled, which now reads `⚠️ Needs you · cancelled: test`
  - the unproven cases: the workflow read fails, the suite isn't listed, the passing run is older, or the runs carry no id
- I updated the earlier duplicate-name test to give its runs an id and a suite.

**F2: bare `www.` addresses became links** (`reviewDigestMarkdown.ts`)
- Outside code spans, the dot after `www` (any case) is now escaped. GitHub then shows the address as plain text, not a link.
- The new test renders the evidence with the GitHub-flavoured Markdown parser `micromark-extension-gfm`. It checks that there are no links, that the text reads exactly as written, and that `` `www.example.com` `` in backticks stays code. It covers `www.`, `WWW.`, an address in brackets or with emphasis, an email address and an `https://` URL.
- **Dependency note:** the test imports `micromark` and `micromark-extension-gfm`. They come from the root `node_modules` (`packages/shared` depends on the GFM extension) and are not declared in `packages/core`. I did this to avoid changing the lockfile.

I also updated the `CHANGELOG.md` entry to describe what counts as a replacement now.

**Found separately, not fixed:** the evidence parser removes a trailing `*`, so `*www.example.com*` is stored as `*www.example.com`. This was already the behaviour before this PR. I changed my test input so it doesn't end in `*`.

PR: #3653
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5

* feat(ai): I fixed the Shard 2/4 failure. It was one stale expectation in an old test, not a bug in the branch's code.

I fixed the Shard 2/4 failure. It was one stale expectation in an old test, not a bug in the branch's code.

**Cause:** `packages/core/test/acceptanceCriteriaPrompt.test.ts` (test 3, added for #3499) still expected the old digest output. That output wrapped the agent's whole evidence text in one code span:

- `` `` `src/pad.ts`, `test/pad.test.ts` `` ``
- `` `left for later` ``

Item 8 of this PR deliberately changed that. Evidence now keeps only its own inline code as code spans, and the rest is escaped plain text. So the code now correctly produces:

- `` `src/pad.ts`, `test/pad.test.ts` ``
- `left for later`

That test was the only failure in the shard's log; every other file passed.

**Fix:** I updated the two expected lines to the new output and renamed the test to "criteria are code spans and evidence keeps only its own code spans". Nothing outside that test file changed.

**Checks:** Through `scripts/run-test-suite.mjs`, the fixed test passes, and so do the other suites that use the digest or acceptance criteria: core `reviewDigest`, shared `acceptanceCriteria`, `reviewDigestPublication`, `reviewPromptBuilder`, `prReviewRunnerBudget` and `prCommentLinkedIssueRepository`.

There are no preview images, since this is a test-only change.

PR: #3653
Comment by: @propr-dev[bot] (ID: 6942944529)
Model: Claude Opus 5.5

* feat(ai): I fixed F4: a cancelled check replaced by a newer run of the same workflow is now left out of the counts even when the older workflow run is on a later page of GitHub's results. Before, that PR could show "Needs you" despite the successful re-run.

I fixed F4: a cancelled check replaced by a newer run of the same workflow is now left out of the counts even when the older workflow run is on a later page of GitHub's results. Before, that PR could show "Needs you" despite the successful re-run.

**What changed** (`packages/core/src/services/pullRequestStatus/pullRequestStatusFacts.ts`)
- `cancelledCheckRuns` now collects the check suites it actually needs to compare: each cancelled run's suite, and the suite of each newer same-name run in a different suite. It passes that set to the lookup.
- `loadSuiteWorkflows` now reads the workflow-run list page by page (100 per page). It stops when:
  - every needed suite is resolved, or
  - the list runs out (all of `total_count` read, or a short page), or
  - it hits a 10-page limit. GitHub returns at most 1,000 results for a `head_sha` query, so 10 pages is everything it will list.
- The safe fallbacks still hold. A suite that never appears still counts as cancelled. A runner from a different workflow does not hide the cancellation. A failed read anywhere still leaves the cancellation in place, and the partial results are thrown away. No read is made when no replacement in another suite is possible.

**Tests** (`packages/core/test/pullRequestStatusText.test.ts`)
- The mock GitHub endpoint now honours `page` and `per_page`.
- A new test puts the cancelled run's older suite on page two and checks that:
  - the PR reads as Ready, after exactly two reads.
  - a page-two suite from a different workflow still leaves the run cancelled.
  - a suite that never appears is read to the end of the list (two pages) and stays cancelled.
  - when both suites are on page one, no second page is read.
- With the old single-page code put back, the new test fails; with the fix it passes.

**Verification:** the status, epic and epic-creation suites pass (240 tests). `epicPRCreationStatus.test.ts` needs `--experimental-test-module-mocks` to run. `tsc --noEmit` and zero-warning ESLint on core `src` are clean.

The same unpaged call to `GET …/actions/runs` also appears in `src/jobs/followupCiSuspensionRuns.ts`. That file isn't changed by this PR, so I didn't review or change it. There are no previews, since nothing visual changed.

PR: #3653
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant