Fix workspace switch session binding
This commit is contained in:
@@ -424,6 +424,9 @@ const ChatTopActions: FC = () => {
|
||||
const [workspaceOpen, setWorkspaceOpen] = useState(false);
|
||||
const normalizedSessionId = useCurrentThreadSessionId({
|
||||
includePending: true,
|
||||
// 工作区切换必须绑定当前可见会话;空白新会话不能回退到上一个
|
||||
// activeSessionId,否则会把 Jupyter 工作区切到旧会话上。
|
||||
includeActive: false,
|
||||
});
|
||||
const workspaceStatus = useJupyterWorkspaceStatus(normalizedSessionId);
|
||||
|
||||
@@ -849,6 +852,7 @@ const Composer: FC = () => {
|
||||
const replayedRun = useReplayedRunState();
|
||||
const workspaceSessionId = useCurrentThreadSessionId({
|
||||
includePending: true,
|
||||
includeActive: false,
|
||||
});
|
||||
return (
|
||||
<ComposerPrimitive.Root className="aui-composer-root relative flex w-full flex-col">
|
||||
|
||||
Reference in New Issue
Block a user