Skip to content

Codex/UI redesign#66

Merged
Abdulmuiz44 merged 2 commits into
mainfrom
codex/ui-redesign
Apr 6, 2026
Merged

Codex/UI redesign#66
Abdulmuiz44 merged 2 commits into
mainfrom
codex/ui-redesign

Conversation

@Abdulmuiz44
Copy link
Copy Markdown
Collaborator

No description provided.

…redit-check-dquog7

Improve chat persistence and usage accounting; preserve in-memory history; bump dev dependency
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 6, 2026

Deploy Preview for tera-ai ready!

Name Link
🔨 Latest commit d9fc0b3
🔍 Latest deploy log https://app.netlify.com/projects/tera-ai/deploys/69d365aeb0482100082a6946
😎 Deploy Preview https://deploy-preview-66--tera-ai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Abdulmuiz44 Abdulmuiz44 merged commit b30151f into main Apr 6, 2026
4 of 6 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d9fc0b3875

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +786 to 787
if (!user?.id) {
return
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Clear conversation state when user context disappears

When user becomes null/undefined (for example after clicking Sign out in MainShell), this effect now returns without resetting any chat state, so the previous user's messages remain rendered until a full remount. That is a privacy leak in shared-browser/account-switch flows and a regression from the prior behavior that explicitly cleared conversations on missing user.

Useful? React with 👍 / 👎.

Comment on lines +828 to +830
if (loadedConversations.length === 0 && prev.length > 0) {
return prev
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Replace stale messages when history fetch returns empty

The new guard keeps prev whenever loadedConversations is empty, which means switching to a session with no rows (or any auth/error path where fetchChatHistory returns []) will continue showing the previous session's transcript. This causes cross-session data bleed and incorrect UI state because the displayed messages no longer match the active sessionId.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant