fix: centre the context ring, show a live status while running, and settle project rows

- The folded composer aligns to its bottom edge, so the 16px usage ring sat
  below the 36px keys; a 10px bottom padding puts it on their centre line (the
  two-row layout was already centred).
- A running turn no longer shows the finished turn's footer (model · mode ·
  time, with its copy/fork menu). Above the input there is now an activity
  strip like dsh-Go's: "思考中 / 正在回复 / 正在读取 · …" with the current
  step's summary and a clock that ticks each second.
- Project headers in the sidebar are tinted bands at least a session row tall,
  with a folder icon, a bolder name and the path beneath, so the project and
  its sessions read as different levels.
- Project names take the last path segment with either separator, and path
  comparisons unify `\`/`/` (case-insensitively for drive-letter paths); the
  grouping key does too, so a Windows server no longer shows a full path or
  splits one project in two.
- 0.3.19 (319).
This commit is contained in:
blumia committed 2026-11-22 11:59:33 +08:00
1 parent d9d5424318
commit 6ced914757
9 files changed
+272 -56

No files matched your search

+3 -5
View File
@@ -474,16 +474,14 @@ class AppState extends ChangeNotifier {
String projectLabelFor(String directory) {
if (directory.isEmpty) return '';
for (final project in projects) {
if (project.canonical == directory) return project.label;
if (samePath(project.canonical, directory)) return project.label;
}
final trimmed = directory.replaceAll(RegExp(r'/+$'), '');
final index = trimmed.lastIndexOf('/');
return index >= 0 ? trimmed.substring(index + 1) : trimmed;
return pathLeaf(directory);
}
ProjectInfo? projectFor(String directory) {
for (final project in projects) {
if (project.canonical == directory) return project;
if (samePath(project.canonical, directory)) return project;
}
return null;
}