Skip to content

refactor(site/src/pages/AgentsPage): split out the read-only composer - #32219

Merged
jakehwll merged 2 commits into
mainfrom
jakehwll/CODAGT-1385-read-only-composer
Nov 18, 2026
Merged

jakehwll merged 2 commits into
mainfrom
jakehwll/CODAGT-1385-read-only-composer

Conversation

@jakehwll

Copy link
Copy Markdown
Collaborator

🤖 This PR was written by Coder Agents on behalf of Jake Howell.

Split the display-only composer out of AgentChatInput. ChatPageInput now chooses ReadOnlyChatComposer explicitly instead of using readOnlyNotice as 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
  • Keep AgentChatInput.isReadOnly for disabled-editor flows; remove only the display-only mode.
  • Share setup-notice eligibility and active-MCP selection so the two composers cannot drift.
  • Preserve the existing permission policy, context refresh, queue display, and attachment orchestration. Broader read-only sidebar and permission cleanup stays out of scope.

@jakehwll
jakehwll temporarily deployed to main November 16, 2026 01:42 — with GitHub Actions Inactive
@jakehwll
jakehwll temporarily deployed to main November 16, 2026 01:42 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 16, 2026

Copy link
Copy Markdown

CODAGT-1385

@jakehwll
jakehwll marked this pull request as ready for review November 16, 2026 04:20
@jakehwll
jakehwll requested a review from a team as a code owner November 16, 2026 04:20
@jakehwll
jakehwll temporarily deployed to main November 16, 2026 04:20 — with GitHub Actions Inactive
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 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-16T04:22:47.017620Z 91d32df Draft marked ready
ℹ️ 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 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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 DanielleMaywood left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment on lines +28 to +34
}): boolean =>
aiGatewayDisabled ||
(isAdmin
? providerCount !== undefined &&
modelCount !== undefined &&
(providerCount === 0 || modelCount === 0)
: modelCount !== undefined && modelCount === 0);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lmao LLMs love writing like this and it pains me so much

Comment on lines +35 to +36
const pillFocusRingClasses =
"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-content-link";

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it used to be like this as well but this pains me

@jakehwll
jakehwll enabled auto-merge (squash) November 18, 2026 03:51
@jakehwll
jakehwll merged commit 3664834 into main Nov 18, 2026
26 checks passed
@jakehwll
jakehwll deleted the jakehwll/CODAGT-1385-read-only-composer branch November 18, 2026 03:59
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
docs-preview — 9ebd6165 Deployed Nov 18, 2026 by jakehwll via cleanup #198
main — 9ebd6165 Deployed Nov 18, 2026 by jakehwll via cla #259127
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants