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: allow null intervalMs, treat empty strings as unanswered in numeric drills
Adam Eivy399d55f621eb
diff --git a/client/src/hooks/usePostSession.js b/client/src/hooks/usePostSession.jsindex 0f57a46b2e..3249929935 100644--- a/client/src/hooks/usePostSession.js+++ b/client/src/hooks/usePostSession.js@@ -142,13 +142,13 @@ export function usePostSession() {answered = value;correct = value !== null && String(value).toLowerCase().trim() === String(q.expected).toLowerCase().trim();} else if (currentDrill.type === 'estimation') {- const num = value === null ? null : Number(value);- answered = (num !== null && isNaN(num)) ? null : num;+ const raw = (value === null || String(value).trim() === '') ? null : Number(value);+ answered = (raw !== null && isNaN(raw)) ? null : raw;const tolerance = (currentDrill.config?.tolerancePct || 10) / 100;correct = answered !== null && Math.abs(answered - q.expected) <= Math.abs(q.expected * tolerance);} else {- const num = value === null ? null : Number(value);- answered = (num !== null && isNaN(num)) ? null : num;+ const raw = (value === null || String(value).trim() === '') ? null : Number(value);+ answered = (raw !== null && isNaN(raw)) ? null : raw;correct = answered === q.expected;}diff --git a/server/routes/cos.js b/server/routes/cos.jsindex e7e7dbbbac..e9dbe82c4a 100644--- a/server/routes/cos.js+++ b/server/routes/cos.js@@ -76,8 +76,8 @@ function pickScheduleSettings(body) {if (settings.enabled !== undefined && typeof settings.enabled !== 'boolean') {throw new ServerError('enabled must be a boolean', { status: 400, code: 'VALIDATION_ERROR' });}- if (settings.intervalMs !== undefined && (typeof settings.intervalMs !== 'number' || settings.intervalMs < 0)) {- throw new ServerError('intervalMs must be a non-negative number', { status: 400, code: 'VALIDATION_ERROR' });+ if (settings.intervalMs !== undefined && settings.intervalMs !== null && (typeof settings.intervalMs !== 'number' || settings.intervalMs < 0)) {+ throw new ServerError('intervalMs must be a non-negative number or null', { status: 400, code: 'VALIDATION_ERROR' });}if (settings.taskMetadata !== undefined && settings.taskMetadata !== null) {if (typeof settings.taskMetadata !== 'object' || Array.isArray(settings.taskMetadata)) {