feat(ui): add config override fields to TaskEditorView

Adds Model, SystemPrompt, and AgentPath override fields to TaskEditorViewModel and TaskEditorView. Wires agent loading from WorkerClient in TaskListViewModel before opening the editor dialog.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mika Kuns
2026-04-14 16:39:50 +02:00
parent 699fe8a148
commit f8be2c178b
3 changed files with 58 additions and 1 deletions

View File

@@ -146,6 +146,7 @@ public partial class TaskListViewModel : ViewModelBase
var defaultCommitType = list?.DefaultCommitType ?? "chore";
var editor = _editorFactory();
await editor.LoadAgentsAsync(_worker);
editor.InitForCreate(CurrentListId, defaultCommitType);
var window = new TaskEditorView { DataContext = editor };
@@ -191,6 +192,7 @@ public partial class TaskListViewModel : ViewModelBase
var taskTags = await _taskRepo.GetTagsAsync(entity.Id);
var editor = _editorFactory();
await editor.LoadAgentsAsync(_worker);
editor.InitForEdit(entity, taskTags);
var window = new TaskEditorView { DataContext = editor };