Repository navigation
refactor(site/src/pages/AgentsPage): split out the read-only composer - #32219
Conversation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 91d32dfb4a
ℹ️ 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".
DanielleMaywood
left a comment
There was a problem hiding this comment.
It's an improvement although I'm still not particularly happy with the existing implementation that has been carried over into the components we've pulled out. Not-blocking on that though as that is out-of-scope of this change
| }): boolean => | ||
| aiGatewayDisabled || | ||
| (isAdmin | ||
| ? providerCount !== undefined && | ||
| modelCount !== undefined && | ||
| (providerCount === 0 || modelCount === 0) | ||
| : modelCount !== undefined && modelCount === 0); |
There was a problem hiding this comment.
lmao LLMs love writing like this and it pains me so much
| const pillFocusRingClasses = | ||
| "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-content-link"; |
There was a problem hiding this comment.
I know it used to be like this as well but this pains me
Split the display-only composer out of
AgentChatInput.ChatPageInputnow choosesReadOnlyChatComposerexplicitly instead of usingreadOnlyNoticeas a mode switch, so read-only chats no longer mount the editable composer's hooks or Escape-to-interrupt handler.Reuse the metadata badges, responsive overflow, and mobile menu positioning across both composers. Name the extracted popovers for assistive technology, and cover the split with an Escape regression and dedicated desktop/mobile stories.
Closes CODAGT-1385. Follow-up to #30483.
Implementation decisions
AgentChatInput.isReadOnlyfor disabled-editor flows; remove only the display-only mode.