Skip to content

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

Merge remote-tracking branch 'origin/main' into worktree-agent-a3cc6090e7f56299b

[._.]/ Adam Eivy73cde878ca34
diff --cc client/src/components/meatspace/post/PostLlmDrillRunner.jsx
index ac7e49c672,ad468c2818..52a259fbe8
--- a/client/src/components/meatspace/post/PostLlmDrillRunner.jsx
+++ b/client/src/components/meatspace/post/PostLlmDrillRunner.jsx
@@@ -517,6 -487,33 +487,47 @@@ export function getPrompts(drill)
}
}
+ // Pure per-type response-object builder — the shape scorePostLlmDrill and the
+ // server's finishDrill counterpart key off of. Every shape stamps
+ // `questionIndex` so the server can pair a response with its originating
+ // prompt/challenge/scenario by explicit index rather than array position —
+ // array position broke pairing for hosts (e.g. the standalone WordplayTrainer
+ // tab) that submit one response at a time wrapped in a single-item array
+ // (fixed in 0a60c8457, "pair wordplay responses with correct challenge by
+ // index"). Regressing this field silently mis-scores every response.
+ export function buildLlmResponseObj({ drillType, questionIndex, items, inputValue, currentPrompt, responseMs }) {
+ if (drillType === 'story-recall') {
+ return {
+ questionIndex,
+ answers: items.length > 0 ? items : [inputValue.trim()],
+ responseMs,
+ };
+ }
+ if (drillType === 'verbal-fluency' || drillType === 'compound-chain' || drillType === 'alternative-uses') {
- return { questionIndex, items, responseMs };
++ return {
++ questionIndex,
++ // Compound Chain's root word (undefined/dropped for the other two
++ // items-based types) — needed so a completed training round can
++ // persist a readable per-question prompt (issue #2114), matching the
++ // standalone WordplayTrainer tab's compound-chain result shape.
++ prompt: currentPrompt?.rootWord,
++ items,
++ responseMs,
++ };
+ }
+ return {
+ questionIndex,
- prompt: currentPrompt?.prompt || currentPrompt?.setup || currentPrompt?.category || currentPrompt?.rootWord || currentPrompt?.word || currentPrompt?.idiom || '',
++ // Bridge Word puzzles have no rootWord/word/idiom field, only `clues` —
++ // without this fallback the persisted per-question prompt silently fell
++ // through to '' for this mode (issue #2114, same bug fixed in the
++ // standalone WordplayTrainer tab).
++ prompt: currentPrompt?.prompt || currentPrompt?.setup || currentPrompt?.category || currentPrompt?.rootWord || currentPrompt?.word || currentPrompt?.idiom
++ || (currentPrompt?.clues || []).join(' / ') || '',
+ response: inputValue.trim(),
+ responseMs,
+ };
+ }
+
// ─────────────────────────────────────────────────────────────────────────────
// DRILL-SPECIFIC UI COMPONENTS
// ─────────────────────────────────────────────────────────────────────────────