v.24.10Improvement

Fix terminal echo behavior in ClickHouse client during slow startup

If you run clickhouse-client or other CLI application, and it starts up slowly due to an overloaded server, and you start typing your query, such as SELECT, the previous versions will display the remaining of the terminal echo contents before printing the greetings message, such as SELECTClickHouse local version 24.10.1.1. instead of ClickHouse local version 24.10.1.1.. Now it is fixed. This closes #31696. #69856 (Alexey Milovidov).
Fixes the terminal echo issue in clickhouse-client where typed queries appeared concatenated with the greeting message on slow startup.

Why it matters

When the clickhouse-client or other CLI applications start slowly because of an overloaded server, typing a query like SELECT would cause the typed text to be displayed immediately followed by the greeting message, resulting in confusing output such as SELECTClickHouse local version 24.10.1.1.. This feature corrects that behavior to ensure the greeting message appears cleanly without mixing with previous terminal input.

How to use it

This fix is applied automatically in the updated ClickHouse version. Users only need to upgrade to the fixed version to benefit from the corrected CLI startup display behavior.