feat: add agent assignment to task views#100
Merged
jcanizalez merged 1 commit intomainfrom Mar 26, 2026
Merged
Conversation
- Extend AgentPicker with allowNone prop for optional agent selection - Add agent picker to AddTaskDialog toolbar (between project and branch) - Make agent field editable in TaskDetailPanel with auto-save - Wire assignedAgent into create/update payloads - Add 8 tests for AgentPicker nullable behavior Closes #95
There was a problem hiding this comment.
Pull request overview
Adds UI support for assigning (and unassigning) agents on tasks, addressing #95 by making agent selection available during task creation and from the task detail view, backed by a nullable-capable AgentPicker.
Changes:
- Extend
AgentPickerto support nullable selection viaallowNone(including a “None” dropdown option and “Unassigned” display state). - Add
AgentPickertoAddTaskDialogand make the agent field editable inTaskDetailPanel(wired into existing update/create flows and auto-save). - Add a new test suite covering nullable
AgentPickerbehavior.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/agent-picker-nullable.test.tsx | Adds coverage for nullable/unassigned behavior and “None” option handling. |
| src/renderer/components/AgentPicker.tsx | Implements allowNone + null agent handling and updates UI rendering for unassigned state. |
| src/renderer/components/AddTaskDialog.tsx | Adds agent selection to the task create/edit dialog and persists it to task config. |
| src/renderer/components/TaskDetailPanel.tsx | Replaces read-only agent display with editable picker and includes agent in auto-save/create payloads. |
| src/renderer/components/workflow-editor/panels/LaunchAgentConfigForm.tsx | Updates handler typing/logic to be compatible with nullable-capable AgentPicker API. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AgentPickerwithallowNoneprop for nullable agent selection (matchesProjectPickerpattern)AddTaskDialogtoolbar between project and branch pillsTaskDetailPanelwith editableAgentPicker, wired into auto-saveCloses #95
Test plan