feat(ui): replay run log in session terminal, drop per-row live tail
All checks were successful
Release / release (push) Successful in 34s
All checks were successful
Release / release (push) Successful in 34s
Set the task's log path when the run is created (not at completion) so the session terminal can replay live output when the user navigates away and back mid-run. Remove the now-redundant inline per-row live tail (LiveTail / HasLiveTail / TaskMessageEvent) and scroll the terminal to end after the next layout pass so wrapping lines aren't clipped.
This commit is contained in:
@@ -56,18 +56,11 @@ public sealed partial class TasksIslandViewModel : ViewModelBase
|
||||
{
|
||||
_worker.TaskUpdatedEvent += OnWorkerTaskUpdated;
|
||||
_worker.WorktreeUpdatedEvent += OnWorkerTaskUpdated;
|
||||
_worker.TaskMessageEvent += OnWorkerTaskMessage;
|
||||
_worker.ListUpdatedEvent += OnWorkerListUpdated;
|
||||
_worker.ConnectionRestoredEvent += () => LoadForList(_currentList);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnWorkerTaskMessage(string taskId, string line)
|
||||
{
|
||||
var row = Items.FirstOrDefault(r => r.Id == taskId);
|
||||
if (row is not null) row.LiveTail = line;
|
||||
}
|
||||
|
||||
private async void OnWorkerListUpdated(string listId)
|
||||
{
|
||||
// Mirror the renamed list onto every task row that references it,
|
||||
|
||||
Reference in New Issue
Block a user