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

fix: hide Morse targeting hints until answer submission

[._.]/ Adam Eivy9160df00b394
diff --git a/client/src/components/meatspace/post/MorseTrainer.jsx b/client/src/components/meatspace/post/MorseTrainer.jsx
index fdd788b4bd..d268e900de 100644
--- a/client/src/components/meatspace/post/MorseTrainer.jsx
+++ b/client/src/components/meatspace/post/MorseTrainer.jsx
@@ -1242,7 +1242,7 @@ function CopyDrill({ prefs, progress, updatePrefs, ensureCtx, claimSession, rele
<Volume2 size={14} /> Replay
</button>
</div>
- {selection && <p className="text-xs text-gray-500 text-center">{selection.reason}</p>}
+ {verdictOpen && selection && <p className="text-xs text-gray-500 text-center">{selection.reason}</p>}
<div className="text-center py-6">
{playing ? (
<div className="text-cyan-400 text-sm animate-pulse">▮ ▮ ▮ playing...</div>
diff --git a/client/src/components/meatspace/post/MorseTrainer.test.jsx b/client/src/components/meatspace/post/MorseTrainer.test.jsx
index e19a181de9..9f4e47149f 100644
--- a/client/src/components/meatspace/post/MorseTrainer.test.jsx
+++ b/client/src/components/meatspace/post/MorseTrainer.test.jsx
@@ -322,6 +322,27 @@ describe('MorseTrainer per-question feedback', () => {
fireEvent.keyDown(input, { key: 'Enter' });
}
+ it.each(['copy', 'head-copy'])('hides answer-bearing selection details until submission in %s', async (mode) => {
+ getMorseProgress.mockResolvedValueOnce({
+ days: 30, kochLevel: 2, kochLevelSet: false, settings: null, totalRounds: 1,
+ series: { copy: [], 'head-copy': [], send: [] }, confusionMatrix: {}, confusionPairs: [],
+ charAccuracy: [
+ { char: 'K', attempts: 10, accuracy: 0 },
+ { char: 'M', attempts: 10, accuracy: 0 },
+ ],
+ });
+ const input = await startCopyRound(mode);
+ expect(screen.queryByText(/Targeting .*rotation\./)).toBeNull();
+
+ answer(input);
+ await screen.findByTestId('morse-verdict');
+ expect(screen.getByText(/Targeting .*rotation\./)).toBeInTheDocument();
+
+ fireEvent.click(screen.getByRole('button', { name: /^Next$/ }));
+ await waitFor(() => expect(screen.queryByTestId('morse-verdict')).toBeNull());
+ expect(screen.queryByText(/Targeting .*rotation\./)).toBeNull();
+ });
+
it('shows what was sent, its Morse, and the pattern the user typed instead', async () => {
const input = await startCopyRound();
answer(input);