Skip to content

Conversation

@motm32
Copy link
Contributor

@motm32 motm32 commented Dec 2, 2025

This is still a work in progress

This will allow users to re run commands in the activity log. Currently I have a entry point on the top level activity item which looks like this:
image

But I am open to changing this if people would prefer a different or more obvious entry point.

To do:


const activityContext: GetAzureActivityLogContext = {
...context,
activitySelectedCache: activitySelectedCache
Copy link
Contributor

@MicroFish91 MicroFish91 Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I think I should make a separate update to uncouple the cache from this context so you won't be forced to add it like this just to leverage the helper function below.

import { GetAzureActivityLogContext } from "../chat/tools/GetAzureActivityLog/GetAzureActivityLogContext";
import { ActivityItem } from "../tree/activityLog/ActivityItem";

export async function reRunWithCopilot(context: IActionContext, item: ActivityItem): Promise<void> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We discussed it offline, but prefer it to be rerunWithCopilot just for stylistic reasons. Also may want to be more specific, like rerunAzureActivityWithCopilot so people are aware that this is specifically for retrying commands that are in the activity log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants