Repository navigation
[Epic] 0.9.2 release fixes: MCP server and CLI - #3625
Conversation
…from cost data and hides the token-alert settings (#3611) The change (`packages/api/mcp/adapter.ts`): the old single key filter is split in two. - Other key classes (`secret`, `password`, `credential`, private key, API key, access key, `cookie`, `authorization`, worktree/stored path, `job_data`, `container_env`): still always dropped, whatever the value. That rule is unchanged. - `token`-named keys: kept only if the value can't hold a credential: a number, boolean or null, or a plain object or array made only of those. A string, or a container with any string inside, is still dropped. That covers access, bearer, instance and refresh tokens and `tokenHash`, and also number-looking strings like `"1200"` and JSON-encoded strings. - Buffers, typed arrays and dates under a `token` key are also dropped, because a byte array could be a token's raw bytes. - Old exemption removed: the one-off `pr_review_max_context_tokens` exemption is gone; the general rule covers it. - No allow-list of setting names to maintain. Effect on the two tools in the issue: - `get_cost_breakdown` rows and totals now include `input_tokens`, `output_tokens`, `cache_creation_input_tokens` and `cache_read_input_tokens`, the same as `GET /api/stats/cost`. - `get_execution_settings` now includes all five `token_outlier_*` settings. Tests: - New `packages/api/test/mcpResultRedaction.test.ts`: a table of keys and values that must be kept and must be removed. Each one is checked at the top level, nested in an object, inside an array, as a JSON-encoded string, and as a JSON string inside an object. It also checks that a kept token container is still redacted inside. - `costExport.test.ts`: a new test runs redaction on the `get_cost_breakdown` output and checks it matches the `GET /api/stats/cost` response. - `mcpReviewerConcurrency.test.ts`: the settings round-trip now writes and reads back the `token_outlier_*` values through the real MCP call path. Against the original adapter, the new tests and the settings round-trip fail. I didn't create a visual preview because this change only affects API data. Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…tivity silently cover only the first 20 repositories (#3613) Activity tools (`toolsActivity.ts`, `activityDigest.ts`) - The cap went from 20 to 100. Running, queued and failed work was already read with one query across the whole repository set, so the old cap only limited the per-repository access check. That check now runs at most 8 at a time instead of one after another. - Each result has a new `repositoriesNotScanned` count. `repositoriesTruncated` is true only when that count is above zero. - When repositories were skipped, the text summary ends with "N granted repositories were not scanned; work there may be missing." `list_pull_requests` (`pullRequestInventory.ts`, `toolsPullRequests.ts`) - Each scanned repository costs its own GitHub requests, so I kept the 20-per-call window rather than add more GitHub traffic per call. - Call again with `repositoryOffset` set to the returned `nextRepositoryOffset`, and `offset` back to 0, to get the next batch. `offset` still pages within the current batch. - The repository list is now filtered by the grant first, so repositories outside the grant no longer count toward the 20. - The result has `repositoriesNotScanned` and `nextRepositoryOffset`. It also has its own summary line, which names the next `repositoryOffset`. The old generic summary counted the repository list instead of the pull requests. Tests (`mcpActivity.test.ts`) - The issue's case: a grant of 24 repositories where the only running task is in the last one. The task is reported, the summary reads "Across 24 repositories: 1 running tasks…", and each repository is access-checked exactly once. - 103 configured repositories: 100 are read, and the summary says 3 were not scanned. - `list_pull_requests` with 24 repositories, one of them forbidden: the first window and the `repositoryOffset` continuation together cover all of them, and the summary text is checked. I also updated `docs/mcp.md` and `docs/mcp-coverage.md` to describe the new fields and the continuation. Nothing here is visible in the UI, so there are no previews. Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
… summaries count the wrong thing, and links.ui points at the API host (#3623) Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
… new 0.9.2 settings and the CLI cannot read or set two keys it lists (#3633) * That stopped task was a leftover wait loop from earlier, and it doesn't change any result. It most likely never ended because its own command line contained the text it was searching for, so it kept finding itself. I had already re-run the tests separately, and all 47 passed. Nothing needs restarting. * feat(ai): I fixed the failing check. It was the docs site build that broke, not the code. I fixed the failing check. It was the docs site build that broke, not the code. **Cause:** `docs/docs/operations/settings-locations.md` had four links on this branch written as `./agents.md` and `./agent-extensions.md`. Those pages live in `docs/docs/features/`, not in `operations/`, so the links pointed at pages that don't exist. The docs build rejects broken links, so it failed with "Docusaurus found broken links!". The CI job log hid this, because that step writes its output to a log file. The full error is only in the uploaded `build-check-output` artifact. The other stages in that step (CLI lint, API build and lint, OpenAPI spec and client contract) all passed. **Fix:** I pointed all four links at `../features/agents.md` and `../features/agent-extensions.md`, which is how other pages under `operations/` already link there. No other files changed. **Verification:** I ran `npm run build` in `docs/` locally. It now succeeds with no broken-link warnings. I also ran the API lint with CI's zero-warnings setting, and it passes. The cancelled CLI and Connect jobs in that run aren't a separate problem. They are cancelled, not failed, and no tests failed. I didn't make a preview because the change only corrects link targets and nothing looks different. PR: #3633 Comment by: @propr-dev[bot] (ID: 6936283216) Model: Claude Opus 5.5 * feat(ai): I fixed the Shard 3/4 failure. All 9 tests in `packages/api/test/settingsCatalog.test.ts` now pass locally, including the one that failed in CI. I fixed the Shard 3/4 failure. All 9 tests in `packages/api/test/settingsCatalog.test.ts` now pass locally, including the one that failed in CI. **Cause:** `docs/docs/operations/settings-locations.md` is built by `npm run docs:settings`, and a test checks that the committed page matches what the script would produce. The previous commit fixed four broken links (`./agents.md` and `./agent-extensions.md` should have pointed into `features/`) by editing that page directly. The script still wrote the old links, so the page no longer matched and the test "generated settings locations page is current" failed. **Fix:** The bug was in the script, `scripts/generate-settings-docs.mjs`. It dropped the folder from every doc path and always wrote `./<name>.md`. It now writes links relative to `operations/`: pages in that folder stay `./<name>.md`, and pages elsewhere become `../<folder>/<name>.md`. When I re-ran `npm run docs:settings`, the page came out exactly the same as the hand-fixed version. The page is byte-for-byte what the previous commit's docs build passed with, so I didn't rebuild the docs site. That script is the only file I changed. I made no preview because nothing on the page looks different. PR: #3633 Comment by: @propr-dev[bot] (ID: 6936829614) Model: Claude Opus 5.5 --------- Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
…imestamp formats in results (#3637) * I've fixed all five points from issue #3598. Every `packages/api/test/mcp*` and `goal*` suite passes when run from the repo root. Lint and the API typecheck are clean. 1. Goal artifacts agree with the goal's pull requests (`services/goalProjection.ts`) - The goal projection that `get_goal` and the REST goal routes both use now checks the stored artifact list against recorded merges. - A pull request whose merge ProPR has seen is reported as `merged` with `draft: false`, and `artifactStats.openPullRequests` drops by one for it. - The REST response shape is unchanged; only these values are corrected. Nothing stored is rewritten. 2. Submission state matches the task (`mcp/toolsTaskSubmissions.ts`) - The stored submission row stops at `queued` once dispatched. `get_task_submission` and `list_task_submissions` now report `state` and `submissionState` from the task's stage once it is running, completed, failed or cancelled. - The `create_task` receipt and operation polling are unchanged, so operation tracking behaves as before. 3. One timestamp format (`mcp/resultTimestamps.ts`, wired into `mcp/toolExecution.ts`) - One recursive pass runs on every tool result. It rewrites fields whose names mark a time (`*_at`, `*At`, `timestamp`, `*Time`, `since`, `until`) to ISO 8601 UTC with `Z`. - That covers SQLite `YYYY-MM-DD HH:MM:SS` text, ISO strings with no zone or with an offset, and epoch milliseconds. - Values that are already UTC ISO strings are left exactly as they are. Durations, cursors, free text and other fields are not touched, and field names stay the same. 4. Plans and tasks - `list_plans` rows now have `pull_requests_truncated`, which is true when the short `pull_requests` list leaves some out. - In `list_tasks`, a missing `agent_alias` is filled from the agent recorded during execution, using the same source as the REST task status the CLI reads (`loadTaskModelIdentities`). A task with no such record still shows `null`. 5. `list_followup_handoffs` (`mcp/toolsMaintenance.ts`) - By default it returns only handoffs that are held for an operator or in automatic recovery. - New inputs: `includeReleased` (default false), `offset`, and `limit` (default 20, max 100). The result has a `nextOffset` for the next page. Tests and docs - New tests cover each point: - goal artifacts: `goalProjection.test.ts` - submission state: `mcpTaskSubmissions.test.ts` - timestamps (unit and through `executeTool`): `mcpResultTimestamps.test.ts` - plan truncation: `mcpPresentation.test.ts` - task agent: `mcpTaskLineage.test.ts` - handoff filter and paging: `mcpMaintenance.test.ts` - I changed the expected values in `mcpGoalTaskDepth` and `mcpTaskLineage`, which asserted the old zone-less timestamps in MCP results. - I added the new field names that `docs/mcp.md` now mentions to the doc-word allowlist in `mcpObservableSurface`. - `docs/mcp.md` describes the timestamp rule, the agreeing state fields, the truncation flag, the agent fallback and the handoff options. `mcpResultTimestamps.test.ts` exits normally when run from the repo root, as CI runs it. Run from inside `packages/api`, importing the tool catalog opens a second database connection that is never closed, so the process doesn't exit. That also happens on unchanged HEAD. This changes MCP results only, nothing in the UI, so there are no previews. * feat(ai): I fixed F1. When `list_tasks` fills in a missing agent from what the execution recorded, it now takes the model from that same record, so a task can't show an agent paired with a model it never ran. I fixed F1. When `list_tasks` fills in a missing agent from what the execution recorded, it now takes the model from that same record, so a task can't show an agent paired with a model it never ran. **What changed** - **`packages/api/mcp/taskListing.ts` (`fillExecutionAgents`)**: when the execution record supplies `agentAlias`, `model_name` is now set from that record's `modelName` too, with the same 100-character limit. In your example the task now reports `codex`/`gpt-5.6` instead of `codex`/`opus`. Tasks that already had an agent from submission are unchanged. - **`packages/api/mcp/listSummaries.ts`**: `MODEL_LIMIT` is now exported so the fill uses the same limit as `summarizeTask`. - **Test** (`packages/api/test/mcpTaskLineage.test.ts`): a new case where submission recorded only `opus` and execution ran `gpt-5.6` with `codex`. It asserts the pair `['codex', 'gpt-5.6']`. With the old code put back, it fails with `['codex', 'opus']`. - **`docs/mcp.md`**: the fallback sentence now says the task reports the model that agent ran. A docs test rejects the literal `model_name` there, so I reworded rather than adding it to that test's allowed-word list. **Other callers:** `fillExecutionAgents` is the only place in the PR's changes that copies an agent out of the execution record. The REST task status path in `routes/taskHelpers.ts` reads agent and model from the same record together, so it doesn't have this bug. **Checks:** `mcpTaskLineage`, `mcpPresentation` and `mcpObservableSurface` pass (18 tests). Lint (zero warnings) and the API typecheck are clean. **Disk ran out:** the workspace disk filled to 100% partway through, and the failed write left `packages/api/mcp/listSummaries.ts` empty. I restored it from HEAD and checked it matched before editing again. To make room I deleted `/tmp/node-compile-cache`, which is only a cache. Free space then rose to about 20G, more than that deletion accounts for, so something else also released space. Most of the disk is in `/tmp/git-processor` (93G), so it may fill up again. PR: #3637 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>
…imeout 0`, unknown task shown as Pending, and HTML responses treated as data (#3640) * I've fixed all seven points from issue #3600 in `packages/cli`. The full CLI suite passes (755 tests, 0 failures), including 13 new tests in `src/commands/cliResponseHardening.test.ts` that cover each point. Typecheck also passes. I also pointed the CLI at a local server that serves an HTML page, and every backend command named in point 3 now prints one line and exits 1. 1. `events wait --follow`: consecutive waits now start at least 1 second apart, and Ctrl-C still stops at once. In the test, a stub that answers immediately gets 2–3 requests in 2.5 s instead of more than 1000. 2. `task get <unknown>`: when the server returns an empty record (no history, no task info), it prints "Error: Task not found: <id>" and exits 1, with or without `--json`. This uses the same check `task inspect` already had. 3. HTML or non-JSON responses: the check lives in one place, the shared API client (`src/api/client.ts`). - It rejects HTML pages, non-JSON bodies and malformed JSON, including HTML error pages such as a 404 or 502. - The message is: "Error: The remote did not return a ProPR API response. Check the URL with `propr remote`." and the exit code is 1. - `stats cost --csv` now accepts only a `text/csv` response. - Empty 204 responses and JSON error bodies behave as before. - I checked the server routes: the endpoints that send plain text are not ones the CLI calls. 4. `plan list`: now accepts `-l, --limit` (max 100, the server's limit) and `--offset`, and shows "Showing 1-10 of 197 plan(s)" with the exact command for the next page. Status uses the same labels as `plan get` ("PR Created", "Merged"). The server only pages by page number, so an offset that isn't a multiple of the limit fetches two pages and trims them. In that case `--json` keeps the same shape plus an `offset` field. 5. `repo list`: there's a new "PR title status" column (`on`/`off`), and "Visual previews" shows `image`, `image+video` or `off`. The long attachment-limit explanation now sits in a short list under the table, one line per repo with previews on. I kept it there because an existing test checks for that text and there is no `repo get` command to show it otherwise. It's still complete in `--json`. 6. `handoffs list`: prints a count line, a blank line between entries, states in words ("Agent exited", "Released by operator force") and an "Updated:" time in local time. `--json` still has the raw values. `handoffs inspect` uses the same formatting. 7. `remote-status`, durations and `login`: - `remote-status`: shows an Indexing line, and reports "Some components require attention." when indexing is `failed` or `disconnected` or the server sends warnings. A partial or odd response no longer crashes with the `toLowerCase` TypeError. - Durations: history durations read like "5m 40s", and steps under a second keep milliseconds. - `login`: when a remote is configured, it now checks the token with the server's `/api/auth/user` endpoint. - If the remote rejects the token (401), it isn't saved and the command exits 1. - If the remote can't be reached or isn't a ProPR API, the token is saved and the CLI says it couldn't be verified. - With no remote configured, it says the token wasn't verified. Two behaviour choices you may want to revisit: - Warnings in `remote-status`: any server warning now blocks "All systems operational." If some warnings are routine on your instances, that will show as degraded. - `login` on a 403: the token is saved, exit code 0, and the CLI says the instance denied access to this account. I also added short notes on login verification, the non-API error, plan paging and the follow spacing to `docs/docs/features/propr-cli.md`. I didn't create preview images: the changes are terminal text only, and the tests check that output directly. * feat(ai): I fixed both findings. The full CLI suite passes (787 tests, 785 passed, 0 failed) and typecheck passes. A first full-suite run reported 17 failures, but those two files need the `--experimental-test-module-mocks` flag. With the flag they pass (52/52), and the full run above used it. I fixed both findings. The full CLI suite passes (787 tests, 785 passed, 0 failed) and typecheck passes. A first full-suite run reported 17 failures, but those two files need the `--experimental-test-module-mocks` flag. With the flag they pass (52/52), and the full run above used it. **F1 – interactive login no longer saves a rejected token** - `loginWithGithubCli` (`packages/cli/src/auth/githubLogin.ts`) has a new `persist` option, on by default. With it off, the function returns the token from `gh` without saving it. That covers all four places it used to save. - A new `completeLogin` in `verifyToken.ts` checks the token against the remote, saves it only if the check allows, and then prints the success lines and "Token saved to:". - `propr login` now uses `completeLogin` for both the explicit-token path and the interactive path, and the interactive path passes `persist: false`. If the remote rejects the token (401), nothing is written, the previously saved token stays, and the command exits 1 with "…rejected this token. It was not saved." - I removed the `alreadySaved` option, since nothing saves before the check any more. - The other callers of `loginWithGithubCli`, in `setupCommand.ts` and `setup/hostActions.ts`, still save straight away as before. **F2 – error bodies that aren't JSON are rejected** - In `packages/cli/src/api/client.ts`, `readErrorBody` now treats an empty body as before and passes a JSON object through as a normal API error. - Any other body (HTML, plain text, broken JSON, or a bare JSON value that isn't an object) now gets the "The remote did not return a ProPR API response" error. Before this change, plain text and broken JSON were silently turned into ordinary not-found or authentication errors. **New tests** are in `packages/cli/src/auth/loginPersistence.test.ts`: - Interactive login, both with an existing `gh` session and after `gh auth login`: on a rejection nothing is saved and the old token survives; on success the token is saved and the success lines print after the check. - Setup still saves by default. - The explicit-token path saves nothing on a rejection, and still saves when the remote can't be reached. - A plain-text 404, a broken-JSON 401 and a bare JSON string on a 500 all get the non-API error. - Empty error bodies and JSON error bodies still come back as ordinary API errors. The docs note added earlier on this branch already says a rejected token is not saved, which is now true for both login paths. **Separate finding, not changed:** `propr setup` still saves the token from `gh` without checking it against a remote. That code wasn't changed in this PR, so I left it alone. PR: #3640 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>
Help fixes - Command Groups footer: it is now built from the registered commands (new `packages/cli/src/rootHelp.ts`). The small group table there only decides which group a command goes in. The subcommand lists come from the live command tree, so all the missing items now show up: `stats`, `pr`, `events`, `setup`, `github-app`, `connect`, `goal attention|continue|wait`, `plan generate|finalize|issues`, `automation templates`, `todo move|category`, `agent login` and `repo validate`. A command with no group is still shown under "Other", and the new test fails until it gets one. Long lines wrap at 100 columns. - `propr help task list` now prints the `task list` help. Commander's built-in help command only looks one level deep, so I replaced it with `help [command...]`, which follows the full path. An unknown path exits 1 with `unknown command 'task nope'`. - Smaller text fixes: - `plan create -b` shows its default once. - `goal wait`: the Conditions table now explains `blocked`, and the examples have the `$ ` prefix. - Retired model ids are replaced with current ones (`claude-sonnet-5-5`, `claude-opus-5-5`, `claude-haiku-5-5`). - `integry/gitfix` is now `myorg/myrepo`. - `task delete --force` now says it skips the confirmation prompt. - `propr admission` text output now points to `propr tank` instead of the MCP tool name. - `propr stats` help states that the default period is all time, unlike the MCP tool's 30 days. - Flags: `-j` now works everywhere `--json` does. That covers the commands in the issue plus `relay list`, `check`, `status` and `github-app create|manifest`, which had the same gap. `events` also gets `-l` for `--limit`. Both `stats` subcommands accept `-p, --project` as an alias of `--repository`, and the long flags still work. Decisions for you - `--group-by ""` still means `day`. The issue says no behaviour changes, so I documented it in the flag's help rather than making it an error. Rejecting an empty list would be a one-line change if you'd rather have that. - The global `-p` now reaches `stats`. Because of the new alias, `propr -p owner/repo stats cost` limits the report to that repository. Before, `stats` ignored it. The configured default project is still not applied to `stats`. - Two additions you didn't ask for: `propr completion --help` now has setup examples for bash, zsh and fish. The CLI README's System section said `propr status` checks the backend, but it shows the local stack, so I fixed that. Tests (new `packages/cli/src/rootHelp.test.ts`) - Fails when a top-level command or subcommand is missing from the footer. - Fails when any help text, including examples, names a model id that isn't in the current model definitions. - Fails when a `--json`, `--limit` or `--project` flag lacks its short form. `config profile set --project` is exempt, because it stores a profile's default project rather than choosing a target. - Also checks `propr help task list` end to end. I confirmed the first two catch regressions: putting an old model id back into `log` help and dropping `stats` from the group table each made them fail. Docs - `docs/docs/features/propr-cli.md` has short sections for config profiles, shell completion, follow-up handoffs, `agent login`, `setting reindex-summaries` and `backend`. The settings table gains `max_provider_replacements`, `ultrafix_escalation_*`, `ultrafix_ci_wait_timeout_ms`, `agent_network_*`, `token_outlier_*`, and two keys that were also missing: `agent_run_usage_pause_percent` and `automation_unproductive_run_threshold`. - `packages/cli/README.md` documents goals, automations, stats, pr, events, admission, handoffs, config and `agent pool`. I also corrected a stale model id and added `vibe` to the agent types. - `docs/mcp-coverage.md` has rows for `close_pull_request`, `approve_pull_request_workflow_runs` and `update_pull_request_labels`. I didn't create a visual preview because the changes are terminal help text and docs. The docs site wasn't rebuilt, so the new anchor links are checked by hand only. Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
✅ Epic ready for final merge: 0.9.2 release fixes: MCP server and CLIAll 7 child PRs have been merged into this epic branch. This epic PR is ready for final review and merge. Posted automatically by ProPR |
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within the visible scope. The changes address MCP result accuracy, repository coverage, settings discovery, and CLI behavior with focused regression coverage. The supplied current-head checks show 38 passed and no failures or pending checks. ✅ Repository coverage — Activity digests scan up to 100 repositories, disclose omitted repositories, and PR inventory exposes repository-window continuation. ✅ Targeted result handling — Summaries count explicit entities, token counts survive redaction, and malformed discussion cursors receive a validation error. ✅ CLI regression coverage — Tests cover throttled event following, unknown tasks, HTML responses, and arbitrary plan offsets. This was a static review; no commands were run. The linked issue bodies contain truncation notices, so requirement validation is limited to their visible portions. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Report success after persistenceIn S2: 🟢 Clarify repository pagination completionIn ScoreThe supplied diff has substantial targeted coverage, and static tracing identified no verified merge blockers. Current-head checks are green; the remaining observations are non-blocking clarity improvements. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/fix S1 S2 |
|
✅ Applied the requested follow-up changes in commit f2d7442
Summary of ChangesI made both fixes, S1 and S2. S1: success is reported only after the token is saved (
S2: repository paging docs
Checks
Nothing here changes what users see on screen, so I made no previews. Review digestRisk-tiered paths
Validation evidence
Diff size: 5 files changed, +80/−29 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
I made both fixes, S1 and S2.
**S1: success is reported only after the token is saved** (`packages/cli/src/auth/verifyToken.ts`)
- A new pure function, `describeLoginVerification`, works out the exit code, whether to save, and the lines to print, without printing anything.
- `completeLogin` now prints a rejection error at once (nothing gets saved in that case). It holds back "Authentication successful! Verified against…", "Token saved…" and the gh-flow summary until `setGithubToken` has finished. If the save fails, the error is the only thing the user sees.
- `reportLoginVerification` still prints straight away for its existing callers.
- I checked the related code: `loginWithGithubCli` (used by `propr setup`) already saves before it returns its success message, so it needed no change.
- New regression test in `loginPersistence.test.ts`: the save is made to fail for each remote answer that allows saving (verified, forbidden, unverified, no remote), in both the plain-token and gh flows. It checks that nothing is printed and the earlier token is kept. It fails against the old `verifyToken.ts` and passes now.
**S2: repository paging docs**
- `docs/mcp.md`: callers should keep going while `nextRepositoryOffset` is not null, and null means the last window has been read. `repositoriesNotScanned` is per call and counts every repository outside that call's window, earlier windows included. So the last window can show a positive count, and the count shouldn't be used to decide whether to continue.
- The same wrong guidance ("counts the rest … reaches them") was also in two other places, so I fixed those too:
- the `list_pull_requests` tool description in `packages/api/mcp/toolsPullRequests.ts`
- the bounded-scans note in `docs/mcp-coverage.md`
- The summary text in `presentation.ts` already offers a next offset only when `nextRepositoryOffset` is set, so I left it alone.
**Checks**
- CLI: the login and CLI-response test files pass (22 of 22), and `npm run typecheck` is clean.
- API: the MCP pull-request, operator-surface, presentation and activity tests passed with no failures. The run doesn't exit cleanly afterwards (exit 124), which is a known hang in these API suites rather than a test failure.
- ESLint is clean on `toolsPullRequests.ts`. The CLI auth files aren't covered by any ESLint config, so they weren't linted.
Nothing here changes what users see on screen, so I made no previews.
PR: #3625
Comment by: @integry (ID: 6941291148)
Model: Claude Opus 5.5
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
Full Test Suite ResultsValidation failed during: Test shard (shard 2).
View shard 2/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
|
✅ Applied the requested follow-up changes in commit d861a30 Processed 2 comments:
Summary of ChangesI fixed the most likely cause of the shard 2 failure, but I couldn't reproduce the failure itself. The test passes locally with and without the change, so I can't prove this was it. What failed: shard 2 had a single failing test, Likely cause: in Fix: Checks:
The real confirmation is the next CI run. Nothing changes on screen, so I made no previews. Review digestRisk-tiered paths
Validation evidence
Diff size: 1 file changed, +5/−2 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… couldn't reproduce the failure itself. The test passes locally with and without the change, so I can't prove this was it. I fixed the most likely cause of the shard 2 failure, but I couldn't reproduce the failure itself. The test passes locally with and without the change, so I can't prove this was it. **What failed:** shard 2 had a single failing test, `AgentExtensionsOAuth.test.tsx` › "Reconnect keeps refreshing after a return to Settings before consent…". After the "Finish signing in" notice appeared, the test sent a focus event and expected a second library read, but no read happened (`expected 1 to be 2`). The latest commit (S1/S2) didn't touch anything in `propr-ui`. The same test passed on the other runs, so this was an intermittent failure, not a regression from that commit. **Likely cause:** in `useExtensionLibrary.ts`, the focus, `visibilitychange` and `BroadcastChannel` listeners were added in a `useEffect`. React can run that effect some time after the screen updates. The notice and the sign-in state change render together, so a slow CI runner could show the notice before the listeners were in place. The test's focus event then reached no listener and nothing refreshed. The same gap could in principle drop a real user's return to the tab. **Fix:** `propr-ui/src/pages/SettingsPage/extensions/useExtensionLibrary.ts` now adds those listeners in a `useLayoutEffect`. That runs in the same update that shows the notice, so once the notice is visible a return to the tab always refreshes. I added a short comment saying why. **Checks:** - The two `AgentExtensions*` test files pass (24 tests). - I ran `AgentExtensionsOAuth.test.tsx` five times in a row and it passed 9 of 9 each time. - The whole `src/pages/SettingsPage` folder passes: 34 files, 297 tests. - ESLint with zero warnings and `tsc --noEmit` are clean. The real confirmation is the next CI run. Nothing changes on screen, so I made no previews. PR: #3625 Comment by: @propr-dev[bot] (ID: 6942138100) Comment by: @github-actions[bot] (ID: 6942138682) Model: Claude Opus 5.5
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationMerge-ready within the supplied scope. The PR addresses MCP result consistency, repository coverage, settings discovery, and CLI usability with focused regression coverage. ✅ Careful redaction — Numeric token metrics survive, while string-bearing token fields and sensitive credential keys remain filtered; tests cover nested and JSON-encoded values. ✅ Reachable repository coverage — Activity scans expand to 100 repositories, while PR inventory exposes repository-window continuation and explicitly reports incomplete coverage. ✅ CLI failure handling — Followed event waits are throttled and abortable; malformed responses and unknown tasks produce explicit failures. Current-head checks report 38 passed, none failed or pending. This was a static review; no commands were run. The issue specifications contain truncation notices, so acceptance details beyond the visible excerpts could not be assessed. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Measure execution-identity query cost
ScoreThe visible implementation has substantial regression coverage, passing current-head checks, and no verified merge blockers. The remaining observation is an optional performance investigation. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
✅ Epic merged: 0.9.2 release fixes: MCP server and CLIEpic PR #3625 has been merged into main. 7 out of 7 PRs merged into main through this epic PR. All planned epic work is now merged. Posted automatically by ProPR |
0.9.2 release fixes: MCP server and CLI
This Epic PR aggregates all changes for the plan: 0.9.2 release fixes: MCP server and CLI
Issues in this Epic
events wait --follow --timeout 0, unknown task shown as Pending, and HTML responses treated as data #3600: CLI: busy loop inevents wait --follow --timeout 0, unknown task shown as Pending, and HTML responses treated as dataAuto-close
When this PR is merged, the following issues will be automatically closed:
Fixes #3595
Fixes #3596
Fixes #3597
Fixes #3598
Fixes #3599
Fixes #3600
Fixes #3601
Created automatically by ProPR