Skip to content

Tool activity gate: wait for each card to open before reading it, not a fixed sleep - #17234

Merged
danielhanchen merged 1 commit into
mainfrom
ci/tool-activity-click-waits-for-open
Nov 9, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/tool-activity-click-waits-for-open

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

tests/studio/playwright_tool_activity.py scene 3 clicks the controlled and uncontrolled tool cards back to back, sleeps a fixed 600 ms, then reads aria-expanded. On a loaded runner the second click is sometimes lost: the first card's 200 ms Radix expansion is still moving the second trigger, so the gate reports

PROBLEMS (chromium):
  - 3: uncontrolled did not open on click

while the controlled card opened fine. It has turned Chat UI Tests (extra) red on unrelated PRs three times since yesterday:

No frontend file changed on main between the last green run of that job and those failures.

The fix opens each card in turn and waits, bounded at 5 s, until its trigger reports aria-expanded="true" before clicking the next one. The scene still reads aria-expanded afterwards and records the same problem, so a card that really does not open on click still fails the gate.

Changes

  • tests/studio/playwright_tool_activity.py: new click_open(page, name) helper, used for the two scene 3 clicks. Every other scene is unchanged.

Testing

  • Three local runs of the gate on Chromium: problems == [] each time.
  • Sabotage: with a capture-phase listener that swallows clicks on the uncontrolled trigger, the gate still fails with 3: uncontrolled did not open on click.
  • The 22 test files that read the Playwright drivers or _playwright_robust pass (714 passed), and ruff and the exec-literal lint are clean.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: 🔄 Running

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-09T11:47:25.932766Z 945b3fd 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

chatgpt-codex-connector Bot commented Nov 9, 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-09T11:48:26.924474Z 945b3fd 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. Swish!

Reviewed commit: 945b3fd138

ℹ️ 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 43f8a88 into main Nov 9, 2026
@danielhanchen
danielhanchen deleted the ci/tool-activity-click-waits-for-open branch November 9, 2026 12:35
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