fix(chat): enable in-place subtask navigation in embedded session-chat iframe (#2138)

This commit is contained in:
Andrey Meshkov
2026-07-13 08:32:18 +03:00
committed by GitHub
parent 3362ebbfa3
commit 7888dd65b3
10 changed files with 316 additions and 26 deletions
@@ -1,9 +1,10 @@
import { isEmbeddedSessionChat } from '@/components/layout/contextPanelEmbeddedChat';
export const readEmbeddedThemeSearchParams = (): URLSearchParams | null => {
if (typeof window === 'undefined') {
if (!isEmbeddedSessionChat()) {
return null;
}
const params = new URLSearchParams(window.location.search);
return params.get('ocPanel') === 'session-chat' ? params : null;
return new URLSearchParams(window.location.search);
};
const getSystemPreference = (): boolean => {