Skip to content

Commit 5463baa

Browse files
committed
Nebula: Fix chat session randomly showing empty state after first prompt (#6744)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR addresses an issue with updating the page URL in the `ChatPageContent.tsx` file due to changes in Next.js behavior. The existing method for updating the URL is commented out, and a temporary solution is proposed. ### Detailed summary - Commented out the line: `window.history.replaceState({}, "", `/chat/${sessionId}`);` - Added comments explaining that the URL update does not work anymore due to Next.js changes. - Stated intention to not update the URL until a better solution is found. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 64ffe19 commit 5463baa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ export function ChatPageContent(props: {
161161
(sessionId: string) => {
162162
_setSessionId(sessionId);
163163
// update page URL without reloading
164-
window.history.replaceState({}, "", `/chat/${sessionId}`);
164+
// THIS DOES NOT WORK ANYMORE!! - NEXT JS IS MONKEY PATCHING THIS TOO
165+
// Until we find a better solution, we are just not gonna update the URL
166+
// window.history.replaceState({}, "", `/chat/${sessionId}`);
165167

166168
// if the current page is landing page, link to /chat
167169
// if current page is new /chat page, link to landing page

0 commit comments

Comments
 (0)