model-writtenrun 9046 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed printing the unexecuted query buffer with a prompt after \e, using newline termination so the behavior also works without readline; he omitted echoing immediately executed commands because he considered that too chatty #1.
- Fabien COELHO tested the patch and wanted the edited text placed in readline's current buffer for further editing, while Tom argued that the proposed display matches ordinary multiline input and preserves existing editing behavior #2 #3 #5.
- Laurenz Albe reported that hex-editor stress testing found no failures, although he had to remove carriage returns from the patch before applying it #4.
- Tom described unsuccessful attempts to populate readline's buffer and concerns about readline/libedit portability and behavior without readline; Fabien explored insertion and history mechanisms, Pavel Stehule supplied a usage example, and Tom considered a startup hook possible but retained the simpler approach #6 #7 #8 #9.
- Tom committed the sole patchset with only a documentation paragraph split as d1c866e57f, crediting Fabien and Laurenz for review, and announced that a better readline solution could still be considered later #1 #10.
- The redisplay improvement was landed by the thread's end; Fabien reported that his startup-hook experiment partly worked but did not behave as desired, and he lacked time to pursue it further #11.