Files
Narasimha-sc 288697327c android, desktop: fix chat console crash on duplicate list keys
Terminal items were keyed by (System.currentTimeMillis(), System.nanoTime()).
nanoTime() is monotonic but not unique: two items created on different threads
in the same instant get identical values, and currentTimeMillis() ties as well,
so the whole key collides and LazyColumn throws "Key was already used".

Terminal items are created concurrently - sendCmd runs in Dispatchers.IO and
processReceivedMsg on the receiver thread - so this happened often enough to
make the console unusable.

Key by a per-item sequence number instead.
2026-08-24 15:32:14 +00:00
..