Skip to content

Commit

Permalink
fix: /redo命令缺少处理subcommand bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed May 10, 2024
1 parent 8d6f441 commit 90cf7c6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/buildinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"sha": "d027b36", "timestamp": 1715326817}
{"sha": "8d6f441", "timestamp": 1715327121}
7 changes: 5 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ var Environment = class {
// -- 版本数据 --
//
// 当前版本
BUILD_TIMESTAMP = 1715326817;
BUILD_TIMESTAMP = 1715327121;
// 当前版本 commit id
BUILD_VERSION = "d027b36";
BUILD_VERSION = "8d6f441";
// -- 基础配置 --
/**
* @type {I18n | null}
Expand Down Expand Up @@ -1983,6 +1983,9 @@ async function commandRegenerate(message, command, subcommand, context) {
break;
}
}
if (subcommand) {
nextText = subcommand;
}
return { history: { real, original }, text: nextText };
};
return chatWithLLM(null, context, mf);
Expand Down
2 changes: 1 addition & 1 deletion dist/timestamp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1715326817
1715327121
3 changes: 3 additions & 0 deletions src/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ async function commandRegenerate(message, command, subcommand, context) {
break;
}
}
if (subcommand) {
nextText = subcommand;
}
return {history: {real, original}, text: nextText};
};
return chatWithLLM(null, context, mf);
Expand Down

0 comments on commit 90cf7c6

Please sign in to comment.