避免总控草稿初始化误删
- 编辑器尚未恢复时跳过空草稿持久化 - 保留已有会话草稿等待输入区完成恢复
This commit is contained in:
@@ -3080,7 +3080,10 @@ export function App({
|
||||
return;
|
||||
}
|
||||
const draft = chatComposerRef.current?.getDraft();
|
||||
persistSupervisorChatDraft(initialProjectPath, draft?.text ?? '');
|
||||
if (!draft?.text.trim()) {
|
||||
return;
|
||||
}
|
||||
persistSupervisorChatDraft(initialProjectPath, draft.text);
|
||||
}, [initialProjectPath, supervisorChatOnly]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user