Skip to content

Studio tests: pin the delete chat placeholder, not its wording - #16397

Merged
danielhanchen merged 1 commit into
mainfrom
en-catalog-test-follows-copy
Nov 1, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
en-catalog-test-follows-copy

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Member Author

@codex 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-01T12:20:07.276237Z eaf911c 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. What shall we delve into next?

Reviewed commit: eaf911ca3c

ℹ️ 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 merged commit 3a7798b into main Nov 1, 2026
@danielhanchen
danielhanchen deleted the en-catalog-test-follows-copy branch November 1, 2026 12:32
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