Repository navigation
[2457 by Claude Opus 5] Add a per-repository "Notifications" setting that filters notification generation (Repositories → Settings) - #2458
Conversation
…eport once it finishes.
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 4d248a3 Summary of ChangesI fixed the CI failure. The fast unit suite ( Cause: One test failed in Fix: I added I didn't make any visual changes, so there are no previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…unit`, the step that failed) now passes locally: 366 passed, 0 failed. I fixed the CI failure. The fast unit suite (`npm run test:unit`, the step that failed) now passes locally: 366 passed, 0 failed. **Cause:** One test failed in `packages/api/test/instanceAuthorization.test.ts`: "returns operational agent and repository fields without installation internals". This PR made the instance catalog route (`instanceCatalogRoutes.ts`) return `notificationsEnabled` for each repository. The test still expected the old response without that field, so its exact-match check failed. **Fix:** I added `notificationsEnabled: true` to the repository the test expects in the catalog response. The field is intentional, since it's part of the per-repository Notifications feature, so I updated the test rather than the route. I didn't make any visual changes, so there are no previews. PR: #2458 Comment by: @propr-dev[bot] (ID: 5773812368) Model: claude-opus-5
|
✅ Applied the requested follow-up changes in commit 0ebb193 Summary of ChangesThe CI failure is fixed, and all the checks in the build workflow now pass locally. What failed: CI run 35707554059 ran on commit What I fixed: Because the run stopped at the unit tests, none of the later checks had run. When I ran them, API lint ( Checked locally, all passing:
The only part of the tunnel step I didn't run is its short UI test command ( This change doesn't affect anything visible, so there are no previews. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
…rkflow now pass locally.
The CI failure is fixed, and all the checks in the build workflow now pass locally.
**What failed:** CI run 35707554059 ran on commit `1edb6b7` and broke at "Run Fast Unit Tests". The cause was one test in `instanceAuthorization.test.ts` ("returns operational agent and repository fields without installation internals"). It still expected the instance catalog without the new `notificationsEnabled` field. The branch's latest commit (`4d248a3`) already fixed that, and `npm run test:unit` now passes (366/366).
**What I fixed:** Because the run stopped at the unit tests, none of the later checks had run. When I ran them, API lint (`eslint --max-warnings 0`) failed. In the new tests in `packages/api/test/configRepoRoutes.test.ts`, two `_repos` parameters were never used; they were only there to type the mock. I now type the mock with `mock.fn<(repos: RepoToMonitor[]) => Promise<boolean>>(...)`, the same way the file already does at line 180. The test file still passes (10/10) and API lint is clean.
**Checked locally**, all passing:
- `test:mcp` and `test:mcp:browser`
- `test:unit`
- The hosted tunnel regression tests (337 passed)
- `test:notifications`
- `cli:pack`
- Lint and build for the root, API and CLI, plus lint on the changed `@propr/core` file
- UI and client typecheck, lint, build and tests
- The UI browser smoke test (57 passed)
The only part of the tunnel step I didn't run is its short UI test command (`runtimeConfig.test.ts`, `compatibility.test.ts`). This PR doesn't touch those files.
This change doesn't affect anything visible, so there are no previews.
PR: #2458
Comment by: @github-actions[bot] (ID: 5773813116)
Model: claude-opus-5
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot], @github-actions[bot] Analysis SummaryNo new code changes were needed: the branch's latest commit ( Cause: The failed run tested commit Fix: In Checked locally on the current branch, all passing:
I didn't rerun the earlier test steps (MCP, unit, tunnel, notifications, CLI packaging, browser smoke). They passed in the failing CI run, and the only change since then is the lint fix. CI should pass once it runs on This follow-up changes nothing visible, so there are no previews. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR adds a repository-wide notification toggle across the UI, API, MCP, and CLI, with filtering enforced at notification projection time. It needs a minor correction before merge because adding another branch through the CLI can silently re-enable notifications for a muted repository. ✅ Comprehensive projection coverage — Draft, task, review, pull-request, indexing, and stalled-activity generation are gated, while system-health notifications remain unaffected. ✅ Backward-compatible configuration — Legacy omissions default to enabled, and repository saves preserve existing opt-outs when older clients omit the field. ✅ Strong verification — Focused server, hook, CLI, and Playwright tests cover defaults, branch sharing, authorization, cache refresh, and fail-open behavior; all current checks pass. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 CLI branch addition re-enables notifications
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe core implementation is well-tested and otherwise consistent, but the CLI branch-add path can silently defeat the new opt-out. The correction is localized, though required before merge. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
/ultrafix |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ Applied the requested follow-up changes in commit 0806cce
Summary of ChangesI fixed F1. What changed
Tests added
Caveat on the regression test: it runs at the server level, not through the CLI. This is a CLI and API change with nothing visible in the UI, so there are no preview images. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…notificationsEnabled: true` when no flag was given, so the server keeps the repository's stored setting. The affected CLI and API tests pass (31/31), and the CLI type-check is clean. I fixed F1. `propr repo add` and `addRepo` no longer send `notificationsEnabled: true` when no flag was given, so the server keeps the repository's stored setting. The affected CLI and API tests pass (31/31), and the CLI type-check is clean. **What changed** - **`packages/cli/src/commands/repoCommands.ts`:** The `--no-notifications` option always shows up as `true` when the flag is left out, so the command now checks whether the flag was actually typed. If it wasn't, no value is sent. The "Notifications:" line printed after adding now shows what the server saved, not what the CLI assumed. - **`packages/cli/src/api/repos.ts`:** `addRepo` only includes `notificationsEnabled` when a caller sets it. New repositories still end up enabled, because the server's existing rule turns a missing value into the stored setting, or enabled if there is none. I didn't need to change the server. **Tests added** - **CLI command test:** adding a repository with `--branch` and no notification flag while another repository is muted. The new entry has no `notificationsEnabled` field, and the muted entry stays `false`. I also updated the existing test that expected `true` when the flag is omitted. - **`addRepo` tests:** the field is left out when not set, and sent when set explicitly. - **Server route test (the regression test the finding asked for):** a new branch entry without the field is added to a repository muted as `false`, with the existing entries sent back as they came from GET. The new branch saves as `false` and the other repository stays `true`. **Caveat on the regression test:** it runs at the server level, not through the CLI. `addRepo` rejects any name that's already monitored, whatever the branch, so the CLI can't add a branch to an existing repository, muted or not. That check was already there and I left it alone. The CLI tests use a different repository, while the server test covers the actual branch-addition case. This is a CLI and API change with nothing visible in the UI, so there are no preview images. PR: #2458 Comment by: @integry (ID: 5774371646) Model: claude-opus-5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR is merge-ready. It implements the repository-wide notification toggle consistently across persistence, UI, CLI, MCP, catalogs, and the notification projection boundary. ✅ Correct compatibility defaults — Legacy configurations and older clients safely default missing values to enabled while omitted fields preserve an existing opt-out. ✅ Repository-wide consistency — Configuration writes and UI actions propagate changes across every branch entry using case-insensitive repository keys. ✅ Strong end-to-end coverage — Tests cover all repository-scoped notification categories, stalled activity, system-health exclusions, cache refresh, read failures, branch sharing, read-only UI behavior, and CLI operations. All current checks pass. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Preserve stale cache on errors
ScoreThe implementation comprehensively satisfies the objective, preserves backward compatibility, and has unusually thorough cross-layer testing with a fully passing current check suite. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |
AI Implementation Summary
Closes #2457
Branch:
2457/claude-opus-5-add-a-per-repository-noti-20260922-0837-1wbCommits: ✅ Changes committed (1edb6b7)
AI Processing Completed
Execution Details:
Summary:
The full server test suite is still running in the background; I'll report once it finishes.
Detailed Logs:
a8808bb0-600a-47e5-aa48-0f85aa805738Log files stored at:
/tmp/claude-logs/issue-2457-2026-09-22T08-56-23-952Z-conversation.json/tmp/claude-logs/issue-2457-2026-09-22T08-56-23-952Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2457.
💡 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
Repository notifications toggle
Repositories → Settings for a multi-branch repository after turning the new Notifications toggle off; the save footer reports Saved.
Original unavailable: managed storage is unavailable or the upload has expired.