137
* Keys not present here fall back to the raw action id.
138
*/
139
>
function getPlanActionDescription(actionId: string): { label: string; description: string } | undefined {
copilotAgentSession.ts
140
>
switch (actionId) {
141
>
case 'autopilot':
142
return {
143
label: localize('agentHost.planReview.autopilot.label', "Implement with Autopilot"),
144
description: localize('agentHost.planReview.autopilot.description', "Continue autonomously until done, using the selected approval level."),
145
};
147
return {
148
label: localize('agentHost.planReview.autopilotFleet.label', "Implement with Autopilot Fleet"),
149
description: localize('agentHost.planReview.autopilotFleet.description', "Continue autonomously with fleet management, using the selected approval level."),
150
};
152
return {
153
label: localize('agentHost.planReview.interactive.label', "Implement Plan"),
154
description: localize('agentHost.planReview.interactive.description', "Implement the plan, asking for input and approval for each action."),
155
};
157
return {
158
label: localize('agentHost.planReview.exitOnly.label', "Approve Plan Only"),
159
description: localize('agentHost.planReview.exitOnly.description', "Approve the plan without executing it. I will implement it myself."),
160
};
162
return undefined;
164
>
}
165
166
type UserInputHandler = NonNullable<SessionConfig['onUserInputRequest']>;