Repository navigation
Conversation
When Settings or Usage opens, the thread stays mounted but inert. The composer menu portal kept its open state, so a truncated description tooltip stayed painted over the modal. Gate the suggestion menu layer on composerMenusClosed, which already tracks hiddenThread and collapsed-mobile controls. This unmounts the portal and its tooltip when the composer is covered. Closes pingdotgg#46584
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The slash-command menu now follows the existing closure condition for hidden threads and collapsed composer controls. This is a narrowly scoped UI visibility fix with no persistent-data or external-system impact. Notes:
You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cdbf257fd7
ℹ️ 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".
| await expect.element(page.getByRole("option", { name: /^\/model/ })).not.toBeInTheDocument(); | ||
| expect(document.querySelector('[data-slot="tooltip-popup"]:not([data-ending-style])')).toBeNull(); |
There was a problem hiding this comment.
Verify portal removal with a hidden-inclusive DOM query
When /model's description fits in the composer, both dismissal assertions can pass with the old code: ComposerCommandMenuItem never opens a tooltip, and the modal Settings dialog aria-hides the still-mounted menu, so the default getByRole query stops finding it. Assert that [data-composer-command-drawer] is actually removed, and establish that a truncated description's tooltip is present before navigation if tooltip removal is part of the regression test. Otherwise this does not provide the failing-before-fix proof required by docs/internals/15_testing.md.
AGENTS.md reference: AGENTS.md:L82-L82
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Done in bc8d6f6: the test asserts [data-composer-command-drawer] is removed from the DOM, and I verified it fails on the pre-fix code at that assertion.
| await expect.element(permissions).not.toBeInTheDocument(); | ||
| }); | ||
|
|
||
| it("opening Settings with the slash menu open closes the menu and its tooltip", async () => { |
There was a problem hiding this comment.
Fold this scenario into the existing Settings-dismissal test
The immediately preceding Settings test already mounts the same fake environment, draft, and AppRoot, navigates to Settings, returns to the draft, and checks composer-menu dismissal. The required testing guide, docs/internals/15_testing.md, explicitly says “Extend before you add” and instructs reviewers to flag new tests where an existing case fits. Extend that case with the slash-menu dismissal and reopening assertions instead of duplicating the full-app browser setup for the same workflow.
AGENTS.md reference: AGENTS.md:L82-L82
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Done in bc8d6f6: the slash menu scenario now extends the existing Settings-dismissal test, and the drawer removal is asserted with a DOM query since the modal aria-hides role lookups.
Extend the existing Settings-dismissal case with the slash menu instead of duplicating the app setup, and assert the command drawer leaves the DOM since the modal dialog aria-hides role queries. Addresses review on pingdotgg#46655
Dismissing prior approval to re-evaluate bc8d6f6
Problem
Closes #46584. When Settings or Usage opens, the thread stays mounted but inert. The composer menu portal kept its open state, so a truncated description tooltip stayed painted over the modal.
Change
Gate the suggestion menu layer in
apps/web/src/components/chat/ChatComposer.tsxoncomposerMenusClosed, which already trackshiddenThreadand collapsed-mobile controls. This unmounts the portal and its tooltip when the composer is covered.Scope
Web composer menu layer only. No tooltip library or Settings changes.
Verification
ChatView.browser.test.tsxthat opens the slash menu, navigates to Settings, and asserts the menu and tooltip are removed from the DOM, then returns and asserts the menu reopens.Not in this change
Written and verified by gpt-6.2-astra via the Codex harness in T3 Code.