Skip to content

Studio: say chats and projects are permanently deleted in delete dialogs - #16390

Merged
shimmyshimmer merged 3 commits into
mainfrom
studio-chat-delete-permanent
Nov 1, 2026
Merged

shimmyshimmer merged 3 commits into
mainfrom
studio-chat-delete-permanent

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Deleting chats or projects now says plainly that they are gone for good. Every chat and project delete confirmation reads "This permanently deletes ... This cannot be undone." instead of asking "Are you sure you want to delete...?".

Dialogs covered:

  • Sidebar: one chat (names the chat), several chats, one project, several projects
  • Chats library: one chat, several chats, a project
  • Archived chats: one chat (now names the chat instead of reading "1 archived chats"), several chats
  • Projects page: a chat inside a project, a project

Names are now plain quoted text instead of italics, in the sidebar, the projects page and the training run dialog that shared the same helper. The helper is removed, since it only added the italics. The sidebar's single-project dialog was hard-coded English and now uses the translated strings.

All 25 locales are updated, keeping each locale's own quote style around the name.

Delete chat Delete project
Delete chat dialog Delete project dialog

Verified locally: typecheck, frontend tests and build pass. In a local Studio I opened the sidebar chat and project delete dialogs and confirmed the new text with no italics, then cancelled. The test project was removed afterwards.

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Nov 1, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Nov 1, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Nov 1, 2026
@shimmyshimmer shimmyshimmer changed the title Studio: say chats are permanently deleted in delete dialogs Studio: say chats and projects are permanently deleted in delete dialogs Nov 1, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T11:13:25.150006Z a0803b5 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: a0803b5b5f

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

@shimmyshimmer
shimmyshimmer merged commit 4726a1c into main Nov 1, 2026
@shimmyshimmer
shimmyshimmer deleted the studio-chat-delete-permanent branch November 1, 2026 11:26
danielhanchen added a commit that referenced this pull request Nov 1, 2026
## Summary

`tests/studio/test_en_catalog.py::test_the_shipped_catalog_resolves`
fails on main since #16390 (`4726a1c1b8`, "say chats and projects are
permanently deleted in delete dialogs"). It shows up in
`workflow-trigger lint` on every PR based on current main, for example
staging CI for #16112:

```
assert en_string("shell.dialog.deleteChat.description").endswith('"{name}"?')
AssertionError: 'This permanently deletes "{name}" and its messages. This cannot be undone.'.endswith('"{name}"?')
```

#16390 reworded the dialog on purpose, from `Are you sure you want to
delete this chat "{name}"?` to `This permanently deletes "{name}" and
its messages. This cannot be undone.` The product is right. The test is
a smoke check that the catalog reader resolves a real nested key, and it
pinned the old sentence ending.

## Change

The assertion now checks that the resolved string still carries the
`"{name}"` placeholder, which is what the dialog needs, not how the
sentence ends. A comment says why. The other two checks in the test are
unchanged.

## Testing

- `tests/studio/test_en_catalog.py`: 1 failed on main, 44 passed here.
- Sabotage: with `"{name}"` removed from the `deleteChat.description`
string in `en.ts`, the test fails again.
- No other test reads the old copy (`git grep` over `tests/` and
`studio/backend/tests` for the old sentences finds nothing).
danielhanchen added a commit that referenced this pull request Nov 1, 2026
…te for one archived result (#16401)

## Summary

`Frontend build + bundle sanity` (Linux) and `Frontend unit tests
(Windows)` fail on PRs based on current main. Staging CI shows it for
#16109, #16110 and #16112, all in the `data_settings` Playwright driver:

```
File "tests/studio/playwright_data_settings.py", line 705, in run_library_locales
AssertionError: Locator expected to contain text 'This permanently deletes 1 archived chats and their messages. This cannot be undone.'
Actual value: Delete chatThis permanently deletes "Sample 0" and its messages. This cannot be undone. ...
```

#16390 (`4726a1c1b8`) changed the archived chats dialog on purpose. When
exactly one chat is selected, it now shows the single-chat description,
which names the chat (`shell.dialog.deleteChat.description`), instead of
"1 archived chats". Its description lists this ("Archived chats: one
chat (now names the chat instead of reading "1 archived chats")"). The
driver still expected the bulk wording with `{count}` = 1.

## Change

`run_library_locales` now also reads
`shell.dialog.deleteChat.description` from each locale's catalog. For
the one-result delete, it expects that string with `{name}` = `Sample
0`, the one archived chat left after the No project filter.

## Testing

On this host, Chromium, same frontend tree, `python
tests/studio/playwright_data_settings.py`:

- main's driver: exit 1 with the same `AssertionError` as CI;
- this branch: exit 0, `chromium: 183 Data settings checks passed`,
across all 12 locales the driver walks.
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