清理 DirectProject 回合结束后丢弃回复正文的死语句
- App.tsx 不再绑定 chat_with_game_creator_direct_codex 的返回值,删掉 void reply - 保留说明:回复正文按条目身份从线程事件 / 历史切片进聊天,本地不再补第二条
This commit is contained in:
@@ -6541,7 +6541,9 @@ export function App({
|
||||
directTurnInput.attachments = attachments;
|
||||
}
|
||||
directTurnInput.userItem = effectiveUserItem;
|
||||
const reply = await withDirectCodexSessionRefresh(() => {
|
||||
// 回复正文按条目身份从线程事件 / 历史切片进聊天,本地不再补一条,
|
||||
// 因此这里只等回合跑完,不接返回值。
|
||||
await withDirectCodexSessionRefresh(() => {
|
||||
return directInvoke<string>(
|
||||
'chat_with_game_creator_direct_codex',
|
||||
directTurnInput,
|
||||
@@ -6553,8 +6555,6 @@ export function App({
|
||||
projectSupervisorHistoryLoadVersionRef.current += 1;
|
||||
}
|
||||
if (localProjectPathRef.current === directProjectPath) {
|
||||
// 回复正文按条目身份从线程事件 / 历史切片进聊天,本地不再补一条。
|
||||
void reply;
|
||||
await refreshDirectProjectManifest(directProjectPath);
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user