Repository navigation
feat(bots): bots call you only by the name you give, or none - #2489
Merged
Merged
Conversation
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.
Collaborator
Author
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.







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.settings.profile.ownerAddressholds the name (ornull), whether each setup field was shown, and the one chat ask. OnlyOwnerAddresswrites 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 setand a whole settings object sent back by an older window can't change it.ownerAddress.setandownerAddress.shownanswer only a Mousse window on this computer: the CLI, agents and other computers are refused.usernameis 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.usernamestays 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 to call the owner: "Sam".orWhat 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 withsave_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."[[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.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.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.docs/bots.md,docs/bot-memory.md,docs/plans/bot-context.md§5.1, §9 and §15,docs/CONFIGURATION.mdandsettingsClassification.ts.How to review
src/shared/ownerAddress.tsandsrc/mms/settings/OwnerAddress.ts: the record, the migration rule, the claims and the spent receipt.MousseConfigStore.replaceProfileKeyholds the write order.src/mms/settings/SettingsStore.ts:profiledropped fromsetand from defaults.src/mms/protocol/handlers.ts: the two window-only methods.src/mms/bots/ownerInvitation.ts,contextPack.ts(owner line, ask line, frozen pack version),BotEngine.postReply(the name question) andBotEngine.saveOwnerName,appTools/bots.ts,catalogue.ts.OrchestratorService.shownMessageand the end of a bot turn keep the marked line out of the home thread's messages.src/renderer/lib/ownerAddress.ts, thenGeneralSettings.tsx,Onboarding.tsxandNewBotDialog.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).
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, andnet/bridge/remote/remote.test.ts(whose SIGKILL test hitSTACK_TRACE_ERRORin 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.tstsc --noEmit -p tsconfig.node.jsontsc --noEmit -p tsconfig.web.jsonsettings.setcan'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;save_owner_namerefuses text the owner didn't type, saves what they did, and takes "小明" from "请叫我小明";replacesonly withsetup;nullname, "Ana" saved and stayed after a reload.atomicWriteJson.Council review
Notes
### [[ask-name]]) and escaped brackets stay as written, and a question that ends in emphasis can lose its closing mark.[[makes the marker check slow; only a runaway reply writes one.replacesand is refused; the toast says so.bots.chat.send(issue Person-only methods trust a connection's self-declared gui label, which any local client with the owner token can claim #2052), a claim retried on every eligible turn while the settings file can't be written, and a name saved on Welcome staying after Back and emptying the field.save_owner_nameandbot_offerare both in the chat's tools. Open PRs fix(providers): open remote sign-in on the computer you are using #2495, fix(antigravity): restore Mousse tools on restart wakes #1790, Faster turn snapshots (incomplete) #1747, feat(teams): messages and queued items from another person carry their author #871, feat(teams): one access decision for routed calls from teammates, off by default #868, perf(browser): a hidden Browser panel and the chat's access card stop polling agents' browser access #822, feat(models): model catalog updates download between releases, signed and checked #542 and feat(models): a thread whose model is no longer offered moves to the newest model of its family #541 overlap only in large shared files (handlers.ts,OrchestratorService.ts,MmsProfileServices.ts,protocol/types.ts,bridge/routed.ts,docs/CONFIGURATION.md).No issue