Skip to content

feat(bots): bots call you only by the name you give, or none - #2489

Merged
TheAnimatrix merged 14 commits into
masterfrom
what-bots-call-you
Nov 30, 2026
Merged

TheAnimatrix merged 14 commits into
masterfrom
what-bots-call-you

Conversation

@TheAnimatrix

@TheAnimatrix TheAnimatrix commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Every profile got a random two-word name ("Wobbly Pickle") the first time its settings loaded, and every bot was told "The owner is Wobbly Pickle." Nothing in the app showed that name, and there was no way to tell bots what to call you.

Change

Bots now use one name the owner gave, or none. Design and as-built details: docs/plans/what-bots-call-you.md.

  • One record, one writer. settings.profile.ownerAddress holds the name (or null), whether each setup field was shown, and the one chat ask. Only OwnerAddress writes it. It writes the file first and changes the live copy only after that, so a failed write keeps the old value. settings.set, mousse config set and a whole settings object sent back by an older window can't change it. ownerAddress.set and ownerAddress.shown answer only a Mousse window on this computer: the CLI, agents and other computers are refused.
  • The random name is gone. The generator is deleted. On upgrade, the old username is read once from the file as it is: a name the generator could not have made is kept; a generated, blank or missing one becomes unset. username stays in the file for older versions, and an older version opening the profile keeps the new record. Packs frozen before the upgrade are built again at their turn's next dispatch, so a waiting run never hears the old name again.
  • What bots are told. Every pack's situation has What to call the owner: "Sam". or What to call the owner: no name is set, so use none. A running chat hears a change on its next turn. The base instructions say to use only that name, never guess one or take one from memory, and to save one the owner gives with save_owner_name. Changelog entry 45: "Your owner's name now comes only from your situation. If none is set, use no name, even if you used one before."
  • One ask in chat. While no name is set, the first greeting or reply to the owner from any bot on the profile is told, in that reply only, to ask what to call them and to put the question on its own last line, marked [[ask-name]]. Mousse posts that line as a message of its own after the reply; when the bot marked none, it posts "What should I call you?" there instead. A reply that only asks about the task ("Which inbox should I check?") or is only a question card never counts as asking.
    • The marker counts only at the start of a line, in any case, with spaces inside, more than once, and inside simple Markdown (bold, a code span, a list bullet); its leftover marks go with it. Windows line endings read the same, and a reply that ends in the middle of a marker loses it. A marker inside a sentence or a fenced code block stays as written.
    • On a turn without the ask (a name already set, or the ask spent by another bot), a marked name question is dropped; a reply with nothing else posts nothing.
    • The marked line never shows in the chat while the reply is written: the home thread's message events, which windows, phones and other computers get, carry the reply without it, or a marker still being written, and the home thread's stored row drops it once the turn ends. The chat's live reply, a stopped reply and voice read-aloud drop it too. Work threads are never filtered.
    • The ask is recorded as spent in the profile record (spentAt) as that question is posted. Clearing a chat, resetting or deleting a bot never reopens it; only clearing the name in Settings does, once.
    • A turn holds the ask until its question is posted or it ends with nothing more to post, including the few seconds its final words can arrive late, so a second bot can't ask in between. Work, schedules, wake-ups, threads and other bots never ask.
  • Saving from chat. save_owner_name { name } is a chat-only tool, listed directly on every runtime. It saves only when one message the owner typed in that turn has the name as words of its own ("Sam" is not in "Samantha"; in Chinese, Japanese and Korean the letters around a name don't count). Tapped answers, work, other bots and pages can't set it. Its description says never to use it for a name the owner mentions about someone else.
  • Where the owner sets it.
    • Set up Mousse → Welcome: "What should bots call you?" (optional).
    • New bot → What it does: the same question, while no name is set and no bot has asked yet. It isn't shown, or used up, while another computer can be picked under Lives on. The bot is still made if the name isn't saved, and its chat says why.
    • Settings → General: a new first group, You, with "What bots call you". It saves on Enter or blur, Escape puts back the saved name, and a failed save says so in the row.
    • Each setup field shows once per profile, only in the one window that claims it; a window keeps its claims per profile. Welcome and New bot save only while no name is set, so an older draft never overwrites a name saved since. Welcome may correct the name it saved itself, and a toast says when its save was refused. A name typed in New bot stays when the dialog is closed on a later step and is saved on Create bot. The New profile dialog doesn't change.
  • Docs. docs/bots.md, docs/bot-memory.md, docs/plans/bot-context.md §5.1, §9 and §15, docs/CONFIGURATION.md and settingsClassification.ts.

How to review

  1. src/shared/ownerAddress.ts and src/mms/settings/OwnerAddress.ts: the record, the migration rule, the claims and the spent receipt. MousseConfigStore.replaceProfileKey holds the write order.
  2. src/mms/settings/SettingsStore.ts: profile dropped from set and from defaults. src/mms/protocol/handlers.ts: the two window-only methods.
  3. Bots: src/mms/bots/ownerInvitation.ts, contextPack.ts (owner line, ask line, frozen pack version), BotEngine.postReply (the name question) and BotEngine.saveOwnerName, appTools/bots.ts, catalogue.ts. OrchestratorService.shownMessage and the end of a bot turn keep the marked line out of the home thread's messages.
  4. Renderer: src/renderer/lib/ownerAddress.ts, then GeneralSettings.tsx, Onboarding.tsx and NewBotDialog.tsx.

The risk is in the migration (a typed name must survive, a generated one must not) and in the ask (exactly one per profile, never repeated after a restart, a cleared chat or a removed bot).

Verification

Tier 5 (settings migration, a bot tool and its grant, the context pack, window-only protocol methods).

  • Tests, on this branch with master merged in (head 13886cd): 83 files, 2,731 tests. 3 known failures (Bot hello ceiling and page-write symlink tests fail on master #2444 twice on Windows only, Two remote Bridge tests fail on Windows: SIGKILL exit signal and a large thread list timing out #1980) and 1 timeout under load: mmsProtocolServer > "refuses a change sent again after 100 later changes pushed its answer out" (timeout after 99 changes). That file then passed 43/43 on its own, and net/bridge/remote/remote.test.ts (whose SIGKILL test hit STACK_TRACE_ERROR in the run before) passed 15/15:
    npx vitest run tests/ownerAddress.test.ts tests/bots/whatBotsCallYou.test.ts tests/bots/memory/ownerNamePack.test.ts tests/renderer/ownerNameSettings.test.ts tests/renderer/firstRunSetup.test.ts tests/renderer/newBotDialog.test.ts tests/pillSettings.test.ts tests/bots/memory/botContextPack.test.ts tests/bots/memory/botReactionsPack.test.ts tests/bots/botHelloCeiling.test.ts tests/run/toolAuthorityParity.test.ts tests/renderer/settingsSearch.test.ts tests/bots/botActions.test.ts tests/bots/botChangelog.test.ts tests/bots/botInstructions.test.ts tests/bots/botPhaseOneWording.test.ts tests/bots/botManifest.test.ts tests/bots/botAuthority.test.ts tests/bots/botKnowsPermissions.test.ts tests/bots/botChips.test.ts tests/bots/botPhase1Integration.test.ts tests/bots/botsProtocolV2.test.ts tests/renderer/settingsControls.test.ts tests/platformProfiles.migration.test.ts tests/platformProfileStoreInjection.test.ts tests/gitAccessTable.test.ts tests/net/bridge/routed/table.test.ts tests/referenceMetadata.test.ts tests/harness/twoProfiles.test.ts tests/generalSettingsProtocol.test.ts tests/platformRequestFailures.test.ts tests/guiIpcThreadRouting.test.ts tests/renderer/lazySurfaces.test.ts tests/renderer/botsSection.test.ts tests/bots/botWork.test.ts tests/bots/botReplyParts.test.ts tests/bots/memory/botChatEpochPack.test.ts tests/renderer/botNoModelNames.test.ts tests/rendererEntryBudget.test.ts tests/protocolMultiClient.test.ts tests/run/botAppTools.test.ts tests/bots/botModelSlots.test.ts tests/bots/botWorkSubagents.test.ts tests/bots/memory/botAvailableHistory.test.ts tests/bots/memory/botChatDigest.test.ts tests/bots/memory/botItems.test.ts tests/bots/memory/botMemoryEveryTurn.test.ts tests/bots/memory/botWakeJournal.test.ts tests/run/botThreadTools.test.ts tests/wakes/threadWakeTools.test.ts tests/bots/botChatEpochs.test.ts tests/bots/botLanes.test.ts tests/bots/botScheduleDone.test.ts tests/bots/botCards.test.ts tests/skillsMcpSettings.test.ts tests/bots/botChatQuickCalls.test.ts tests/run/botComputerRequest.test.ts tests/projectColorsDefault.test.ts tests/protocolValidation.test.ts tests/bots/botReplyFinalMessage.test.ts tests/secrets/secretRequestNoLeak.test.ts tests/threadScopedEvents.test.ts tests/protocolMessageAppend.test.ts tests/net/bridge/remote/botStreams.test.ts tests/renderer/remoteBots.test.ts tests/voiceTargets.test.ts tests/renderer/pillVoiceChat.test.ts tests/renderer/botChatView.test.ts tests/mmsProtocolServer.test.ts tests/net/bridge/routed/streams.test.ts tests/net/bridge/remote/remote.test.ts tests/questionPreemptSend.test.ts tests/run/finishWhileRepositoryBusy.test.ts tests/run/queueSteerExactlyOnce.test.ts tests/inviteAsks.test.ts tests/bots/botOfferAccessStore.test.ts tests/bots/offeredMessages.test.ts tests/net/bridge/remote/botDeviceAccess.test.ts tests/netEngine/checks/offeredMessagesOneWay.test.ts tests/renderer/botOfferCard.test.ts tests/harness/providerProtocol.test.ts tests/net/bridge/routed/remoteProviders.test.ts tests/remoteSignInBroadcast.test.ts
  • PASS typecheck:node: tsc --noEmit -p tsconfig.node.json
  • PASS typecheck:web: tsc --noEmit -p tsconfig.web.json
  • What the tests prove:
    • the migration table, all 400 generator outputs, and an older version's settings save keeping the record;
    • settings.set can't change the record, a failed write keeps the old name, and the CLI, another computer and a caller with no connection are refused both window methods;
    • the owner line in each state, and the first chat pack through the profile's own wiring: no name, and the ask on the first bot's greeting only;
    • the name question as its own message after a greeting that asks about the task, the bot's own marked question, and a marked line on another turn never showing;
    • clearing the chat, resetting and deleting the bot that asked never reopen the ask; clearing the name does, once;
    • a second bot can't take the ask while the first one's final words are still on their way (this fails with the wait check removed);
    • a reply that is only a question card spends nothing; a restart after the question was posted never asks again;
    • packs an older build froze, a run's and a running chat epoch's, are built again without the old name (this fails without the version check);
    • save_owner_name refuses text the owner didn't type, saves what they did, and takes "小明" from "请叫我小明";
    • a setup field shows only in the window that claimed it, a setup save keeps a name saved since, and New bot neither shows nor uses up its field while another computer can be picked;
    • a marked reply streamed through the real orchestrator to a bot's home thread: no message event and no stored row holds the marker, the start of one or the question, and the reply the chat reads keeps it; the live bubble shows none of it at any streamed length, nor does any prefix of four marked replies;
    • the marker in bold, a list item, a code span, capitals and with inner spaces, twice, alone with its question on the next line, with Windows line endings (alone and on its own last line, also at every streamed length), and a reply ending in the middle of one; kept when inline, quoted or in a code block, closed or not, at every streamed length;
    • a code block's marker in a chat reply, and a marked work report, stay as written in their thread and in every message event;
    • on a turn without the ask, a marked name question is dropped: a reply that is only that posts nothing, after another bot spent the ask and after a name was set while the greeting was written;
    • Welcome corrects the name it saved itself, and says so when a name saved elsewhere first stays; a Retry of a failed save never replaces a name corrected since; the service takes replaces only with setup;
    • after a window moves to another profile, that profile's claim decides; a name typed in New bot survives closing on Runs on and is saved on Create bot;
    • a chat epoch's update an older build froze and never sent is built again from where it started, keeping the work report it held; an epoch's start is built again as a start;
    • each round 2 and round 3 test fails with its fix taken out.
  • In the dev app (fresh isolated profile, driven over the DevTools protocol):
    • Welcome claimed and showed the field; a second claim was refused; "Sam" + Get started saved it; a later setup save of another name was refused and "Sam" stayed.
    • Settings → General: You first; edits saved "Samantha", emptying gave "Not set" and a null name, "Ana" saved and stayed after a reload.
    • New bot → What it does: the field showed with its label, placeholder and 12px gap, and this window held the claim (a second claim was refused). Setting a name hid it; clearing it brought it back.
    • The window was behind other windows, so this round has no new screenshots; the fields look as in the earlier before/after comment.
    • The live bubble was not rechecked in the dev app after rounds 2 and 3: a bot turn needs a signed-in provider, which the isolated profile doesn't have. The orchestrator and bot chat tests above cover it.
  • Not checked: a bot that lives on another computer, a reply from the phone, how real models word the question and use the marker, and a failed write on Windows' copy fallback in atomicWriteJson.

Council review

Round Reviewers Result
1 Reviewer 1, 2 and 3: changes requested 11 fixed, 2 declined (see Notes)
2 Reviewer 1, 2 and 3: changes requested 7 fixed, 4 left as notes (see Notes)
3 Reviewer 3: approve. Reviewers 1 and 2: changes requested 6 fixed after the round as few-line fixes with tests, plus narrower docs; the rest left as notes (see Notes)

Notes

No issue

The random two-word username is gone. One record on the profile,
settings.profile.ownerAddress, holds the name the owner gave (or none),
written only by OwnerAddress: the file first, then the live copy, so a
failed write keeps the old value. settings.set and mousse config set
can't change it. An upgraded profile keeps a name the generator could
not have made; a generated or blank one becomes unset.

Every bot's situation says what to call the owner, or that no name is
set. While none is set, the first greeting or reply of one bot on the
profile asks once, in its own words, and the ask is spent when that
reply is posted. save_owner_name saves a name only from a message the
owner typed in that chat turn.

The owner sets it on Set up Mousse's Welcome page, on New bot's What it
does step, and in Settings > General > You.
@TheAnimatrix

Copy link
Copy Markdown
Collaborator Author

Before and after, real app captures in Mousse Dark.

Set up Mousse → Welcome

Before After
Welcome before Welcome after: optional "What should bots call you?" field

New bot → What it does

Before After
New bot before New bot after: "What should bots call you?" under "What should it do?"

Settings → General

Before After
Settings General before Settings General after: You group with "What bots call you"

New profile is unchanged:

New profile dialog, unchanged

…ow-only setup writes

The turn that holds the ask posts the bot's marked name question (or Mousse's) as a message of its own and records it as spent in the profile record. Clearing a chat or removing a bot never reopens it; only clearing the name does. A claim is held until its turn's final reply posts or it ends without posting. Packs frozen before the upgrade are built again. ownerAddress.set and ownerAddress.shown answer only a Mousse window on this computer; setup saves keep a name set since, and only the window that claims a setup field shows it. Name matching works in scripts without spaces.
…and the setup claim

Covers a greeting that asks about the task, the bot's marked question, clearing, resetting and deleting the bot that asked, a late final reply with a second bot, a question card alone, packs an older build froze, CJK names, the CLI refused, and the first chat pack through the profile's own wiring. Fixes the multi-client settings tests and the bots tool family list.
… save_owner_name is a core chat tool

Rewrites docs/plans/what-bots-call-you.md as built, without its process history, and updates docs/bots.md, CONFIGURATION.md and bot-context.md. save_owner_name is listed directly on every runtime (its description trimmed), so the chat lane's hello ceiling on Codex and Pi rises to 62,700 and the pinned tool table gains it for the catalogue chat turn.
…lcome corrections, per-profile claims, New bot reopen

A bot's home-thread messages go out without the marked name question line (or its first characters while written), so the live bubble, voice, stopped replies and another computer's or phone's stream never show it; the home thread keeps the reply without it. The marker is matched at a line start in any case, with spaces and Markdown marks around it; a marked line alone on a turn without the ask is posted as words. The Welcome field may replace the name it saved itself and says when a save was refused; setup-field claims are kept per profile; a name typed in New bot survives closing and reopening on a later step. An older build's frozen epoch update is built again from where it started, so its chat rows aren't skipped.
…s, the home thread, a setup correction and old frozen deltas
…e switch, and the live bubble over streamed prefixes
… never shows it, Welcome corrections, claims per profile and old frozen updates
… unfinished markers, never code; only chat replies are filtered, and a turn without the ask drops it
…d; docs say which reads leave out the name question
# Conflicts:
#	src/mms/bots/grants/compile.ts
#	tests/bots/botFixture.ts
#	tests/run/botAppTools.test.ts
@TheAnimatrix
TheAnimatrix merged commit 3da52e6 into master Nov 30, 2026
11 checks passed
@TheAnimatrix
TheAnimatrix deleted the what-bots-call-you branch November 30, 2026 21:11
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