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
address review (codex): warn on the picker when a cursor effort has no model to ride, and document the baked-model case (#4555)
[._.]/ Adam Eivydb1e7e786cc8
diff --git a/client/src/components/cos/ReviewerPicker.jsx b/client/src/components/cos/ReviewerPicker.jsxindex 1be777e834..ee8da7bcb5 100644--- a/client/src/components/cos/ReviewerPicker.jsx+++ b/client/src/components/cos/ReviewerPicker.jsx@@ -276,13 +276,20 @@ export default function ReviewerPicker({// something is stored, so a pin made before the model changed (or on another// machine) stays visible and clearable rather than vanishing behind the dash.if (!levels.length && !stored) return renderNoPinCell(`${subject}'s pinned model offers no reasoning-effort tiers`);+ // Cursor's level is a PARAMETER OF ITS MODEL ID (`gpt-5[effort=max]`) — its+ // CLI has no `--effort` flag — so a level with no Model pin has nothing to+ // attach to and is dropped when the invocation is built. Say so here rather+ // than let the row display a tier the review will not run at.+ const cursorNeedsModel = normalizeReviewerValue(token) === 'cursor' && !models.get(token);return renderPinSelect({selectId: `${id}-effort-${token}`,value: stored,options: levels,onChange: (level) => setEffort(token, level),ariaLabel: `Reasoning effort for ${subject}`,- title: stored+ title: cursorNeedsModel+ ? `${subject} carries its reasoning effort inside the model id, so pin a Model too — a tier with no model is not passed to the CLI.`+ : stored? `${subject} reviews at ${stored} reasoning effort. Choose "default" to let it decide.`: `${subject} reasons at its own default. Pick a tier to make it think harder (slower, pricier) or lighter.`,staleSuffix: '(unsupported)',diff --git a/client/src/components/cos/ReviewerPicker.test.jsx b/client/src/components/cos/ReviewerPicker.test.jsxindex ac5dfa7744..16eada12bf 100644--- a/client/src/components/cos/ReviewerPicker.test.jsx+++ b/client/src/components/cos/ReviewerPicker.test.jsx@@ -436,6 +436,17 @@ describe('ReviewerPicker', () => {expect(screen.getByRole('option', { name: 'xhigh' })).toBeInTheDocument();});+ it('tells a cursor row its tier needs a Model pin to reach the CLI', () => {+ // cursor-agent has no --effort flag: the level rides inside the model id,+ // so a tier with no model is dropped when the invocation is built.+ const { rerender } = render(<ReviewerPicker reviewers={['cursor']} reviewerEfforts={{ cursor: 'max' }} onChange={() => {}} />);+ expect(screen.getByLabelText('Reasoning effort for Cursor Agent'))+ .toHaveAttribute('title', expect.stringContaining('pin a Model too'));+ rerender(<ReviewerPicker reviewers={['cursor']} reviewerEfforts={{ cursor: 'max' }} reviewerModels={{ cursor: 'gpt-5' }} onChange={() => {}} />);+ expect(screen.getByLabelText('Reasoning effort for Cursor Agent'))+ .not.toHaveAttribute('title', expect.stringContaining('pin a Model too'));+ });+it('renders no Effort control for a reviewer with no effort knob', () => {render(<ReviewerPicker reviewers={['copilot', 'grok']} usernames={['flaky-bot']} onChange={() => {}} />);expect(screen.queryByLabelText('Reasoning effort for Copilot')).not.toBeInTheDocument();diff --git a/server/lib/cosValidation.js b/server/lib/cosValidation.jsindex 5cc9e31fb6..5ed40c3b9a 100644--- a/server/lib/cosValidation.js+++ b/server/lib/cosValidation.js@@ -734,7 +734,14 @@ export function reviewerEffortArgs(reviewer, effort) {* (`gpt-5` + `max` → `gpt-5[effort=max]`), matching slashdo's own fold, because* `cursor-agent` has no `--effort` flag. A cursor effort with no model pinned* returns `null` — there is nothing to attach the variant to, and emitting a- * flag cursor rejects is worse than letting it use its default tier.+ * flag cursor rejects is worse than letting it use its default tier. (The picker+ * says so on the row, so the dropped tier isn't silent to the user.)+ *+ * The extend-an-existing-bracket and leave-an-`effort=`-alone arms of the fold+ * can't be reached by a STORED reviewer pin today — `normalizeReviewerModel`+ * rejects `[`/`]`/`,` because they're structural in the emitted `--review-with`+ * token. They serve the paths that don't go through that gate: a provider's own+ * `defaultModel` and hand-written task metadata.** @param {string} reviewer - reviewer slug* @param {string|null|undefined} model - the pinned model iddiff --git a/server/lib/cursor.js b/server/lib/cursor.jsindex b3cab39906..ebcad7a121 100644--- a/server/lib/cursor.js+++ b/server/lib/cursor.js@@ -114,6 +114,11 @@ function ensureCursorPosture(out) {* - `--model <id>` — gated on `model` being set AND no user-baked model flag,* carrying `effort` as a folded model variant when pinned* (cursor has no `--effort` flag — see the file header).+ * A user-baked `--model` therefore also owns the effort:+ * unlike claude/codex, where the two are separate flags and+ * a baked model still gets `--effort` appended, cursor has+ * nowhere else to put the level, and rewriting the argv the+ * user pinned by hand would be worse than honoring it.* The prompt itself is NOT added here — it rides on stdin at spawn time.* @param {string[]} baseArgs - user/legacy args (already model-flag-sanitized)* @param {string|null|undefined} model - defaultModel to pin, or null to omit