Skip to content

feat(site/src): show a family message with its sender - #274

Merged
ibetitsmike merged 7 commits into
mainfrom
mike/chat-family-messages-4-sender
Nov 13, 2026
Merged

ibetitsmike merged 7 commits into
mainfrom
mike/chat-family-messages-4-sender

Conversation

@ibetitsmike

Copy link
Copy Markdown
Owner

Xum opened this PR on behalf of @ibetitsmike.

Part of #247 (PR 4 of 4).

A message that message_family_chat delivers arrives in the recipient chat as a user-role message wrapped in an <agent-message> envelope. With fork-family-messages on, that bubble now reads "Message from agent", then a link to the sender chat labelled with its title, then only the message body. The envelope tags and the preamble for the model are hidden. With the experiment off, the raw text renders exactly as upstream.

  • forkFamilyMessage.ts parses the envelope. The sender title is Go strconv.Quote output, so a title that JSON cannot parse falls back to the quoted text without its quotes.
  • UserMessageContent.tsx gets one hook (useForkFamilyMessage) next to the existing async-answer split. The header lives in ForkFamilyMessageHeader.tsx.
  • ForkChatLink takes an optional className.

Not covered here: the copy button, editing, queued-message previews and prompt history still use the raw envelope text.

With fork-family-messages on, a user message that message_family_chat
delivered shows a "Message from agent" header that links to the sender
chat, followed by the body without the envelope tags and preamble.
…header

The hook returns the parsed message and UserMessageContent renders the
header, the sender link uses the header's size at full opacity, an empty
title reads Untitled in the parser, and a story covers the experiment off.
@ibetitsmike ibetitsmike changed the title feat(site/src/pages/AgentsPage): show a family message with its sender feat(site/src): show a family message with its sender Nov 13, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 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-13T15:02:53.304779Z 4118393 Manual request
ℹ️ 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.

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum commented on behalf of @ibetitsmike.

@codex review

@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: 1ac8de080f

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

Restore the agent-message tags the server escapes in a sender title, skip
async answer parsing for a family message body, and keep only the
navigation outcome in the render test, since the stories cover the
rendered states.
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum commented on behalf of @ibetitsmike.

@codex review

@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: 86284ddd31

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

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum commented on behalf of @ibetitsmike.

@codex review

@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: 86284ddd31

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

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum commented on behalf of @ibetitsmike.

@codex review

@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: 86284ddd31

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

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum commented on behalf of @ibetitsmike.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 719c59e1cb

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

Resolve the add/add conflict in site/src/testHelpers/forkFamilyMessages.ts
by keeping the exports from both #273 and #274.
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum commented on behalf of @ibetitsmike.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 4118393bc5

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

@ibetitsmike
ibetitsmike merged commit 2bf9127 into main Nov 13, 2026
9 checks passed
@ibetitsmike
ibetitsmike deleted the mike/chat-family-messages-4-sender branch November 13, 2026 15:19
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum merged this PR on behalf of @ibetitsmike.

Merged as 2bf9127b59 with a squash. These checks passed on head 4118393bc5:

  • fork-ci run 43448037472 green (9 of 9 checks)
  • Codex: no major issues on 4118393bc5
  • 0 unresolved review threads
  • branch up to date with main (b98d50d289)
  • dogfood UI UAT PASS on 719c59e1cb with fork-family-messages on: the delivered bubble reads "Message from agent" with a link to the sender chat and only the body, and the raw envelope comes back with the flag off. The later head 4118393bc5 only merges main: outside site/src/testHelpers/forkFamilyMessages.ts, its diff from 719c59e1cb equals the feat(site/src): add tool cards for family chat messages #273 squash, and that helper is the two PRs' versions joined.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant