Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix: 无项目新建会话误显示上一个项目后缀

zhengkailan6020f1c7ff4b
diff --git a/jiuwenswarm/channels/web/frontend/src/App.tsx b/jiuwenswarm/channels/web/frontend/src/App.tsx
index afcf64a3af..609b47ae9b 100644
--- a/jiuwenswarm/channels/web/frontend/src/App.tsx
+++ b/jiuwenswarm/channels/web/frontend/src/App.tsx
@@ -1521,7 +1521,7 @@ function AppContent() {
// 默认模型列表尚未加载完成时兜底沿用当前会话的模型,避免新会话没有模型可用。
const selectedModelName = useSessionStore.getState().defaultModelName ?? currentRuntime?.selectedModelName ?? null;
const selectedProject = options.project ?? useWorkspaceStore.getState().selectedProject;
- const projectDir = selectedProject?.project_dir ?? currentRuntime?.projectDirectory ?? null;
+ const projectDir = options.project?.project_dir ?? selectedProject?.project_dir ?? null;
disposeInFlightHistoryHandles(
currentSessionId !== NEW_CONVERSATION_ID ? currentSessionId : undefined,
);