Skip to content

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

address review (local gate): stop clobbering the cost-axis log default and reconcile a stale retry effort level

[._.]/ Adam Eivy2a7b3108bd99
diff --git a/client/src/components/media/MediaJobsQueue.jsx b/client/src/components/media/MediaJobsQueue.jsx
index 5f7f78905c..c0167024aa 100644
--- a/client/src/components/media/MediaJobsQueue.jsx
+++ b/client/src/components/media/MediaJobsQueue.jsx
@@ -672,6 +672,16 @@ function EditRetryForm({ job, onSubmit, onCancel }) {
// failing the retry. An empty override means the shipped default model, whose
// ladder is the unrestricted one.
const codexEffortLevels = effortLevelsForProvider({ id: 'codex', command: 'codex' }, model.trim());
+ // The ladder is MODEL-gated (comment above), but `effort` only changes on a
+ // direct <select> interaction — retyping `model` to a narrower ladder (e.g.
+ // gpt-6, which drops `minimal`) left a stale out-of-ladder level selected,
+ // so submit still sent it and the server 400ed. Reconcile on every ladder
+ // change, not just on model's own onChange, since model is free-typed text.
+ useEffect(() => {
+ if (effort !== EFFORT_DEFAULT_OPTION && !codexEffortLevels.includes(effort)) {
+ setEffort(EFFORT_DEFAULT_OPTION);
+ }
+ }, [codexEffortLevels, effort]);
const submit = (e) => {
e.preventDefault();
diff --git a/client/src/components/models/ModelComparison.jsx b/client/src/components/models/ModelComparison.jsx
index 54b5170884..eedcd44f40 100644
--- a/client/src/components/models/ModelComparison.jsx
+++ b/client/src/components/models/ModelComparison.jsx
@@ -354,7 +354,10 @@ export default function ModelComparison() {
const showLabels = params.get('labels') === '1' || !params.has('labels');
const xAxis = Object.hasOwn(AXES, params.get('xAxis')) ? params.get('xAxis') : 'cost';
const yAxis = Object.hasOwn(AXES, params.get('yAxis')) ? params.get('yAxis') : 'quality';
- const changeAxis = (key, value) => changeParams({ [key]: value, xMin: null, xMax: null, yMin: null, yMax: null, scale: 'linear' });
+ // Clear (not force-linear) scale on an axis change so the cost-axis log
+ // default below still applies — forcing 'linear' here permanently
+ // overrode that default the moment a user picked "Cost per task".
+ const changeAxis = (key, value) => changeParams({ [key]: value, xMin: null, xMax: null, yMin: null, yMax: null, scale: null });
// Cost spans four orders of magnitude across the catalog, so a linear axis
// stacks every affordable model on the y-axis. Log is the readable default.
const scale = params.get('scale') === 'log' || (!params.has('scale') && xAxis === 'cost') ? 'log' : 'linear';