Skip to content

tests: click the inline Delete button #13615 put back on the action bar - #13634

Merged
danielhanchen merged 1 commit into
mainfrom
ci-inline-delete-harnesses
Oct 13, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-inline-delete-harnesses

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Problem

#13615 (inline message actions) moved Delete from the reply's More menu back onto the action bar, as an inline DeleteMessageButton with tooltip="Delete". Four tests have been red on main since then (seen on #13615's own run, in Backend Repo tests (CPU, studio), studio-install and Selftests):

  • test_thread_harness_controls_exist.py, both tests: playwright_heavy_thread.py and playwright_thread_weight.py ask for Delete as a More-menu item, which the assistant bar no longer renders.
  • studiobench/.../test_studiobench_delete_through_more_menu.py::test_every_control_the_scene_asks_for_is_still_rendered: the same thing for the studiobench scene.
  • test_deep_research_frontend_contract.py::test_research_presentation_is_integrated: IndexError, because it looked up the old DeleteMessageMenuItem component by name.

Test or product?

The product change is fine, and the guards are doing their job. The harnesses are what broke. Their delete actions open the More menu and look for a "Delete" item, so in a real browser run against current main:

  • heavy_thread and thread_weight would report Delete as NOT RUN;
  • studiobench's delete_message action would report NOT RUN;
  • studiobench's stop-cleanup step would fail to remove its throwaway turn.

That is exactly what these guards were added to catch after the previous move (#12735).

This is already happening in CI. The Real-path session, every action ran job is red on #13615 and #13621 with:

delete_message: NOT RUN -- no Delete item in the More menu (opened=true, items=2, after 1516.6ms)

Fix

  • Harnesses:
    • playwright_heavy_thread.py and playwright_thread_weight.py DELETE_JS now find the bar's Delete button with actionButton("Delete") before the clock starts and click it.
    • studiobench's delete_message and stop cleanup wait for it with waitForActionButton("Delete", ...).
    • The More-menu dance, and the delete action's menuOpenMs diagnostic for a menu it no longer opens, are gone.
    • menu_open_ms scoring still comes from the message_menu action and is unchanged.
  • Guards:
    • The studiobench selftest is renamed test_studiobench_delete_on_the_action_bar.py. It runs the shipped DELETE_JS + dom.js in node against a bar that has, or lacks, a Delete button.
    • test_thread_harness_controls_exist.py expects Delete as a bar button.
  • Deep research contract: it now finds every thread.tsx component that renders Delete through useDeleteMessage() and requires each to render nothing when hidden. It no longer pins a component name that has now changed twice.

Verification

main this PR
harness-controls guard, studiobench delete selftest, deep research contract 4 failed 22 passed
same guards with main's harness files restored (sabotage) 5 failed
deep research contract with the if (hidden) return null gate removed from DeleteMessageButton (sabotage) fails: DeleteMessageButton renders Delete without the research-message gate
tests/studio/studiobench, harness integrity, test_playwright_suites_run_in_ci.py, test_source_read_encoding.py (-n 8) 1616 passed, 155 skipped
test_formatter_fixed_point.py 16 passed

Nothing references the old selftest filename.

I did not run the browser harnesses themselves here. Real-path session, every action ran exercises the studiobench path on this PR's own CI.

#13615 moved Delete from the reply's More menu to an inline bar button.
The browser harnesses (heavy_thread, thread_weight, studiobench) still
opened the More menu for it, so their delete actions would report NOT
RUN, and four guard tests went red on main. Click the bar button, update
the guards to the inline design, and find the research-message Delete
gate by the hook it calls instead of by component name.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 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-10-13T16:37:33.845830Z 9947cdb Manual request
🔒 Security Review ⚠️ Failed 2026-10-13T16:35:44.910958Z 9947cdb PR opened
ℹ️ 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. Can't wait for the next one!

Reviewed commit: 9947cdb7a0

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

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