feat: write the UI in English, select only conversation content

- source strings are English again; Chinese comes from lib/l10n/zh.dart
  through tr()/trArgs() and AppText, and a language without a table
  (Spanish, ...) reads English instead of Chinese
- server and user data (titles, messages, file names, notes, task names)
  is drawn with plain Text, so it is never looked up in the table
- SelectionArea moved from the whole message list to the messages, the
  answer text, an opened tool call's details and the turn footer; status
  lines and folded tool rows no longer start a selection
- a message the transcript does not know (its start event was lost while
  the stream was down) fetches the tail once, so a turn continued from
  another client comes in with its prompt
- bump to 0.5.3
This commit is contained in:
blumia committed 2026-11-26 11:48:16 +08:00
1 parent 7b5bccf28f
commit 511c3b006b
43 files changed
+1620 -1791

No files matched your search

+2 -2
View File
@@ -239,11 +239,11 @@ const shellOutputTailBytes = 256 * 1024;
/// `12秒`, `3分05秒`, `1:02:03`: the running clock a task row shows.
String formatElapsed(int milliseconds) {
final secs = milliseconds <= 0 ? 0 : milliseconds ~/ 1000;
if (secs < 60) return trArgs('{0}秒', [secs]);
if (secs < 60) return trArgs('{0}s', [secs]);
if (secs < 3600) {
final rest = secs % 60;
return trArgs(
'{0}分{1}秒', [secs ~/ 60, rest.toString().padLeft(2, '0')]);
'{0}m{1}s', [secs ~/ 60, rest.toString().padLeft(2, '0')]);
}
final hours = secs ~/ 3600;
final mins = (secs % 3600) ~/ 60;