Skip to content

A Bot's new Bot Social identity gets its look again (part of #182) - #377

Merged
Birfy merged 2 commits into
ThinkFlowLab:mainfrom
Birfy:fix/182-look-per-identity
Oct 18, 2026
Merged

Birfy merged 2 commits into
ThinkFlowLab:mainfrom
Birfy:fix/182-look-per-identity

Conversation

@Birfy

@Birfy Birfy commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Part of #182 (a Bot looks different on each home). Not closing it: the own-home case in the self-test (B's own Chief drawn as a whale in the waiting dialog and a blob in details) still needs a live recheck.

Problem

syncBotLook remembered "look sent" per local Bot id (settings.lookSynced[bot.id] = fingerprint). A face-to-face join of a Bot with no person-grant registers a room-only Bot Social identity, and that identity is revoked after the Bot's last face room (releaseRoomOnlyIdentity). The next room registers a new identity with a new bot_id, but lookSynced still matched, so the new identity never got the colour and avatar. Other homes then read no look in face-room members[] and draw the handle-seeded default (orange cat vs blue whale).

Change (plugins/social/src/social.js)

Tests

  • plugins/social/test/social.test.js: #182: a new Bot Social identity for the same Bot gets its look again: same identity sends nothing more; a new bot_id gets update_bot_profile with the whale and #4d6bfe. Fails on main (actual: 'm1').
  • TZ=UTC ARCH_DOCS_BASE=upstream/main npm run verify (Node 24) green.

No protocol change (same update_bot_profile call, optional fields). Risk tier T3 (plugins/social/src/*): needs a PASS and the maintainer's approval. No deploy.

@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-18T16:19:42.183820Z d8d22ee 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: d8d22ee2e6

ℹ️ 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 plugins/social/test/social.test.js Outdated
const painted = await call('update-bot', { id: 'a', color: 'deepseek', avatar: { shape: 'whale' } })
assert.equal(painted.ok, true, painted.error?.message)
const server = mockServer()
server.tools.update_bot_profile = (a) => ({ bot_id: a.bot_id, avatar: a.avatar, color: a.color, avatar_kind: 'preset' })

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 Pin the mocked response to the real server shape

The new update_bot_profile stub returns a Bot Social answer with no comment tying that shape to a server commit or read-only response. When the upstream answer evolves, this fixture can remain green against an unverified contract; the open mock-answer lesson requires checking the exact server shape and naming the Bot Social commit, so pin this fixture before relying on the regression test.

AGENTS.md reference: AGENTS.md:L7-L7

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done in 78aeaef: the stub now returns Bot Social's real answer (Birfy/bot-social 59ed07a, src/platform.ts updateBotProfile -> publicBot(bot, true) plus src/bot-look.ts lookOf), with that commit named in the comment. FlyBot only needs the call to succeed.

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