Skip to content

fix(reach,social): say which Bot is not shared and point to Sharing when a send to a friend's Bot is refused - #286

Merged
Birfy merged 1 commit into
ThinkFlowLab:mainfrom
Birfy:fix-273-refusal-copy
Oct 18, 2026
Merged

Birfy merged 1 commit into
ThinkFlowLab:mainfrom
Birfy:fix-273-refusal-copy

Conversation

@Birfy

@Birfy Birfy commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Fixes #273.

A Bot asked to message a friend's Bot it may not reach got a refusal with the direction backwards ("Chief has no grant to that Bot"), and the model then sent the user to a "team/permissions setting" that does not exist.

  • core/src/host/reach.js and the social transport: "Chief is not shared with that friend, so it cannot message their Bots. To allow it, share Chief with them in its settings → Sharing."
  • Social send middleware, target not shared with us: "@x is not a Bot a friend shared with you, so your Bots cannot message it. Its owner can share it with you in that Bot's settings → Sharing."
  • message_friend_bot tells the model to relay the reason as written and not point to any other setting.
  • The composer / group-mention mappings (notSentLine, userFacingSendError, mentionReceipt) still recognise the new wording.
  • Design unchanged: under per-Bot grants a Bot can only message a friend's Bot once it has been shared with that friend. Whether a Bot should reach a friend's Bot it already has access to is left as a design question in Bot → friend's Bot send refused with backwards 'no grant to that Bot' reason; model points to a nonexistent permissions setting; held-send flow unreachable #273.

Ran at tip: TZ=UTC ARCH_DOCS_BASE=upstream/main npm run verify (green). Docs: social.md, core-host.md, plugin-runtime.md. Changelog fragment added. Nothing deployed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T06:24:33.682283Z 4064874 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: 406487464f

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

Comment thread core/src/host/hooks.js
const why = line(reason)
if (action === 'deny') {
const grant = /has no grant to that Bot|has not been granted/i.test(why)
const grant = /has no grant to that Bot|has not been granted|cannot message their Bots/i.test(why)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve sender-specific Sharing guidance in receipts

When a user @-mentions a friend's Bot from a group whose admin/sending Bot is not shared with that friend, reach() returns the new sender-specific reason (Chief ... share Chief ... → Sharing). Adding cannot message their Bots here causes mentionReceipt to classify precisely that reason as a legacy grant failure and replace it on the next line with invite that Bot from Bot settings; because the receipt is labelled with the remote Bot's name, the user is again pointed at the wrong Bot and never sees either Chief or Sharing. Preserve the new reason, or render an equivalent sender-specific hint, for this branch.

Useful? React with 👍 / 👎.

@Birfy
Birfy added this pull request to the merge queue Oct 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 18, 2026
@Birfy

Birfy commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator Author

Maintainer review (2026-10-18 maintenance): Design OK — refusal names the sending Bot and Sharing (the setting that exists), keeps per-Bot grant deny, and tells the model to relay the reason. Tests and changelog look right. Will rebase onto latest main and squash-merge when CI is green.

@Birfy
Birfy force-pushed the fix-273-refusal-copy branch from a3df8aa to 8f47fb8 Compare October 18, 2026 08:05
@Birfy
Birfy added this pull request to the merge queue Oct 18, 2026
Merged via the queue into ThinkFlowLab:main with commit e043477 Oct 18, 2026
8 checks passed
@Birfy
Birfy deleted the fix-273-refusal-copy branch October 18, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant