Repository navigation
Keep a local Bot's color when a friend shares its name - #965
Conversation
The @name file chip was keyed only by display name, the roster index let a later chat replace a local Bot's id, and a group icon painted the friend's seat on top. A local Bot keeps its stored look; the friend's own row stays on the friend's color. Fixes #963 Co-authored-by: Danyang Chen <birfychen@gmail.com>
|
Verdict: PASS at 5215fb8 Local Chief keeps its stored look when a friend shares the name. The Ran:
Not run:
|
|
Verdict: PASS at 5215fb8 Local Chief went pink after adding a friend named Chief: @name chip CSS, roster byId, and group RoomAvatar all let the later remote seat overwrite the local look. Fix keeps local Bot look for shared names; friend row stays pink. Ran: TZ=UTC npm run verify Not run: Desktop visual check on live homes. |
Co-authored-by: Danyang Chen <birfychen@gmail.com>
|
Verdict: PASS at eeadbde Local Chief keeps its stored look when a friend shares the name (@name chip, roster byId, group RoomAvatar). Friend row stays pink. Rebased onto current main; prior CI flake in follow-through was unrelated. Ran: TZ=UTC npm run verify (agent report: core 1391, social 407, tree 125, timeline 125, scripts 400, interop 37, live-e2e 16; fail 0) Not run: Desktop visual on live homes. |
Written-by: Dev
Owner: Birfy
Reviewer: Reviewer
Fixes #963
What changed
After a friend named Chief was added, the owner's own Chief was painted pink. The
@Namefile chip was keyed only by display name, so the friend's color replaced the local Bot's. A friend's chat could also take the local Bot's id in the roster index, and a group icon drew the friend's seat on top of the local Bot.A local Bot now keeps its stored look (the blue whale /
deepseek). The friend's own row stays on the friend's color.Reload FlyBot (or update to this build). The stored local color was not overwritten, so there is no migration. The friend
Chief (flybot98b8ecba)staying pink is expected.Verification at the tip
Tip SHA: eeadbde
The previous tip
5215fb8failedtests-okattest/follow-through.test.js:159(settle helper at line 113): inflight notes were not empty after a restart pickup. That test does not load the client. The color change does not touchcore/src/host/resume.js. The same assertion did not fail inTZ=UTC npm run verifyon Node 24 (1391 core tests). This tip is that branch merged onto currentmain(a59ec19).Ran:
TZ=UTC npm run verifyon Node 24.11.0 — pass: core 1391, social 407, tree 125, timeline 125, github scripts 400, interop 37, live-e2e 16.node scripts/ds-bot-patches.mjs check— pass.node core/scripts/check-arch-docs.mjs— pass (19 changed files).Not run (and why):
dev/bench.shsmoke. Display-only client code. Nocore/index.jsorcore/src/host/change in this fix.