Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(cos): disable reviewLoop when openPR is enabled
Adam Eivy375f591d85c6
diff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsxindex 939d10a723..8092296fa2 100644--- a/client/src/components/cos/TaskAddForm.jsx+++ b/client/src/components/cos/TaskAddForm.jsx@@ -399,7 +399,10 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = fatype="checkbox"checked={openPR}disabled={!useWorktree}- onChange={(e) => setOpenPR(e.target.checked)}+ onChange={(e) => {+ setOpenPR(e.target.checked);+ if (e.target.checked) setReviewLoop(false);+ }}className="w-4 h-4 rounded border-port-border bg-port-bg text-port-accent focus:ring-port-accent focus:ring-offset-0 disabled:opacity-40"/><span className={`flex items-center gap-1.5 text-sm ${useWorktree ? 'text-gray-400' : 'text-gray-600'}`} title="Open a pull request to the default branch. If unchecked with worktree enabled, auto-merges on completion.">@@ -423,11 +426,12 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = fa<inputtype="checkbox"checked={reviewLoop}+ disabled={openPR}onChange={(e) => setReviewLoop(e.target.checked)}- className="w-4 h-4 rounded border-port-border bg-port-bg text-port-accent focus:ring-port-accent focus:ring-offset-0"+ className="w-4 h-4 rounded border-port-border bg-port-bg text-port-accent focus:ring-port-accent focus:ring-offset-0 disabled:opacity-40"/>- <span className="flex items-center gap-1.5 text-sm text-gray-400">- <RefreshCw size={14} className="text-amber-400" />+ <span className={`flex items-center gap-1.5 text-sm ${openPR ? 'text-gray-600' : 'text-gray-400'}`} title={openPR ? 'Review Loop is incompatible with Open PR — the PR is created after the agent exits, so there is no PR to iterate on during the run.' : 'After the agent opens a PR during its run, keep iterating on review feedback until checks pass.'}>+ <RefreshCw size={14} className={openPR ? 'text-gray-600' : 'text-amber-400'} />Review Loop</span></label>diff --git a/client/src/components/cos/constants.js b/client/src/components/cos/constants.jsindex c90be8fb0e..c170bfd10b 100644--- a/client/src/components/cos/constants.js+++ b/client/src/components/cos/constants.js@@ -54,7 +54,7 @@ export const AGENT_OPTIONS = [{ field: 'useWorktree', label: 'Worktree', shortLabel: 'WT', description: 'Work in an isolated git worktree on a feature branch. If unchecked, commits directly to the default branch.' },{ field: 'openPR', label: 'Open PR', shortLabel: 'PR', description: 'Open a pull request to the default branch (implies worktree). If unchecked with worktree enabled, auto-merges to the default branch on completion.' },{ field: 'simplify', label: 'Run /simplify', shortLabel: '/s', description: 'Review code for reuse and quality before committing' },- { field: 'reviewLoop', label: 'Review Loop', shortLabel: 'RL', description: 'After opening a PR, run review feedback loop until checks pass and PR is approved' }+ { field: 'reviewLoop', label: 'Review Loop', shortLabel: 'RL', description: 'After the agent opens a PR during its run, keep iterating on review feedback until checks pass. Only applies when Open PR is not enabled (manual PR creation by agent).' }];// Compute new taskMetadata after toggling a field in a per-app override.