Add progress bar back to TaskCard via optional progress prop
Progress notifications (notifications/progress) are sent separately from the Task object per the MCP spec. Add an optional progress prop typed as Pick<ProgressNotification['params'], 'progress' | 'total' | 'message'> so the parent can pass progress data when available. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6abb39a5fe
commit
b487279d36
1 changed files with 23 additions and 3 deletions
|
|
@ -61,7 +61,10 @@ const cancelledTask: Task = {
|
|||
};
|
||||
|
||||
export const Working: Story = {
|
||||
args: { task: workingTask },
|
||||
args: {
|
||||
task: workingTask,
|
||||
progress: { progress: 650, total: 1000, message: "Processing records..." },
|
||||
},
|
||||
};
|
||||
|
||||
export const InputRequired: Story = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue