+
+
{proposal.actions.map((action) => mapActionToButton(action))}
diff --git a/src/ipc/handlers/proposal_handlers.ts b/src/ipc/handlers/proposal_handlers.ts
index 4d9d47f..d563ab5 100644
--- a/src/ipc/handlers/proposal_handlers.ts
+++ b/src/ipc/handlers/proposal_handlers.ts
@@ -297,7 +297,10 @@ const getProposalHandler = async (
});
}
}
- if (actions.length > 0 && latestAssistantMessage) {
+ if (latestAssistantMessage) {
+ actions.push({
+ id: "keep-going",
+ });
return {
proposal: {
type: "action-proposal",
diff --git a/src/lib/schemas.ts b/src/lib/schemas.ts
index 56a2d62..4fd0b10 100644
--- a/src/lib/schemas.ts
+++ b/src/lib/schemas.ts
@@ -166,7 +166,8 @@ export type SuggestedAction =
| WriteCodeProperlyAction
| RebuildAction
| RestartAction
- | RefreshAction;
+ | RefreshAction
+ | KeepGoingAction;
export interface RestartAppAction {
id: "restart-app";
@@ -197,6 +198,10 @@ export interface RefreshAction {
id: "refresh";
}
+export interface KeepGoingAction {
+ id: "keep-going";
+}
+
export interface ActionProposal {
type: "action-proposal";
actions: SuggestedAction[];