Skip to content

Commit

Permalink
Fix completion rollback (#496)
Browse files Browse the repository at this point in the history
Don't rollback if there is no app agent name parsed.
  • Loading branch information
curtisman authored Dec 13, 2024
1 parent 53cf1db commit 027a575
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/packages/dispatcher/src/command/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export async function resolveCommand(
actualAppAgentName = appAgentName;
} else {
actualAppAgentName = "system";
rollbackToken();
if (first !== undefined) {
rollbackToken();
}
}

const appAgent = context.agents.getAppAgent(actualAppAgentName);
Expand Down

0 comments on commit 027a575

Please sign in to comment.