Skip to content

🪞 fix: Hide the Selected Model Spec's Author on Its Responses - #18536

Open
berry-13 wants to merge 5 commits into
devfrom
berry-13/spec-author-hidden
Open

berry-13 wants to merge 5 commits into
devfrom
berry-13/spec-author-hidden

Conversation

@berry-13

@berry-13 berry-13 commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

interface.messageAuthor: whenDifferent is 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: ContentRow required a loaded agent whose id matched conversation.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_id counts as no saved agent via isEphemeralAgentId. Another saved agent, subagent threads, added panes and side-by-side columns keep their author, always is unchanged, and the screen-reader heading stays.

Related to #17879

Type of change

  • Bug fix

Testing

Tested environments/configuration: mock e2e lane, Chromium, desktop light, desktop dark and mobile, with interface.messageAuthor: whenDifferent served 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 client shown.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 ephemeral agent_id, an added pane, a subagent thread, parallel content, and the rows' conversation refreshing when spec or the custom name changes.
  • Seven mock e2e scenarios in launch-qa.spec.ts (four new, three for saved agents) pass in desktop light, desktop dark and mobile: 21 runs through reviewctl 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 precheck passes: ESLint, Prettier, import order, circular dependencies, TypeScript, config migration tests and i18n keys, then the client (804 suites), packages/chat (256) and packages/data-provider (41) Jest runs.

Screenshots / recordings

Same spec conversation after a reload. The left column is the setting absent, which is also what whenDifferent rendered for spec conversations before this change.

Before (author shown) After, whenDifferent
Before light After light
Before dark After dark

Risk / compatibility

Only deployments with messageAuthor: whenDifferent change. 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 required useSelectedSender member, which the app registers.

Checklist

@berry-13 berry-13 added 🐛 bug Something isn't working 🔧 fix Bug fixes and code patches labels Nov 19, 2026
Copilot AI balanced review requested due to automatic review settings November 19, 2026 18:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-20T13:17:18.991620Z cf03997 Manual request
🔒 Security Review ✅ Completed 2026-11-19T18:18:36.411070Z efed675 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 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: 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".

@berry-13

Copy link
Copy Markdown
Collaborator Author

/quality ignore

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Quality report

Outdated: this request is for an earlier PR commit.

Gate: open. Quality checks explicitly ignored for this commit.

  • Commit: efed6754b4ade10c6ebe3cb43c8037d43a3ca478
  • Requested by: @berry-13
  • Check: ignore

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 api/ source-alias suite, does not close the gate.

…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.
@berry-13
berry-13 force-pushed the berry-13/spec-author-hidden branch from efed675 to cf03997 Compare November 19, 2026 19:16
@berry-13

Copy link
Copy Markdown
Collaborator Author

/quality ignore

@github-actions

Copy link
Copy Markdown
Contributor

Quality report

Gate: open. Quality checks explicitly ignored for this commit.

  • Commit: cf03997aa740d0202fd367ff1ff1f5b055823bf4
  • Requested by: @berry-13
  • Check: ignore

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 api/ source-alias suite, does not close the gate.

@danielclickh

Copy link
Copy Markdown
Contributor

Nice! A lot cleaner!

@danny-avila

Copy link
Copy Markdown
Collaborator

@codex review the latest head, final review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: cf03997aa7

ℹ️ 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".

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working 🔧 fix Bug fixes and code patches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants