Repository navigation
Description
Context
The request: "On instance level it should also be possible to set only comments made by assigned task users to be processed as followups (changeable from settings)."
Today, who may start follow-up work is decided by filterCommentByAuthor (the GITHUB_USER_WHITELIST / blacklist / bot rules) and checkCommentTrigger (processing label or trigger keyword). Both are instance-wide: on a team, any whitelisted person's comment on any ProPR pull request starts work. The new setting adds a per-task dimension - only people assigned to that task may start follow-up work on it.
This task adds the setting end to end as configuration: the persisted value, the validated write path, the settings projection, the Web UI control, the CLI key and the MCP field. It deliberately does not enforce it; enforcement is the next task, so the two stay separately reviewable and the setting can be shipped off by default before the intake path changes.
The setting is followup_requires_assignment, a boolean defaulting to false. False is the correct default because turning it on changes who can start work, and a silent change to that on upgrade would strand single-developer instances whose tasks are never assigned.
Requirements
- Add
followup_requires_assignmentas a specialized setting: a seeding migration withfalse, load/save accessors in core,SPECIALIZED_SETTING_NAMES,extractSettingSavesvalidation, and thegetSettingsprojection. - Validate strictly as a boolean, rejecting strings, consistent with
auto_resolve_merge_conflictsanddashboard_summary_enabled. - Expose it in the Web UI Settings page, in the Automation category beside the merge-conflict default, with copy that states exactly what it changes and that it has no effect on a task nobody is assigned to.
- Add it to the CLI settings keys (
VALID_SETTING_KEYS,parseSettingValue, the description map) sopropr setting update followup_requires_assignment trueworks. - Add it to the MCP
settingsShapeintoolsManagement.tswith a description. - Tests covering the validation, the projection default, the save round-trip and the CLI parser.
Implementation Specification
Files added
packages/core/src/db/migrations/20261012020000_seed_followup_requires_assignment.jspackages/core/src/config/configManagerAssignment.ts
Files modified
packages/core/src/config/configManager.ts- re-export the accessors.packages/api/routes/configHelpers.ts- add toSPECIALIZED_SETTING_NAMES.packages/api/routes/configSettings.ts- add toSettingFields,SettingSaveNameandextractSettingSaves.packages/api/routes/configRoutesSettings.ts- destructure and forward the field.packages/api/routes/configRoutes.ts- include it ingetSettings.packages/api/mcp/toolsManagement.ts- add tosettingsShape.packages/cli/src/api/settings.ts- types, keys and parser.packages/cli/src/commands/settingCommands.ts- description.propr-ui/src/api/proprTypes.ts,propr-ui/src/pages/SettingsPage/types.ts,parseLoadedData.ts,useSettingsState.ts,GeneralSettingsSection.tsx,index.tsx.
Step-by-step
- Seed the config key with
falseusing theINSERT ... ON CONFLICT IGNOREpattern from20260327000000_seed_auto_resolve_merge_conflicts.js, so existing instances are explicitly off rather than relying on an absent key. - Add
loadFollowupRequiresAssignment/saveFollowupRequiresAssignmentin a small core module, reusingparseBooleanSettingfrommergeConflictSettingsResolution.tsso a double-JSON-encoded value is read the same way as the merge-conflict setting. - Thread the setting through the API's specialized-settings machinery, following
auto_resolve_merge_conflictsat every step. - Add the Web UI control to the Processing group of
GeneralSettingsSection, and register the keyword in the section'ssearchTextinSettingsPage/index.tsx. - Add the CLI and MCP surfaces.
- Add tests.
Acceptance Criteria
npm run typecheck,npm run lintand the API tests pass.- A fresh and an upgraded database both report
followup_requires_assignment: false. POST /api/config/settingswithtruepersists; with"true",1ornullreturns 400 naming the field.GET /api/config/settingsalways includes the field as a boolean.- The setting round-trips through the Settings page, is saved on change like the other Automation toggles, and its copy states that it has no effect on an unassigned task.
- The setting is findable by searching Settings for "assignment", "assignee" or "follow-up".
propr setting getlists it with its description;propr setting update followup_requires_assignment truesucceeds and... 1is rejected with a clear message.- The MCP
update_execution_settingstool accepts it andget_execution_settingsreturns it. - No follow-up behaviour changes in this task: nothing reads the setting yet.
Created by ProPR AI Planner
Activity
propr-dev commentedon Oct 8, 2026
Suggested Implementation:
Implementation Approach
This is a specialized setting, not a general one. ProPR has two storage shapes: general settings live inside the single
settingsJSON blob, and specialized settings get their ownsystem_configskey, listed inSPECIALIZED_SETTING_NAMESand written as individual rows inside the settings transaction. Specialized is correct here for the same reasonauto_resolve_merge_conflictsis: it is read on a hot non-HTTP path (comment intake, in the daemon and the worker) where loading and parsing the whole settings blob to answer one boolean is wasteful, and where an unrelated malformed key in the blob must not be able to break the read.The default is
false, seeded explicitly rather than left absent. Two reasons. First, turning this on changes who can start work, and inheriting it silently on upgrade would break every single-developer instance, where tasks are never assigned and so every comment would stop being actionable. Second, an explicitly seeded row makes the value visible insystem_configs, which matters when diagnosing "why did my comment do nothing".Validation is strict boolean, matching
auto_resolve_merge_conflicts. Accepting"true"was considered for CLI convenience and rejected: the CLI already hasparseSettingValueto convert its strings, so loosening the API would only create a second, weaker contract for the same field.The UI copy carries the one thing an operator cannot infer: that the setting has no effect on a task nobody is assigned to. Without that sentence, the obvious reading is "nothing works unless assigned", which would make the setting look far more dangerous than it is and discourage its use.
Enforcement is deliberately absent here. Shipping the setting first means it can be merged, defaulted off, and reviewed on its own; the intake change that reads it is a separate, focused diff.
File:
packages/core/src/db/migrations/20261012020000_seed_followup_requires_assignment.js(new file)Why this file: seeds the key explicitly so existing instances are visibly off rather than relying on an absent row. It follows
20260327000000_seed_auto_resolve_merge_conflicts.jsexactly, including the idempotent insert, so rerunning migrations is harmless.File:
packages/core/src/config/configManagerAssignment.ts(new file)Why this file: comment intake runs in the daemon and the worker, outside any HTTP request, so it needs a plain core accessor rather than reaching through an API route. Reusing
parseBooleanSettingmeans a double-JSON-encoded value (which the config store has produced historically) is read identically to the merge-conflict setting instead of being silently treated as truthy.File:
packages/core/src/config/configManager.tsWhy this file:
configManageris the facade every consumer imports, andpackages/core/src/index.tsre-exports it wholesale. Adding the re-export here is what makes the accessor reachable from the daemon, the worker and the API at once.File:
packages/api/routes/configHelpers.tsWhy this file:
SPECIALIZED_SETTING_NAMESis what makes a key its ownsystem_configsrow instead of a field inside thesettingsblob. Omitting it here would leave the value written into the blob, where the core accessor would never find it.File:
packages/api/routes/configSettings.tsWhy this file: this is the one validator for specialized settings, and
stripSpecializedSettingsrelies on the name being known here. A key inSPECIALIZED_SETTING_NAMESbut not inextractSettingSaveswould be stripped from the blob and never written anywhere.@@ in extractSettingSaves, beside the auto_resolve_merge_conflicts block if (fields.auto_resolve_merge_conflicts !== undefined) { if (typeof fields.auto_resolve_merge_conflicts !== 'boolean') return { error: 'auto_resolve_merge_conflicts must be a boolean', saves: [], normalized }; normalized.auto_resolve_merge_conflicts = fields.auto_resolve_merge_conflicts; saves.push({ name: 'auto_resolve_merge_conflicts' }); } + if (fields.followup_requires_assignment !== undefined) { + // Strict boolean, like the other switches here. The CLI already converts + // its strings in parseSettingValue, so loosening this would only create a + // second, weaker contract for the same field. + if (typeof fields.followup_requires_assignment !== 'boolean') { + return { error: 'followup_requires_assignment must be a boolean', saves: [], normalized }; + } + normalized.followup_requires_assignment = fields.followup_requires_assignment; + saves.push({ name: 'followup_requires_assignment' }); + } +File:
packages/api/routes/configRoutesSettings.tsWhy this file:
saveNormalizedSettingsWithRollbackdestructures every specialized field out of the incoming object before the rest becomes the general blob. A field not destructured here would be written into the blob as well as its own key.File:
packages/api/routes/configRoutes.tsWhy this file:
getSettingsis the projection the Web UI and the CLI read. A field absent here would make the UI toggle render fromundefinedand look permanently off even once saved.File:
packages/api/mcp/toolsManagement.tsWhy this file:
settingsShapeis both the validation schema forupdate_execution_settingsand the field allowlistget_execution_settingsprojects through. A field missing here is invisible and unwritable from MCP.File:
packages/cli/src/api/settings.tsWhy this file: the CLI validates before sending, so an unknown key is rejected locally with a useful message instead of producing a server 400.
parseSettingValueis also where the CLI's string input becomes the strict boolean the API requires.File:
packages/cli/src/commands/settingCommands.tsWhy this file: each key carries a human description used by
propr setting getand the detail view, so an undescribed key would list as a bare name.File:
propr-ui/src/pages/SettingsPage/GeneralSettingsSection.tsxWhy this file: the Processing group already holds the merge-conflict instance default, which is the closest existing neighbour: both are instance-wide switches that change what automation does on its own. The copy is where the non-obvious part of the semantics has to be stated.
File:
propr-ui/src/pages/SettingsPage/index.tsxWhy this file: the section's
searchTextis the only way the Settings search finds a control, andhandleGeneralSettingChangehas an explicit list of boolean field names, so a new toggle must be added to both or it will save as a string.Files:
propr-ui/src/pages/SettingsPage/types.ts,parseLoadedData.ts,useSettingsState.ts,propr-ui/src/api/proprTypes.tsWhy these files: the Settings page's state has three separate declarations of a setting - the type, the loader's default and the save payload - and missing any one produces a control that renders but never persists.
Tests
Why: the failure mode for a settings change is silent - the toggle appears to work and the value never reaches the key the worker reads. The tests assert the full round-trip and the strict validation, which is what catches a missing entry in any one of the five lists this setting has to appear in.
propr-dev commentedon Oct 9, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-52895/claude-opus-5-5-add-the-instance-setting--20261009-0817-5wm2888-epic-task-assignment-1m4issue-2895-20261009-0817-claude-opus-5-5-5wm🔍 Track Task Execution