Repository navigation
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: efed6754b4
ℹ️ 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".
|
/quality ignore |
Quality reportOutdated: this request is for an earlier PR commit. Gate: open. Quality checks explicitly ignored for this commit.
The gate opens only when the workflow, source selection, tooling verification, and every report job succeed. A report job fails on a failed test in its workspace's own Jest run, a tool error, a job timeout, or an incomplete mutation report, including a mutation shard that reaches its execution budget. A cancelled workflow keeps the gate closed. Scores are advisory. A change-risk file marked incomplete or unavailable, for example by a failed |
…Same Model With `interface.messageAuthor: whenDifferent`, a spec or endpoint response was hidden whenever its endpoint and model matched the conversation's, so two model specs on one model hid each other's authors, and a response written before the selection moved to another spec lost the name the selector no longer shows. The row now also compares the response's sender with the sender the conversation's current selection writes, which the messages host resolves from the loaded specs and endpoints. The conversation the rows share is refreshed when its spec or custom name changes, so the author returns as soon as the selector moves instead of after the next turn.
Runs the whenDifferent author setting through model spec and plain endpoint conversations on the mock harness: a spec response and an endpoint response drop their author, one still streaming does too, and a response written under another spec on the same model keeps its author as soon as the selector moves and after a reload.
The sender the selection writes is now named the way the server names a response: from the endpoint type the endpoints config gives rather than one the conversation may not carry, and without the deprecated chatGptLabel the server never reads. A saved custom endpoint conversation without a type no longer resolves to no sender, and a legacy label no longer makes a response disagree with its own selection.
efed675 to
cf03997
Compare
|
/quality ignore |
Quality reportGate: open. Quality checks explicitly ignored for this commit.
The gate opens only when the workflow, source selection, tooling verification, and every report job succeed. A report job fails on a failed test in its workspace's own Jest run, a tool error, a job timeout, or an incomplete mutation report, including a mutation shard that reaches its execution budget. A cancelled workflow keeps the gate closed. Scores are advisory. A change-risk file marked incomplete or unavailable, for example by a failed |
|
Nice! A lot cleaner! |
|
@codex review the latest head, final review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Summary
interface.messageAuthor: whenDifferentis meant to drop the avatar and name row from responses whose author the header's model selector already shows. It only did that for saved agents:ContentRowrequired a loaded agent whose id matchedconversation.agent_id. A model spec or plain endpoint conversation runs as an ephemeral agent, so every response in it still opened with the spec's icon and name, while streaming and after reload.The author is now hidden when the conversation has no saved agent and the response's endpoint, model and sender match what the conversation's current selection writes, in the first pane and without parallel content. The sender tells two model specs on one model apart, so a response written under another spec keeps its author, including right after the selector moves. The server's encoded ephemeral
agent_idcounts as no saved agent viaisEphemeralAgentId. Another saved agent, subagent threads, added panes and side-by-side columns keep their author,alwaysis unchanged, and the screen-reader heading stays.Related to #17879
Type of change
Testing
Tested environments/configuration: mock e2e lane, Chromium, desktop light, desktop dark and mobile, with
interface.messageAuthor: whenDifferentserved through the config; model specs and a plain endpoint model on the mock provider, checked after completion, while streaming, after moving the selector to another spec on the same model, and after a reload.Automated tests:
ContentRow.spec.tsx(22),useMemoizedChatContext.spec.tsx(7) and the clientshown.spec.tsx(10) pass. They cover a response from another spec on the same model, a selection that moved to the plain model, a streaming response with no sender yet, a saved ephemeralagent_id, an added pane, a subagent thread, parallel content, and the rows' conversation refreshing whenspecor the custom name changes.launch-qa.spec.ts(four new, three for saved agents) pass in desktop light, desktop dark and mobile: 21 runs throughreviewctl verify. The new ones cover a spec response, a plain endpoint response, a response still streaming, and a response written under another spec on the same model after the selector moves and after a reload.reviewctl precheckpasses: ESLint, Prettier, import order, circular dependencies, TypeScript, config migration tests and i18n keys, then the client (804 suites),packages/chat(256) andpackages/data-provider(41) Jest runs.Screenshots / recordings
Same spec conversation after a reload. The left column is the setting absent, which is also what
whenDifferentrendered for spec conversations before this change.whenDifferentRisk / compatibility
Only deployments with
messageAuthor: whenDifferentchange. A handoff to a saved agent inside a spec conversation still shows that agent, since the turn carries its own agent. The messages host gains a requireduseSelectedSendermember, which the app registers.Checklist