Skip to content

Studio: stop Export all chats from saving an empty or stale backup - #16930

Merged
danielhanchen merged 3 commits into
unslothai:mainfrom
NilayYadav:export-chats-silent-empty-backup
Nov 7, 2026
Merged

danielhanchen merged 3 commits into
unslothai:mainfrom
NilayYadav:export-chats-silent-empty-backup

Conversation

@NilayYadav

@NilayYadav NilayYadav commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Export chat history in Settings, Data could save a backup that looked fine but was empty or out of date, with no error. If the download from the server was cut off partway, for example by a dropped connection over a tunnel or Colab, the file held no chats at all. If the server request failed and the browser still had chats from before chats moved to the server, the file held only those old copies and every newer chat was missing. Someone who then cleared their chats or moved machines would lose them.

Now the export stops and shows the usual "Could not export chats" message in both cases, so it can be retried. A normal export is unchanged, and old browser chats that were never moved to the server are still included.

Before / after

Settings, Data, Export chat history with one saved chat, while the server's export response is cut off partway (a truncated 200 body). Before: the browser saves unsloth-chats-<date>.json holding 0 chats and shows no error. After: "Could not export chats: The chat export did not download completely." and no file is saved. (The separate pinned-chats toast on the right is unrelated to this change.)

Export chat history with a truncated server response, before and after

@NilayYadav NilayYadav self-assigned this Nov 6, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T21:34:12.775611Z 5d6648b Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 5d6648ba78

ℹ️ 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".

@danielhanchen danielhanchen self-assigned this Nov 7, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Nov 7, 2026
@danielhanchen
danielhanchen merged commit 7e0143e into unslothai:main Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants