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
fix: Quick Enrich no longer repeats already-answered questions
Adam Eivy261d9cfa5def
diff --git a/.changelog/v0.11.x.md b/.changelog/v0.11.x.mdindex 61744e7672..923553b28c 100644--- a/.changelog/v0.11.x.md+++ b/.changelog/v0.11.x.md@@ -103,6 +103,10 @@ This release focuses on security improvements, bug fixes for the AI runner syste- **Root cause**: PortOS mounted the toolkit's parameterized routes before its own `/status` route, so Express matched the toolkit's `/:id` first- **Fix**: Reordered route registration so PortOS-specific routes (including `/status`) are defined before mounting the toolkit's catch-all routes+### Quick Enrich Repeats Already-Answered Questions+- **AI fallback no longer recycles answered questions**: When all predefined and scale questions for a category are exhausted and AI question generation fails, the system now serves a generic follow-up ("What else should your digital twin know about your [category]?") instead of repeating the first predefined question+- **Deduplicated near-identical questions**: `values` and `non_negotiables` categories previously had nearly identical first questions; `values` now asks a distinct question about top three guiding values+### Quick Enrich Skip Returns Same Question- **Skip now advances to a different question**: Clicking "Skip" on Quick Enrich prompts (both in the overview banner and the full EnrichTab) previously returned the exact same question, because question selection was deterministic based on `questionsAnswered` count which skip didn't increment- **Client tracks skipped indices**: Both NextActionBanner and EnrichTab now maintain a `skippedIndices` list for the current session, passing it to the server so it can serve the next non-skipped questiondiff --git a/server/services/digital-twin.js b/server/services/digital-twin.jsindex 4513ace9e9..c4847581a7 100644--- a/server/services/digital-twin.js+++ b/server/services/digital-twin.js@@ -139,7 +139,7 @@ export const ENRICHMENT_CATEGORIES = {targetDoc: 'VALUES.md',targetCategory: 'core',questions: [- 'What principle would you never compromise, even at personal cost?',+ 'What are the top three values that guide your most important decisions?','What value do you wish more people held?','Where do you draw the line between pragmatism and principle?']@@ -948,10 +948,10 @@ export async function generateEnrichmentQuestion(category, providerOverride, modreturn {questionId: generateId(),category,- question: config.questions[0], // Fallback to first question- isGenerated: false,+ question: `What else should your digital twin know about your ${config.label.toLowerCase()}?`,+ isGenerated: true,questionNumber: questionsAnswered + 1,- totalQuestions: config.questions.length+ totalQuestions: null};}@@ -965,7 +965,7 @@ export async function generateEnrichmentQuestion(category, providerOverride, modconst model = modelOverride || provider.defaultModel;- let question = config.questions[0]; // Fallback+ let question = `What else should your digital twin know about your ${config.label.toLowerCase()}?`; // Fallbackif (provider.type === 'api') {const headers = { 'Content-Type': 'application/json' };