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): fix gated-classification regression + finish (universeId, entryId) keying
[._.]/ Adam Eivyb924af1e1401
diff --git a/client/src/pages/LoraDatasetDetail.jsx b/client/src/pages/LoraDatasetDetail.jsxindex 9e8b2a324e..ef7b215d60 100644--- a/client/src/pages/LoraDatasetDetail.jsx+++ b/client/src/pages/LoraDatasetDetail.jsx@@ -134,9 +134,6 @@ function ReassignDialog({ dataset, onClose, onReassigned }) {const [entryId, setEntryId] = useState(dataset.character.entryId);const [submitting, setSubmitting] = useState(false);- const unchanged = universeId === dataset.character.universeId- && entryId === dataset.character.entryId;-const submit = async () => {setSubmitting(true);try {@@ -174,7 +171,7 @@ function ReassignDialog({ dataset, onClose, onReassigned }) {<buttontype="button"onClick={submit}- disabled={!universeId || !entryId || unchanged || submitting}+ disabled={!universeId || !entryId || submitting}className="px-3 py-2 text-sm rounded bg-port-accent text-white disabled:opacity-50 flex items-center gap-2">{submitting ? <Loader2 className="w-4 h-4 animate-spin" /> : <Replace className="w-4 h-4" />}diff --git a/server/services/imageGen/local.js b/server/services/imageGen/local.jsindex 1535830907..a7974f5636 100644--- a/server/services/imageGen/local.js+++ b/server/services/imageGen/local.js@@ -716,11 +716,15 @@ export async function generateImage({ pythonPath, prompt = '', negativePrompt =// token-entry form).if (!userMessage) {const gatedText = lines.join('\n');- const gatedRepo = extractGatedRepo(gatedText);- const hasGatedError = /GatedRepoError|Access to model .* is restricted/.test(gatedText);- if (gatedRepo || hasGatedError) {+ // Classify as gated ONLY on a gated-specific signal — extractGatedRepo+ // matches any huggingface.co/<owner>/<repo> URL, so a non-gated failure+ // (404, network error) that merely prints a HF URL must NOT be turned+ // into a misleading license-request flow. Extract the repo for the link+ // only after the gated signal is confirmed.+ const hasGatedError = /GatedRepoError|Access to model .* is restricted|Cannot access gated repo/i.test(gatedText);+ if (hasGatedError) {userKind = 'gated_repo';- userRepo = gatedRepo;+ userRepo = extractGatedRepo(gatedText);const repoText = userRepo || 'the model';userMessage = `Access to ${repoText} is gated. Accept the license at https://huggingface.co/${userRepo || '<repo>'} and paste your HuggingFace token into Image Gen settings, then retry.`;}diff --git a/server/services/loraTraining/index.js b/server/services/loraTraining/index.jsindex 8eb58410ed..42d206fdd0 100644--- a/server/services/loraTraining/index.js+++ b/server/services/loraTraining/index.js@@ -170,9 +170,10 @@ export async function startTrainingRun({ datasetId, baseModelId, name = null, pa// different character between validateDatasetReady above and this stamp,// this run no longer owns it. Don't stamp 'training' — flipDatasetAfterRun// skips character-mismatched runs, so a stamp here would strand the- // reassigned dataset in 'training' forever. (entryId is a globally-unique- // UUID, so it alone identifies the character.)- if (current.character?.entryId !== run.character.entryId) return null;+ // reassigned dataset in 'training' forever. Match the full+ // (universeId, entryId) key the dataset store uses elsewhere.+ if (current.character?.entryId !== run.character.entryId+ || current.character?.universeId !== run.character.universeId) return null;return {...current,status: 'training',