Repository navigation
Make each prompt lock in only when it's typed exactly right - #10
Merged
Merged
Conversation
A prompt now locks once every character matches. The text turns green and the composer shows "Done. Press Enter to send." Keys and backspace do nothing while it is locked, and Enter does nothing until the prompt is complete. The timer stops at the last key. Every sent prompt is now clean, so the agents never see a typo. This removes the typo diff, the literal replies, typosLiteral, the typo underline in sent messages, the end screen typo list, and the slack that let you type past the end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
You could send a prompt with typos in it, and the prompt never felt finished. Each practice prompt should stand on its own. You should only finish it by typing it exactly right, and then it should lock and show that it's done.
Fix
Since every sent prompt is now clean, the agents never see a typo. This PR removes all the "agents take typos literally" code. That includes the typo diff, the literal replies,
typosLiteral, the typo underline in sent messages, the end screen typo list,DRAFT_SLACK, and thedraftWordsMstrailing-space clock.typos.tsis now a 25-linereply.tsthat only lists changed files.Proof
tests/timing.test.tshas new tests. A draft with a wrong key won't send, and it sends after you fix it. A complete prompt ignores keys, backspace, and word-backspace. The timer stops at the last key even if Enter comes 5s later.tests/play.mjsplays a full session in Chromium. Every third prompt is typed with swapped letters, and Enter is pressed. It checks that Enter did not send (10 times), then fixes the prompt and sends it. All 34 prompts were sent and the session ended normally. The screenshots above come from this run.threads.jsonis printable ASCII, so every prompt can be finished on a keyboard.npm run typecheck,npm run lint,npm run test:unit(26 passed), andnode tests/play.mjs(all checks pass).Reviewed with sol-loop: 1 round with gpt-6.1-sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code