Skip to content

fix(rooms): a missing or refused clipboard shows the invite link instead of claiming it was copied - #331

Closed
Birfy wants to merge 1 commit into
ThinkFlowLab:mainfrom
Birfy:fix/321-clipboard-fallback
Closed

Birfy wants to merge 1 commit into
ThinkFlowLab:mainfrom
Birfy:fix/321-clipboard-fallback

Conversation

@Birfy

@Birfy Birfy commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #321 (merged), resolving Codex's P2 on core/src/client/new-chat.js.

With no navigator.clipboard (insecure context, locked-down WebView) the optional-chained await navigator.clipboard?.writeText(link) resolved, so the refusal card said Invite link for {Bot} copied while the link — minted for that click and shown nowhere else — never reached the clipboard.

Now a missing API or a refused write is not a copy: the note shows the link itself (Send this invite link for {name} to your friend; once they accept, create the group again: {link}, zh added), wrapping and selectable (.bt-fix .bt-note). Same rule as feedback.js copy(). Client-only; regenerated core/client.js + patches; new-chat.test.js pins it; docs/subsystems/core-client.md updated.

Ran at tip: TZ=UTC ARCH_DOCS_BASE=upstream/main npm run verify green (Node 24).

…ead of claiming it was copied

Codex review on ThinkFlowLab#321: with no navigator.clipboard (insecure context, locked-down
WebView) the optional-chained await resolved and the card said 'copied' while the
link, minted for this click, was shown nowhere. Now a missing API or a refused
write puts the link itself in the note (wrapping, selectable).
@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-18T10:23:10.533550Z 06bc7af 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: 06bc7af551

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

: await navigator.clipboard.writeText(link).then(() => true, () => false)
setFixNote(copied
? t('Invite link for {name} copied. Send it to your friend; once they accept, create the group again.', { name: bot.name })
: t('Send this invite link for {name} to your friend; once they accept, create the group again: {link}', { name: bot.name, link }))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Record the clipboard fallback in the changelog

The clipboard-failure branch changes what users see, but I checked the full 3e9c47a changed-file list and it neither adds nor updates a changelog.d fragment. Record this in a .fixed.md fragment (or update the existing unreleased group-friend-bot-refusal fragment) so release notes include it; repository policy requires a fragment for user-visible changes.

AGENTS.md reference: AGENTS.md:L20-L20

Useful? React with 👍 / 👎.

@Birfy

Birfy commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator Author

Closing as a duplicate of #330, which addresses the same Codex P2 (clipboard missing/refused counted as a copy) and was opened a minute earlier by the agent that owns #321. No need for two.

@Birfy Birfy closed this Oct 18, 2026
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