Skip to content

fix: name earlier peers in search and the reply bar - #9

Merged
nerdstep merged 1 commit into
mainfrom
search-names
Nov 26, 2026
Merged

nerdstep merged 1 commit into
mainfrom
search-names

Conversation

@nerdstep

Copy link
Copy Markdown
Owner

Summary

PR #6 gave messages from an earlier peer their own name in the transcript. Search and the reply bar still used the current peer's name for them. Now both go through namer, as the transcript does.

 SearchResults
-  header: author === me ? 'You' : peerName
-  action: author === me ? myName : peerName
+  header: nameOf(author)        // namer(people, myId, peerName)
+  action: actorOf(author)       // namer(people, myId, peerName, myName)
 Composer, reply bar
-  "Replying to {peerName}" · action: peerName
+  "Replying to {nameOf(author)}" · action: actorOf(author)

namer gains an optional name for me (default "You"), so an action reads "Alex waves" and not "You waves".

Evidence

  • people.test.ts gains the case "an action names me by my name".
  • Checks: bun run check, bun run test and bun run build pass.
  • Not tried in the app. It only shows after pairing with someone new.

Merge Danger

Door: two-way

Blast Radius: names

Only which name search and the reply bar show.

🤖 Generated with Claude Code

A search match, or a reply being written, on a message from someone this computer
was paired with before named them after the current peer. Both now name authors
through namer, as the transcript does. namer takes the name to use for me, so an
action reads "Alex waves" rather than "You waves".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nerdstep
nerdstep merged commit 530d285 into main Nov 26, 2026
3 checks passed
@nerdstep
nerdstep deleted the search-names branch November 26, 2026 02:06
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