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): filter reassigned-dataset runs by character on the server, before the row limit
[._.]/ Adam Eivyfc068f2e9b12
diff --git a/client/src/components/loraTraining/TrainingPanel.jsx b/client/src/components/loraTraining/TrainingPanel.jsxindex 4e73e9b264..92c874ecb8 100644--- a/client/src/components/loraTraining/TrainingPanel.jsx+++ b/client/src/components/loraTraining/TrainingPanel.jsx@@ -55,9 +55,15 @@ export default function TrainingPanel({ dataset, readiness, triggerSaving, onRunconst charEntryId = dataset.character?.entryId;const charUniverseId = dataset.character?.universeId;const refreshRuns = useCallback(() => {- listLoraTrainingRuns({ datasetId: dataset.id, limit: 5 }).then((runs) => {+ // Filter by the current character on the SERVER (characterId = the+ // globally-unique entryId), so the row limit applies to this character's+ // runs — not to other-character runs left over on the same dataset id after+ // a reassignment (which a client-side filter-after-limit would drop). The+ // client-side guard below is belt-and-suspenders for any run missing its+ // character snapshot.+ listLoraTrainingRuns({ datasetId: dataset.id, characterId: charEntryId, limit: 5 }).then((runs) => {const own = (Array.isArray(runs) ? runs : []).filter(- (r) => r.character?.entryId === charEntryId && r.character?.universeId === charUniverseId,+ (r) => !r.character || r.character.entryId === charEntryId,);setActiveRun(own.find(isActive) || null);setLastRun(own.find((r) => !isActive(r)) || null);