From 747f28adf5825afb1c387f28f1750d0b398a664b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 21 Oct 2026 18:48:26 +0200 Subject: [PATCH] =?UTF-8?q?Answer=20prose=20round=201:=200=20=F0=9F=94=B4,?= =?UTF-8?q?=203=20=F0=9F=9F=A1;=20say=20what=20each=20readline=20cost=20br?= =?UTF-8?q?eaks,=20and=20name=20both=20questions'=20readers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- todo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 5ea6fe33..fc69b1b7 100644 --- a/todo.md +++ b/todo.md @@ -458,7 +458,7 @@ The principles pass of PR #301 found that only `routed_by` in `bin/loop_claude/c ### 197. Let the human edit what they type at loop-claude's terminal questions with the arrow keys, so Left moves the cursor in place of printing `^[[D`. -`bin/loop_claude/effects.py` hands loop-claude Python's builtin `input`, and nothing under `bin/` imports `readline`, so the terminal gets no line editing: Left prints `^[[D` into the answer, and fixing a typo means erasing back to it. Both questions loop-claude asks read through it: the interrupt's answer in `cycle/interrupt.py`'s `put_question`, and the project's model in `project/model_choice.py`. Importing `readline` in `effects.py` gives both line editing, at two costs. It writes the prompt to stdout, not stderr. And its bracketed paste can return several lines, while `prompts.typed_answer` ends the answer at its first blank line and shows the judge the rest as loop-claude's words. The product-owner review of PR #308 raised this. lilleman, 2026-10-18: "Not super-important, but a bit irritating." +`bin/loop_claude/effects.py` hands loop-claude Python's builtin `input`, and nothing under `bin/` imports `readline`, so the terminal gets no line editing: fixing a typo means erasing back to it. `effects.input` reads the answer to both of loop-claude's questions: the interrupt, in `cycle/interrupt.py`'s `put_question`, and the pick of the project's model, in `project/model_choice.py`'s `ask_for_model`. Importing `readline` in `effects.py` gives both line editing, at two costs. It moves the prompt from stderr to stdout, while the question above it stays on stderr. `test_black_box.py` waits for the prompt on stderr. `readline`'s bracketed paste takes a pasted block whole, so an answer can hold several lines. `prompts.typed_answer` ends the answer at its first blank line, so the judge would read the rest of such a paste as loop-claude's words. The product-owner review of PR #308 raised the interrupt's case. lilleman, 2026-10-18: "Not super-important, but a bit irritating." ### 52. Record why this checkout lives in Claude Code's own directory, or move it out and link it in.