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): sequence confirm-fill's drill generation before the background fill
[._.]/ Adam Eivy71798a4e2d39
diff --git a/client/src/components/meatspace/post/WordplayTrainer.jsx b/client/src/components/meatspace/post/WordplayTrainer.jsxindex a08b8cf0eb..96bff9f0a4 100644--- a/client/src/components/meatspace/post/WordplayTrainer.jsx+++ b/client/src/components/meatspace/post/WordplayTrainer.jsx@@ -165,7 +165,7 @@ export default function WordplayTrainer({ onBack, config, onConfigUpdate }) {runMode(closePendingMode(), providerId, model);}- function handleConfirmFill() {+ async function handleConfirmFill() {const modeId = closePendingMode();const chosenProviderId = fillProviderId || null;const chosenModel = fillModel || null;@@ -178,10 +178,16 @@ export default function WordplayTrainer({ onBack, config, onConfigUpdate }) {.then(updated => onConfigUpdate?.(updated)).catch(() => {});}+ // Generate the user's immediate drill FIRST, then kick off the bulk+ // background fill. Starting both at once would fire two concurrent+ // generateLlmDrill calls against the same provider (the cold cache+ // guarantees the drill request also misses and generates on demand) —+ // exactly the concurrent-LLM-calls problem this consent flow exists to+ // prevent, and especially bad for a single-session TUI provider.+ await runMode(modeId, chosenProviderId, chosenModel);const providerLabel = providers.find(p => p.id === chosenProviderId)?.name || 'the default provider';toast(`Filling ${modeId.replace(/-/g, ' ')} cache in the background using ${providerLabel}`);fillPostDrillCache([modeId], chosenProviderId, chosenModel).catch(() => {});- runMode(modeId, chosenProviderId, chosenModel);}function handleBackToModes() {