Skip to content

Keep a same-named friend's Bot off the local look - #1078

Merged
Birfy merged 1 commit into
mainfrom
cursor/friend-chief-avatar-1069-45bf
Oct 25, 2026
Merged

Birfy merged 1 commit into
mainfrom
cursor/friend-chief-avatar-1069-45bf

Conversation

@Birfy

@Birfy Birfy commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Written-by: Dev

Owner: Birfy
Reviewer: Reviewer

Fixes #1069

What changed

A friend Bot that shares a local Bot's display name was drawn with that local Bot's picture. Two default Chiefs both store the blue whale, and lookAvoidingLocals left a published preset alone, so the friend row and the local Chief were the same avatar. The orange Main Bot star and the globe after the friend name were the only differences.

A published preset now steps its shape when it is the same drawn look as a local Bot of the same display name. The local Bot keeps its stored look. A differently named friend keeps the picture it published. An image or emoji stays.

The draw decision is lookAvoidingLocals in core/src/client/characters.js, used by BotMark.

Verification at the tip

Tip SHA: 4ce59ea

Defect test: a friend Bot that shares a display name does not wear that local Bot's look (#1069) failed on the unbroken tip (same display name must not share the drawn look, core/test/looks.test.js) and passes at this tip.

Ran:

  • node --import ./test/harness-resolve.mjs --test --test-name-pattern '#1069' test/looks.test.js on the unbroken tip — fail (1).
  • TZ=UTC npm run verify on Node v22.23.4 — pass. arch-docs OK (10 files). core 1412, social 453, tree 125, timeline 125, github scripts 417, interop 37, live-e2e 16.
  • node scripts/ds-bot-patches.mjs check — pass (inside verify).

Not run (and why):

  • dev/bench.sh smoke. Display-only client code. No core/index.js or core/src/host/ change.

No CHANGELOG.md edit and no version bump. User-visible note is changelog.d/1069-friend-chief-avatar.fixed.md.

Open in Web Open in Cursor 

Two default Chiefs both store the blue whale, so a friend row named
Chief drew the same picture as the local Chief. Step that published
preset when the display names match. The local Bot keeps its stored
look, and a differently named friend keeps the picture it published.

Fixes #1069

Co-authored-by: Danyang Chen <birfychen@gmail.com>
@cursor

cursor Bot commented Oct 25, 2026

Copy link
Copy Markdown

Verdict: PASS at 4ce59ea
Written-by: Birfy

Ran:

  • node --import ./test/harness-resolve.mjs --test --test-name-pattern '#1069' test/looks.test.js on the unbroken tip — fail (1): same display name must not share the drawn look
  • node --import ./test/harness-resolve.mjs --test test/looks.test.js at 4ce59ea — pass (7)
  • TZ=UTC npm run verify at 4ce59ea on Node v22.23.4 — pass. arch-docs OK (10 files). core 1412, social 453, tree 125, timeline 125, github scripts 417, interop 37, live-e2e 16
  • node scripts/ds-bot-patches.mjs check — pass (inside verify)

Not run:

  • dev/bench.sh smoke — display-only client change; no core/index.js or core/src/host/ edit

The defect test is red on the unbroken tip and green at this tip. A published preset that matches a local Bot of the same display name steps its shape; the local Bot's stored look is unchanged; a different name, a different look, an image, and an emoji stay.

@Birfy Birfy added the agent-pr Pull request opened by an agent label Oct 25, 2026 — with Cursor
@Birfy

Birfy commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator Author

Verdict: PASS at 4ce59ea
Written-by: Reviewer

Fixes #1069. Same-named friend Bot steps shape so it does not wear the local Bot look; local look unchanged. Regression in core/test/looks.test.js. No CHANGELOG.md / version (changelog.d fragment only). No risk:T* label.

Ran:

  • TZ=UTC npm run verify → pass (core 1412, social 453, tree 125, timeline 125) at tip
  • CI tests-ok / ubuntu-latest Node 24 → SUCCESS

@github-actions github-actions Bot added the pass label Oct 25, 2026
@Birfy
Birfy added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit 43e5579 Oct 25, 2026
11 of 13 checks passed
@Birfy
Birfy deleted the cursor/friend-chief-avatar-1069-45bf branch October 25, 2026 02:05
cursor Bot pushed a commit that referenced this pull request Oct 25, 2026
Keep the #1058 task board and take main's same-name friend look (#1069 / #1078) and the Revoke confirmation (#1073 / #1079). The generated client-bundle hunk header was the conflict; the bundle was rebuilt from the merged client sources and the patch regenerated so it applies.

Fixes #1058

Co-authored-by: Danyang Chen <birfychen@gmail.com>
@github-actions github-actions Bot removed the agent-pr Pull request opened by an agent label Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Friend Chief avatar identical to local Chief (possible #965 regression)

2 participants