[PR #7422] [MERGED] feat(chat-profiles): ask to update other chats when saving a profile #7728

Closed
opened 2026-10-24 04:06:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7422
Author: @SpicyMarinara
Created: 10/11/2026
Status: ✅ Merged
Merged: 10/11/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/profile-save-updates-chats


📝 Commits (10+)

  • beb046b feat(chat-profiles): ask to update other chats when saving a profile
  • f88b69c fix(chat-profiles): load the chat list before counting profile followers
  • d3e11a2 fix(chat-profiles): keep each chat's own state when a profile updates other chats
  • 64dbea3 fix(chat-profiles): count profile followers from a fresh chat list
  • 3384d02 fix(chat-profiles): keep backgrounds and turned-off lorebooks in profiles, protect them only for other chats
  • 889064f Merge remote-tracking branch 'origin/staging' into feat/profile-save-updates-chats
  • 1ce0250 fix(chat-profiles): update other chats from a list of Chat Settings only
  • c320fde fix(chat-profiles): keep narrator-only commands and Noodle's permission per chat
  • cdf969f fix(chat-profiles): update parameters only on the profile's connection and leave set-up agents per chat
  • efa344a docs(chat-profiles): list what Save and update copies and what each chat keeps

📊 Changes

11 files changed (+1090 additions, -22 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/chats/chat-settings.md (+1 -1)
📝 docs/chats/settings-profiles.md (+31 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+50 -4)
📝 packages/client/src/hooks/use-chat-presets.ts (+16 -0)
📝 packages/client/src/localization/locales/en.json (+11 -0)
📝 packages/server/src/routes/chat-presets.routes.ts (+15 -0)
📝 packages/server/src/services/storage/chat-presets.storage.ts (+133 -14)
📝 packages/shared/src/types/chat-preset.ts (+225 -1)
📝 packages/shared/src/types/chat.ts (+1 -1)
➕ scripts/regressions/chat-profile-followers.regression.ts (+606 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7409

Docs follow-up: #7423

Why this change

  • A chat settings profile is shared by many chats, but each chat keeps its own copy of the settings. Saving the profile only changed the profile, so other chats that use it kept their old settings and drifted out of sync. To bring a chat back in line, you had to open it, pick another profile, then pick the first one again, chat by chat (#7409).
  • Scoping found a leak too: saving a profile also captured one chat's running state (its multiplayer room, Advanced Memory upkeep, macro variables, disabled members, autonomous counters, character statuses and about-me text). Applying the profile then copied that state into other chats and wiped their own.
  • Why an allowlist (maintainer decision, 2026-10-11). Rounds 2 to 4 protected other chats with a blocklist of keys a follower keeps. Every review round found more per-chat state it missed: Decision timers, the Hierarchical Maps shared-world link, the Author's Note, the Tracker Panel's featured characters, the Conversation setup flag, and PixelForge's save. Chat metadata is open-ended (packages add keys the Engine never sees), so a blocklist can't be complete. Save and update now copies only a fixed list of Chat Settings, and every other key of the other chats stays exactly as it was.
  • The rule for this PR: updating other chats changes only their Chat Settings. Applying a profile to a chat by hand, and saving a profile, behave as on staging for real user settings; only running state changes there.

What changed

  • Ask on save. When other chats of the same mode still use the profile, Save current chat settings into this profile opens the existing stacked-button choice dialog with Save to this profile only, Save and update N other chats and Cancel. Its message is one sentence: "Updating other chats replaces their own changes to these settings." When no other chat uses the profile, Save works as before, with no dialog. Save counts from a freshly fetched chat list (one GET /chats, no retries), so chats changed in another window are included; if that request fails, it counts from the last loaded list at once. After an update, a toast says how many chats changed ("Updated 3 other chats"), and the affected chat queries are invalidated.
  • Errors. If the profile itself fails to save, the toast says "Could not save the profile." (on both paths; staging's Save failed silently). If some chats fail to update, the others are still updated and the toast says "Could not update N other chats."
  • What an update changes (allowlist). CHAT_PROFILE_FOLLOWER_SYNC_KEYS in packages/shared/src/types/chat-preset.ts lists every key Save and update may change. applyToChat(…, { asFollower: true }) first builds the metadata an apply by hand would write (system defaults, the profile, translator settings, the chat's preserved keys). It then starts from the follower's own metadata and gives each listed key that value (round 8). So a listed key the profile has no value for goes back to its default, exactly as picking the profile again does (the workaround #7409 describes): it is removed, or set to the default an apply writes (enableAgents: true, activeToolIds: [], chatSettingsHintDismissed: false, the app's translator defaults). Because Save always snapshots the saving chat's whole metadata first, "no value" means the saving chat uses the default. For translator settings that default is the app's translator default, as when picking the profile again; a saving chat made before those defaults were saved may still use the built-in ones (see Follow-ups). The exceptions an apply by hand already has carry over: a profile without windowLayout, sceneVideoConnectionId, agentPromptTemplateIds or customAgentImageSettings leaves the chat's own. advancedMemory takes the profile's settings while the follower keeps its own knowledgeStarts, knowledgeConfirmed and narratorCharacterId. Some keys copy only in part. chatParameters, imageCaptioningEnabled and imageCaptioningConnectionId reach a follower only when its connection equals the profile's connectionId: Advanced Parameters are saved as differences from that connection's defaults, and image captioning without a value uses the chat's own connection's defaults (round 9). conversationSchedulesEnabled changes only when the profile has true or false, because without a value schedules run whenever the chat's own characters have one, so removing a follower's false would turn its schedules back on (round 9). activeAgentIds takes the profile's agents except Knowledge Retrieval, Knowledge Router, Lorebook Keeper and Expression Engine, which stay on or off as the follower has them, because their per-chat setup (knowledgeAgentSources, lorebookKeeperTargetLorebookId, spriteCharacterIds) is not copied. agentPromptTemplateIds takes the profile's templates except for those four agents, whose templates stay the follower's (round 8). The resulting agent list can be empty; an empty list runs no agents, which matches the profile (round 8 removed a guard that assumed the opposite, and corrected the ChatMetadata.activeAgentIds doc comment that said so). Translator settings are read through normalizeTranslatorSettings, so an older profile's translationTargetLang/translationPrompt still reach the follower as the input/output keys. The older names translationTargetLang, translationPrompt and roleplayDmCommandsEnabled are listed too (round 9), so a follower's old value is removed with the new key instead of coming back as the fallback. Each chat keeps its own connection, prompt preset and updatedAt, so background updates don't reorder Home's recent chats. FOLLOWER_OWN_METADATA_KEYS is removed; nothing needs it any more.
  • Server. New route: POST /api/chat-presets/:id/apply-to-followers, body { exceptChatId }, returns { updated, chatIds, failed }. It reuses applyToChat through the asFollower option, so the per-chat metadata queue, mode check and translator handling are shared. Inside each chat's queue, asFollower checks the fresh metadata again and skips a chat that left the profile after the scan. It never writes connectionId, promptPresetId or updatedAt. The route returns 400 for the Default profile, which can't be saved into, and 404 for an unknown profile. Each chat is updated in its own try, so one failure (logged with Pino warn) does not stop the rest or lose the list of chats already changed. It logs one Pino info line with the counts.
  • Shared rule. chatFollowsChatPreset(metadata, presetId) in packages/shared/src/types/chat-preset.ts decides which chats follow a profile. The dialog count (client) and the update (server) both use it, so the two can't drift.
  • Multiplayer rooms are skipped. A chat with metadata.multiplayer (hosted or joined) or multiplayerSetup === true is never updated. That is the same test ChatArea uses to hide Chat Settings in rooms, and the server's presence code uses it too. Why updating them would be unsafe:
    • A room deliberately clears its agents, tools, lorebooks and cross-chat awareness when it is set up (multiplayer/service.ts). Updating it from the profile would turn those back on in a shared session.
    • A joined room is a local placeholder for the host's chat, so profile settings mean nothing there.
    • On staging, applying a profile also deleted the multiplayer key, because it wasn't preserved.
  • Running-state exclusions. Added to CHAT_PRESET_EXCLUDED_METADATA_KEYS, plus PixelForge's two keys in a new CHAT_PRESET_EXCLUDED_PACKAGE_METADATA_KEYS (see the table). The storage layer also excludes any multiplayer* key by prefix, the same rule protectRoomMetadata uses. Excluded keys are also preserved on apply, so applying a profile now keeps the target chat's own copy instead of wiping it.
  • Advanced Memory anchors. advancedMemory stays a profile setting, but its per-chat values knowledgeStarts, knowledgeConfirmed and narratorCharacterId are left out of the profile, and applying a profile keeps the target chat's own values. These are message and character ids from one chat; remapAdvancedMemoryMetadata and the chat wizard already treat them that way.
  • Docs: docs/chats/settings-profiles.md (the "Updating other chats that use the profile" subsection lists which kinds of settings Save and update copies and what each chat keeps, says a setting left at its default in the saving chat goes back to its default in the others, then says Advanced Parameters and image captioning change only on the profile's connection, character schedules change only when the saving chat has them turned on or off, and the four set-up agents stay, with their prompt templates, as each chat has them) and docs/chats/chat-settings.md (one sentence on the Save icon).
  • CHANGELOG entry under [Unreleased].
  • Regression: scripts/regressions/chat-profile-followers.regression.ts.

The follower allowlist (CHAT_PROFILE_FOLLOWER_SYNC_KEYS)

Built by enumerating every chat-metadata write in ChatSettingsDrawer.tsx and what it renders (the features/chat-settings/sections/* sections, RoleplayCommandsSettings, StoryboardChatSettingsPanel, AgentAddSetupFields' buildAgentAddMetadataPatch, AdvancedMemorySettings through its server action, and the Calls and Long-term memory package settings, which write through the drawer's updateMetadata/onChatSettingsChange callbacks; their keys were checked in the local Marinara-Agents checkout). A key is listed only if it is a setting that should match across the chats using one profile. Each entry has a short comment in the code.

Group Keys
Generation and context chatParameters (Advanced Parameters overrides; only for followers on the profile's connection), contextMessageLimit, excludePastReasoning, pastReasoningLimit, lorebookTokenBudget, imageCaptioningEnabled, imageCaptioningConnectionId (both only for followers on the profile's connection), imageCaptioningPrompt, enableTools, forceToolCall, activeToolIds, cardCssMode, scopedRegexMode
Group chats groupChatMode (merged or individual), groupResponseOrder, groupTurnPromptEnabled, groupSpeakerColors, groupSpeakerNamesInHistory
Conversation features crossChatAwareness, autonomousMessages, autonomousDailyCapOverride, characterExchanges, conversationSchedulesEnabled (only when the profile has a value), characterCommands, conversationCommandToggles, imageGenConnectionId (selfie connection), selfieResolution, selfieUseAvatarReferences, selfieIncludeCharacterAppearance, conversationCallsEnabled, conversationCallVoiceCues, conversationCallSummaryConnectionId (Calls package settings), slurp2ActivityContextEnabled
Roleplay commands roleplayCommandsEnabled, roleplayDmCommandsEnabled (older DM switch), roleplayCommandToggles, roleplaySoundConnectionId
Agents enableAgents, activeAgentIds (except the four agents each chat sets up), agentPromptTemplateIds (except the same four agents), customAgentImageSettings, agentWriteApprovalRequired, attachSummariesToAgents, attachLorebooksToTrackers, manualTrackers, manualTrackerAgentTypes
Illustrator and Director illustratorImageConnectionId, illustratorPromptConnectionId, illustratorIncludeCharacterAppearance, illustratorUseAvatarReferences, illustratorAutoBackgroundsEnabled, illustratorImagesPerGeneration, illustratorRunInterval, sceneVideoConnectionId (Scene videos connection, round 6), imageStyleProfileId, narrativeDirectorSecretPlotEnabled, narrativeDirectorSecretPlotRunInterval
Prose Guardian, Lorebook Keeper proseGuardianBannedWords, proseGuardianAvoidInstructions, proseGuardianStyleInstructions, proseGuardianHoldForRewrite, lorebookKeeperReadBehindMessages
Music DJ, Haptics customMusicFolder, spotifySourceType, spotifyPlaylistId, spotifyPlaylistName, spotifyArtist, enableHapticFeedback, hapticSensitivity, hapticIncidentalContact, hapticIntifaceUrl
Expressions (display) spriteDisplayModes, spritePosition, spriteScale, spriteOpacity, expressionSpriteScale, fullBodySpriteScale, expressionSpriteOpacity, fullBodySpriteOpacity, expressionOnlyActiveSprites, expressionAvatarsEnabled
Storyboard (Roleplay) storyboardAgentImageAwareShotPlanningEnabled, storyboardAgentAnimationRefinementTemplateId, roleplayStoryboardAutoGenerateMode, roleplayStoryboardRunInterval, roleplayStoryboardKeyframeCount, roleplayStoryboardAnimationDurationSeconds, roleplayStoryboardPromptConnectionId, roleplayStoryboardImageConnectionId, roleplayStoryboardVideoConnectionId, roleplayStoryboardEpisodeTemplateId, roleplayStoryboardStyleTemplateId, roleplayStoryboardAnimationTemplateId, roleplayStoryboardOutputTemplateId, roleplayStoryboardIncludeCharacterAppearance, roleplayStoryboardUseAvatarReferences, roleplayStoryboardUseNovelAiCharacterPrompts, roleplayStoryboardUsePromptTemplate, roleplayStoryboardImagePromptTemplateId, roleplayStoryboardVideoPromptTemplateId
Long-term memory package longTermMemoryRecallStyle, longTermMemoryBudgetTokens, longTermMemoryMaxChunks
Memory and summaries enableMemoryRecall, advancedMemory (settings only; anchors stay with the chat), summaryConnectionId, summaryMaxTokens, summaryTailMessages, dayRolloverHour, semanticSummaryRetrievalEnabled, semanticSummaryRecentCount, semanticSummaryOlderCount, semanticSummaryMinSimilarity
Translation translationProvider, translationConnectionId, translationTargetLang (older shared language), translationInputTargetLang, translationOutputTargetLang, translationDeeplApiKey, translationDeeplxUrl, translationPrompt (older shared prompt), translationInputPrompt, translationOutputPrompt, autoTranslate, translateInput, showInputTranslateButton, translationDisplayOnly
Display and layout windowLayout (window and button layout; the Save snapshot already captures it on purpose), chatSettingsHintDismissed

129 keys (round 6: four narrator-only audiences and the Noodle permission removed, sceneVideoConnectionId added; round 9: the three older names added). A sanity check confirmed none is in the profile exclusion lists or under the multiplayer* prefix, and the only scene* key, sceneVideoConnectionId, is exempted from that prefix (a key that profiles drop would never reach a follower).

Written by Chat Settings but deliberately not listed (each follower keeps its own):

  • Cast, lorebooks and files: inactiveCharacterIds, spriteCharacterIds, spritePlacements, spriteCharacterVisualSettings, roleplayCommandNarratorId, activeLorebookIds, excludedLorebookIds, knowledgeAgentSources, lorebookKeeperTargetLorebookId, presetChoices, macroVariables, branchName.
  • Authored per-chat text and scenes: customSystemPrompt (pairs with the prompt preset the follower keeps), groupScenarioText, sceneSystemPrompt.
  • Narrator-only audiences (round 6): roleplayRollAudience, roleplayDocumentAudience, roleplayWhisperAudience, roleplayCombatAudience. The value "narrator" only works together with the chat's own roleplayCommandNarratorId (isRoleplayCommandAllowed), which is cast and not copied. Copying it to a chat without that narrator, such as a 1:1 chat, turned those commands off for every character there.
  • noodleTimelineContextEnabled (round 6): "Timeline refreshes may include recent messages from this chat". It is a per-chat permission to share that chat's messages, so each chat gives it itself, the same reason as discordWebhookUrl below.
  • Background (Chat Settings > Background writes it through the UI store).
  • discordWebhookUrl: judgement call. It is the Discord channel this chat's messages are posted to; copying it would send another chat's messages to that channel. Maintainer: say if it should be listed.
  • Game Mode keys (game*, enableSpriteGeneration): Game Mode has no settings profiles (CHAT_SETTINGS_SURFACES.game.showSettingsProfiles is false).

Profile settings changed outside Chat Settings, so not listed (each follower keeps its own; maintainer may want some added): the Chat Summary popover's automaticSummaryEnabled, summaryRunInterval, summaryContextSize and hideSummarisedMessages (the last also needs #7426 first), Appearance's roleplayDisplayStyle, and the global conversationTimeZone (written to every Conversation chat at once). The legacy agentOverrides map has no writer any more.

Keys excluded from profiles, and why

Key Verified in code as Why it can't go in a profile
multiplayer MultiplayerStoredRoom / MultiplayerJoinedRoom (room id, epoch, participants, receipts) Identity of one room
multiplayerSetup, multiplayerSetupComplete, multiplayerGameSetup Set by the multiplayer service and MultiplayerChat while preparing one room Would mark another chat as a room in setup
multiplayerCharacterMemories, multiplayerGameAppliedMessages, multiplayerGameTurn Written only through allowRoomKeys by room runtime Room runtime state
advancedMemoryState "Durable maintenance checkpoint" (job, fingerprint, context starts) Indexes one chat's messages. The wizard already excluded it
macroVariables {{setvar}} values persisted per chat Story state, like the already-excluded agentVariables
inactiveCharacterIds Members disabled in this chat (Disable in chat) IDs of this chat's members
intentCooldowns Last autonomous message time per character and intent Runtime counters
autonomousDailyBudget Daily autonomous counts per character Runtime counters. The per-chat cap autonomousDailyCapOverride is a setting and stays
conversationCharacterStatuses Derived presence per character, rewritten each generation Runtime cache
conversationStatusOverrides Chat cache of the card's manual status overrides (the card is the source of truth) Keyed by this chat's characters
conversationAboutMeOverrides Per-chat about-me text per character or persona, also written by the model's about-me command Chat-owned identity text. conversationAboutMeInject is a setting and stays
advancedMemoryRosterChanges Roster join/leave events keyed by this chat's message ids (chats.routes.ts, advanced-memory-transfer.ts) Indexes one chat's messages
encounterActive Set by the combat encounter routes and the Combat agent A running encounter; losing it drops the combat agent mid-fight
archivedCharacterSnapshots Name and avatar of characters removed from this chat, used by ChatArea for their old messages Chat history identity
conversationSummaryFailures Retry counters of the automatic summary (conversation-history-runtime.ts) Runtime counters
spriteExpressions Current expression per character (ChatArea) Runtime state, like the already-excluded sprite keys
roleplayDmThread, dmOriginChatId, dmOriginChatName, dmOriginMessageId, dmSourceUserMessageId, dmTargetCharacterId Link a Roleplay DM thread keeps to the chat it came from (roleplay-dm-command-runtime.ts) Would mark another chat as a DM thread, or turn a DM thread into a plain chat
decisionTimers (new) DECISION_TIMERS_METADATA_KEY, sticky/cooldown/every state per Decision statement (decision-timers.ts) Turn counters of one chat
spatialSharedWorldLink (new) Hierarchical Maps link from this chat to a shared world (SPATIAL_SHARED_WORLD_LINK_METADATA_KEY) Would join another chat to this chat's world, like the already-excluded spatialContext
trackerFeaturedCharacterKeys (new) TRACKER_FEATURED_CHARACTER_META_KEY, the characters featured in this chat's Tracker Panel Keyed by this chat's characters
conversationSetupComplete (new) Set by the Conversation setup wizard; the server reads it to tell whether a chat has started Would mark a fresh chat as set up. Wizard defaults already excluded it
pixelforge, pixelforgeCorruptExcerpt (new, CHAT_PRESET_EXCLUDED_PACKAGE_METADATA_KEYS) PixelForge's save for this chat and a damaged save kept for repair (Marinara-Agents packages/pixelforge) Package state of one chat. Kept in a separate list because CHAT_PRESET_EXCLUDED_METADATA_KEYS also feeds ENGINE_OWNED_METADATA_KEY_PREFIXES' derivation, and capability-gm-verbs would then reserve the pixelforge namespace from the PixelForge package itself

The scoping list named conversationCharacterStatusOverrides and conversationCharacterAboutMeOverrides. No such keys exist; the real keys are conversationStatusOverrides and conversationAboutMeOverrides, and those are what this PR excludes.

Side effect on the chat wizard: captureChatWizardDefaults reuses CHAT_PRESET_EXCLUDED_METADATA_KEYS, so wizard defaults now leave out these running-state keys too, including the new decisionTimers, spatialSharedWorldLink and trackerFeaturedCharacterKeys (conversationSetupComplete was already out). It does not read the new package list, so PixelForge's keys in wizard defaults behave as on staging. Wizard defaults still capture background and excludedLorebookIds, as on staging (chat-wizard-defaults.ts is unchanged from staging).

Explicit apply and Save compared with staging

Every difference for Save into this profile, applying a profile from the dropdown, a starred profile on a new chat, the wizard's Use a Profile, and applying Default (including after deleting the applied profile):

  • Running-state keys in the table above (including the six new ones) are no longer saved into a profile, are stripped from profiles saved on staging when read, and an apply keeps the target chat's own value. On staging an apply copied the source chat's value or deleted the target's. This also fixes a staging bug where applying a profile to a room deleted its multiplayer key.
  • inactiveCharacterIds, conversationStatusOverrides, conversationAboutMeOverrides are user-editable as well as written by the server (the character-activity agent, the card's status overrides, the about-me tool), so they are not pure runtime state. They stay excluded because they are keyed by this chat's own characters, which a profile never carries. Maintainer: please confirm.
  • Advanced Memory knowledgeStarts, knowledgeConfirmed, narratorCharacterId are no longer saved, and an apply keeps the target's own. They are this chat's message and character ids.
  • sceneVideoConnectionId (round 6), the Illustrator's Scene videos connection, is now saved into profiles. On staging the scene* prefix rule dropped it, so profiles never held it. An explicit apply now sets it when the profile has one. A profile without one (every profile saved before this change, and Default) leaves the chat's own value, as on staging; this is the same rule windowLayout already uses.
  • Everything else is unchanged from staging, including authorNotes/authorNotesDepth (user text: saved, and set by an explicit apply), background, excludedLorebookIds, customSystemPrompt, roleplayCommandNarratorId, lorebookKeeperTargetLorebookId, knowledgeAgentSources, hideSummarisedMessages, the connection and prompt preset, and updatedAt. As on staging, a profile without a background clears the chat's background on apply, and applying Default resets it. Followers are protected from all of these by the allowlist.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Commands the agent ran locally (results are the agent's, not a human check):

Round 9 (head f5c5303ce):

  • pnpm check: exit 0. One existing lint warning in HomeProfessorMariChat.tsx, which this PR doesn't touch.
  • pnpm localization:check: exit 0.
  • chat-profile-followers passes. New checks: a follower on another connection keeps its own imageCaptioningEnabled: false and imageCaptioningConnectionId, also when the profile has imageCaptioningEnabled: true; on the profile's connection it gets true, and its captioning connection, which the profile leaves to the connection, is removed as an apply by hand does; a Conversation follower with conversationSchedulesEnabled: false keeps it when the profile has no value, a follower without one gets none, and a profile with true gives true to both; a follower's roleplayDmCommandsEnabled, translationTargetLang and translationPrompt are removed, DM commands stay off and the input language is en, as in the saving chat; a profile without customAgentImageSettings leaves the chat's own. The "Save and update and applying agree" loop now also covers the three older names.
  • Proof against the previous head: with chat-preset.ts and chat-presets.storage.ts at fa5577950 it fails at "the follower's own roleplayDmCommandsEnabled goes back to the default the saving chat uses"; with only chat-presets.storage.ts at fa5577950 it fails at "a follower on another connection keeps its own image captioning". Mutations, each run alone and then restored: gating only chatParameters fails at "a follower on another connection keeps its own image captioning"; skipping captioning on the profile's connection too fails at "and the same image captioning"; removing the schedule rule fails at "a profile with no schedule choice leaves a chat's schedules off"; always keeping the follower's schedules fails at "the profile's schedule choice"; removing roleplayDmCommandsEnabled, translationTargetLang or translationPrompt from the list fails at "the follower's own goes back to the default the saving chat uses"; removing the customAgentImageSettings preservation fails at "and so does a profile without custom agent image settings".
  • Passing: chat-settings-hint, chat-variables-preset-precedence, profile-import-asset-security, profile-import-data-security, profile-import-noodle, chat-window-defaults, chat-wizard-defaults, roleplay-commands, illustrator-message-range, --filter multiplayer (13 files), --filter conversation (4 files), --filter translat (1 file), --filter caption (1 file), pnpm regression:prompt (3 files).

Round 8 (head fa5577950):

  • pnpm check: exit 0. One existing lint warning in HomeProfessorMariChat.tsx, which this PR doesn't touch.
  • pnpm localization:check: exit 0.
  • chat-profile-followers passes. Changed and new checks: a follower's summaryMaxTokens and translationDisplayOnly, which the saving chat never set, are removed (they were asserted as kept before, the behaviour this round fixes); the follower gets the app's translator default translateInput: true; for every key in CHAT_PROFILE_FOLLOWER_SYNC_KEYS except the two agent keys, Save and update and a later apply by hand give the same value; the follower keeps its own prompt templates for lorebook-keeper and expression, gets the profile's for other agents and not the source's knowledge-retrieval template; a profile whose only agent is knowledge-retrieval turns a ["director"] chat to [] (it asserted ["director"] before, the wrong result this round fixes) and still leaves ["expression"] in a ["director", "expression"] chat; that chat's own contextMessageLimit is removed while its windowLayout, sceneVideoConnectionId and prompt templates stay, because the profile has none; explicit apply keeps the target's Advanced Memory anchors; an unlisted multiplayerFutureState key stays out of profiles and is kept by both paths.
  • Proof against the previous head: with chat-presets.storage.ts at efa344a93, it fails at "the follower gets the profile's prompt templates but keeps its own for agents that need setup". Mutations of the new code, each run alone and then restored: removing else delete next[key] fails at "the follower's own summaryMaxTokens goes back to the default the saving chat uses"; putting the empty-list guard back fails at "Director is off, as in the profile"; dropping the follower's set-up agent templates fails at the prompt-template check; building the follower update without the system defaults fails at "the follower gets the app's translator default"; removing the multiplayer* prefix rule fails at "saving a profile leaves out the chat's own multiplayerFutureState"; disabling the explicit-apply Advanced Memory anchor preservation fails at the anchor checks; disabling the windowLayout/sceneVideoConnectionId rule fails at "a profile saved without a video connection leaves the chat's own".
  • Passing: chat-settings-hint, chat-variables-preset-precedence, profile-import-asset-security, profile-import-data-security, profile-import-noodle, chat-window-defaults, chat-wizard-defaults, roleplay-commands, illustrator-message-range, --filter multiplayer (13 files), --filter conversation (4 files), pnpm regression:prompt (3 files).

Round 7 (head efa344a93):

  • pnpm check: exit 0. One existing lint warning in HomeProfessorMariChat.tsx, which this PR doesn't touch.
  • pnpm localization:check: exit 0.
  • chat-profile-followers passes. New checks: the profile saves chatParameters (with an OpenRouter customParameters.provider object) and every agent; a follower on another connection keeps its own chatParameters; after switching it to the profile's connection it gets the profile's; the follower gets the profile's plain agents but keeps its own lorebook-keeper and knowledge-router and does not get knowledge-retrieval or expression; explicit apply still sets the profile's chatParameters and full agent list; a profile whose only agent is knowledge-retrieval leaves a ["director"] chat's list alone (no empty list) and turns director off but keeps expression in a ["director", "expression"] chat.
  • Proof against the previous head: with chat-presets.storage.ts at c320fde07 (new regression), it fails at "a follower on another connection keeps its own Advanced Parameters".
  • Passing: chat-settings-hint, chat-variables-preset-precedence, profile-import-asset-security, profile-import-data-security, profile-import-noodle, --filter multiplayer (13 files), --filter conversation (4 files), pnpm regression:prompt (3 files).

Round 6 (head c320fde07):

  • pnpm check: exit 0. One existing lint warning in HomeProfessorMariChat.tsx, which this PR doesn't touch.
  • pnpm localization:check: exit 0.
  • chat-profile-followers passes. New checks: the profile saves every shared setting, including sceneVideoConnectionId; a follower gets sceneVideoConnectionId; a follower keeps its own four audiences and noodleTimelineContextEnabled; isRoleplayCommandAllowed stays true for roll, document and whisper on a follower whose character is not the source's narrator; a Conversation follower without these keys gets none; explicit apply sets sceneVideoConnectionId; an older profile without it leaves the chat's own.
  • Proof against the previous head: with chat-preset.ts and chat-presets.storage.ts at 1ce025077 (new regression), it fails at "the profile saves sceneVideoConnectionId". A soft-assert copy (temporary, deleted) showed every new case failing there: the video connection not saved, not copied and not kept on apply; the four audiences and the Noodle permission overwritten on the follower and given to a Conversation follower that had none; roll, document and whisper turned off for the follower's character.
  • Passing: chat-window-defaults, chat-settings-hint, chat-wizard-defaults, experience-state-ordinal, chat-variables-preset-precedence, sprite-background, group-narration-mode-sync, capability-package-chat-controls, open-issues, capability-gm-verbs, game-inventory-turn, spatial-location-reference, roleplay-commands, roleplay-function-calling, --filter multiplayer (13 files), --filter advanced-memory (16 files), --filter conversation (4 files), pnpm regression:prompt (3 files).

Round 5 (allowlist, head 1ce025077):

  • pnpm check: exit 0. One existing lint warning in HomeProfessorMariChat.tsx, which this PR doesn't touch.
  • pnpm localization:check: exit 0.
  • chat-profile-followers passes. It now checks that a follower receives listed keys (contextMessageLimit, chatParameters, activeAgentIds, roleplayCommandToggles, summaryConnectionId, translationProvider, windowLayout, enableAgents, advancedMemory); that its other keys stay and are never deleted, including an unknown someFuturePackageState, decisionTimers, authorNotes, authorNotesDepth, background, excludedLorebookIds, pixelforge, spatialSharedWorldLink, roleplayDisplayStyle and impersonatePrompt; that listed keys missing from the profile (summaryMaxTokens, translationDisplayOnly) keep the follower's value; that explicit apply still sets authorNotes, background and the other chat choices and keeps every running-state key; and that the six new runtime keys are not saved into profiles.
  • Proof against the previous head: with chat-preset.ts and chat-presets.storage.ts at 889064ff3 (regression unchanged), it fails at "saving a profile leaves out the chat's own decisionTimers". A soft-assert copy of the regression (temporary, deleted) listed every failing case on 889064ff3: the six new keys saved into the profile, overwritten on the follower and lost on explicit apply; the follower's authorNotes, authorNotesDepth and someFuturePackageState overwritten; roleplayDisplayStyle, impersonatePrompt, summaryMaxTokens and translationDisplayOnly deleted from the follower; a follower without authorNotes/someFuturePackageState given the profile's; the Conversation follower's own someFuturePackageState and Author's Note replaced.
  • Passing: chat-window-defaults, chat-settings-hint, chat-wizard-defaults, experience-state-ordinal, chat-variables-preset-precedence, sprite-background, group-narration-mode-sync, capability-package-chat-controls, open-issues, capability-gm-verbs, game-inventory-turn, spatial-location-reference, --filter multiplayer (13 files), --filter advanced-memory (16 files), --filter conversation (4 files), pnpm regression:prompt (3 files).
  • capability-gm-verbs failed with PixelForge's keys in CHAT_PRESET_EXCLUDED_METADATA_KEYS ("new engine metadata namespaces are not in ENGINE_OWNED_METADATA_KEY_PREFIXES: pixelforge"); hence the separate package list.

Round 4 (head 889064ff3, after merging origin/staging ecd62a2e4): pnpm check and pnpm localization:check exit 0; chat-profile-followers and the same related regressions passed.

Earlier rounds: chat-profile-followers failed on origin/staging code and on each earlier head for the fix that round added; related regressions passed (chat-window-defaults, chat-settings-hint, chat-wizard-defaults, experience-state-ordinal, open-issues, capability-gm-verbs, game-inventory-turn, group-narration-mode-sync, context-message-limit-modes, capability-package-chat-controls, capability-package-lifecycle, agent-activity-status, avatar-crop-contract, chat-window-icons, floating-window, memory-nag-onboarding, roleplay-streaming, tracker-gallery-ui, chat-branch-lineage, sprite-background, --filter multiplayer, --filter conversation, --filter advanced-memory, pnpm regression:prompt).

Manual verification notes

  • Manually verify in two Roleplay chats on one profile: set the context message limit to 15 in one chat only, then Save and update 1 other chat from the other chat, which has no limit. The first chat's limit goes back to none.
  • Manually verify a chat on the profile that runs Lorebook Keeper with a non-default prompt template keeps that template after Save and update from a chat without Keeper.
  • Manually verify Save and update from a chat whose only agent is Expression Engine turns Director and Illustrator off in another chat on the profile, and that chat then generates with no Director or Illustrator calls.
  • Manually verify in a browser: make a Roleplay profile, apply it to three chats, change a setting such as an agent or the context message limit in one chat, then press Save. The dialog should show Save to this profile only, Save and update 2 other chats and Cancel.
  • Manually verify Save to this profile only saves the profile, and the other two chats keep their old values.
  • Manually verify Save and update 2 other chats shows "Updated 2 other chats", and the other chats show the new value without a reload.
  • Manually verify each updated chat keeps its own connection and prompt preset.
  • Manually verify Cancel, Escape and clicking outside the dialog do not save the profile.
  • Manually verify Save on a profile no other chat uses shows no dialog.
  • Manually verify Save as a new profile shows no dialog.
  • Manually verify the dialog wording reads plainly in light and dark themes, on desktop and at phone width.
  • Manually verify the dialog counts only chats of the same mode: a Conversation profile does not count Roleplay chats.
  • Manually verify a hosted or joined multiplayer room that used the profile is not counted and not updated.
  • Manually verify in two Roleplay chats on one profile, each with its own Author's Note, background, a lorebook turned off, a Roleplay Commands narrator, a Lorebook Keeper target lorebook and Decision statements with sticky turns: Save and update 1 other chat from one leaves all of these as they were in the other chat, while changed agents, translation and window layout reach it.
  • Manually verify in two Roleplay chats on one profile with PixelForge running in both: Save and update from one leaves the other's PixelForge game where it was.
  • Manually verify in two Roleplay chats on one profile, each linked to a different Hierarchical Maps shared world: after Save and update, each stays linked to its own world.
  • Manually verify applying a profile from the dropdown still sets its Author's Note, background and turned-off lorebooks, as on staging.
  • Manually verify in a chat with {{setvar}} macro variables and a disabled group member: applying a profile keeps both, and a profile saved from that chat no longer carries them to another chat.
  • Manually verify a profile saved on staging that has a background still sets it when applied.
  • Manually verify with the chat list request failing (for example, block GET /api/chats in the browser's dev tools): Save responds at once instead of waiting.
  • Manually verify in two Conversation chats on one profile, where only the saving chat has a custom prompt: after Save and update, the other chat still answers with its own prompt preset, and its Prompt section does not show the saving chat's custom text.
  • Manually verify with Advanced Memory on in a branched Roleplay chat: after Save and update from the original, the branch keeps its own knowledge starting points and narrator.
  • Manually verify Save and update after deleting the profile in another tab shows "Could not save the profile."
  • Manually verify a profile saved from an Individual-narration group chat with Rolls set to "Narrator only": after Save and update, a 1:1 Roleplay chat on the same profile can still roll.
  • Manually verify a chat on the profile with Allow Noodle references off keeps it off after Save and update from a chat where it is on.
  • Manually verify two Roleplay chats on one profile, one on an OpenRouter connection and one on a direct Anthropic or Google connection: set a custom parameter such as an OpenRouter provider routing object in the OpenRouter chat, then Save and update. The other chat keeps its own Advanced Parameters and still generates.
  • Manually verify a chat on the profile that never added Knowledge Retrieval: after Save and update from a chat that added it with its own lorebook and file, the other chat still has no Knowledge Retrieval, and other agents changed in the profile do reach it.
  • Manually verify the Illustrator's Scene videos connection is saved into a profile and reaches other chats with Save and update, and that applying a profile saved before this change leaves a chat's video connection as it was.
  • Manually verify two Roleplay chats on one profile on different connections, where the other chat has Image captioning switched off by hand: after Save and update from a chat that never touched captioning, the other chat still has captioning off. With both chats on the same connection, the other chat follows the saving chat.
  • Manually verify two Conversation chats on one profile, where the other chat's characters have card schedules and you switched Schedules off there: after Save and update from a chat whose characters have no schedules, the other chat's schedules stay off and its characters' statuses do not come back.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Docs touched: docs/chats/settings-profiles.md, docs/chats/chat-settings.md, CHANGELOG.md. Docs follow-up: #7423 (comments with the round 5, 6, 7 and 9 wording added).

UI evidence (if applicable)

  • No screenshots. The dialog is the existing shared choice dialog with new copy.

Local CodeRabbit review

coderabbit review --agent --committed --base-commit $(git merge-base HEAD origin/staging).

Round 9 (head f5c5303ce): 4 minor findings, all rejected

None is about this round's change (chat-presets.storage.ts, chat-preset.ts, the regression); all repeat earlier rounds.

  1. Rejected: "mirror this guide edit on docs-i18n, or link a follow-up issue" (minor, docs/chats/chat-settings.md). #7423 is that follow-up, linked above; this round's changed paragraph of settings-profiles.md is added there as a comment. The local CLI can't see the PR body or issues.
  2. Rejected: "guard overlapping saves / disable Save while it runs" (minor, ChatSettingsDrawer.tsx, reported twice). The same point as rounds 5, 6 and 8. openDialog in lib/app-dialogs.ts resolves a dialog that is still open with its fallback (null for a choice dialog) before opening the next, so of two overlapping flows with other chats only the last confirmed one saves, and a second Save and update needs a second confirmation. Without other chats there is no dialog, and two quick clicks save the same snapshot twice, as staging's unguarded Save already does; both writes give the same result, and the follower update is idempotent.
  3. Rejected: "stop the save when GET /chats fails instead of counting the loaded list" (minor, ChatSettingsDrawer.tsx). The same point as rounds 7 and 8 and earlier runs 2 to 4. On staging, saving a profile never depended on the chat list, and blocking it on a separate request would be a regression. A stale fallback can only under-count, so the worst case is that the dialog is skipped and Save behaves like staging's Save; no chat is changed without asking.

No code changed after this run, so it was not repeated.

Round 8 (head fa5577950): 3 minor findings, all rejected

  1. Rejected: "mirror the guide changes on docs-i18n, or link a follow-up issue" (minor, docs/chats/settings-profiles.md). #7423 is that follow-up, linked above. This round's two changed sentences are added there as a comment. The local CLI can't see the PR body or issues.
  2. Rejected: "disable Save while the save or the follower update is pending" (minor, ChatSettingsDrawer.tsx). The same point as rounds 5 and 6. openDialog in lib/app-dialogs.ts resolves a dialog that is still open with its fallback (null for a choice dialog) before opening the next, so two overlapping clicks need two confirmations. Two confirmed updates are safe: each chat is updated inside its own withChatMetadataPatchQueue, applyToChat reads the profile again inside that queue, and the update is idempotent (the same profile gives each chat the same values), so the last save wins. Staging's Save button has no pending guard either.
  3. Rejected: "do not let a zero client count skip the follower choice" (minor, ChatSettingsDrawer.tsx). The same point as round 7, item 4. The count comes from a fresh GET /chats; only a failed request falls back to the loaded list. A stale fallback can only under-count, so the worst case is that the dialog is skipped and Save behaves like staging's Save. No chat is changed without asking.

No code changed after this run, so it was not repeated.

Round 7 (head cdf969f42): 6 findings, 2 fixed (one docs fix, reported twice), 4 rejected

  1. Fixed: "split the Save and update bullet into short lists" (minor, docs/chats/settings-profiles.md, reported twice). This round made the bullet longer. Same words, now two short lists ("copies" and "stays as each chat has it") and one paragraph for the two exceptions (efa344a93). Docs only, so CodeRabbit was not run again.
  2. Rejected: "do not copy translationDeeplApiKey to followers" (minor, chat-preset.ts). There is no per-chat key contract. translationDeeplApiKey is one of TRANSLATOR_SETTINGS_KEYS, which normalizeTranslatorSettings calls "reusable translator settings"; the global translator defaults store it, Save puts it into the profile, and an explicit apply sets it on staging. Copying it keeps chats on one profile using the same translator.
  3. Rejected: "count followers on the server; GET /chats hides home Professor Mari chats" (minor, ChatSettingsDrawer.tsx). A home Professor Mari chat never follows a profile: /internal/professor-mari creates it through storage.create plus patchMetadata with no appliedChatPresetId, and none of the callers of useApplyChatPreset (ChatSetupWizard, ChatSettingsDrawer, NewChatConnectionGate, ChatSidebar, use-start-chat-from-character, use-start-new-chat-mode) is reachable for it. So the client count and the server scan agree.
  4. Rejected: "use a server follower count instead of falling back to the loaded list" (trivial, ChatSettingsDrawer.tsx). Round 4 chose one GET /chats with the loaded list as the fallback on purpose (see Round 4, item 5). A stale fallback can only under-count, so the worst case is that the dialog is skipped and Save behaves like staging's Save; no chat is changed without asking.
  5. Rejected: "mirror the guide edits on docs-i18n or link a follow-up" (minor, docs/chats/chat-settings.md). #7423 is that follow-up, linked above, with this round's wording added as a comment.

Round 6 (head c320fde07): 2 minor findings, both rejected

The same two findings as round 5, for the same reasons:

  1. Rejected: "mirror this guide edit on docs-i18n, or link a follow-up issue" (minor, docs/chats/chat-settings.md). #7423 is that follow-up, linked above, with this round's wording added as a comment. The local CLI can't see the PR body.
  2. Rejected: "block a second Save click while the first save is running" (minor, ChatSettingsDrawer.tsx). Checked again in lib/app-dialogs.ts: openDialog resolves a dialog that is still open with its fallback (null for a choice dialog) before opening the next, so of two overlapping flows only the last confirmed one saves. A click while the save is running opens a new dialog and needs a new confirmation. Without other chats, two clicks save the same snapshot twice, as staging's Save already does, and both writes give the same result.

No code changed after this run, so it was not repeated.

Round 5 (head 1ce025077): 2 minor findings, both rejected

  1. Rejected: "mirror the edited guides on docs-i18n, or link a follow-up issue" (minor, docs/chats/settings-profiles.md). The follow-up exists: #7423, [docs-i18n] docs/chats/settings-profiles.md, docs/chats/chat-settings.md, linked above as "Docs follow-up: #7423" and updated with this round's wording. The local CLI can't see the PR body or issues, so it raises this every round.
  2. Rejected: "guard against double clicks while the save is pending" (minor, ChatSettingsDrawer.tsx). Overlapping Save flows can't both reach the follower update: openDialog in lib/app-dialogs.ts resolves any dialog still open with its fallback (null for a choice dialog) when a new one opens, so the earlier flow returns without saving and only the last confirmed choice saves. A second Save and update therefore needs a second confirmation. Without other chats there is no dialog, and two quick clicks save the same snapshot twice, as staging's Save button (also unguarded) already does. Both writes are idempotent: the same profile gives each follower the same values.

No code changed after this run, so it was not repeated.

Earlier rounds

coderabbit review --agent --committed --base-commit $(git merge-base HEAD origin/staging), run four times. Runs 1 and 2 had one minor finding each, run 3 had four (one major, three minor), and run 4 had one minor finding.

  1. Run 1, fixed in f88b69c99. If the chat list had not loaded yet, allChats ?? [] counted no followers, so Save skipped the choice. Save now loads the list first with refetch() before counting.

  2. Run 2, not changed (rejected). CodeRabbit suggested aborting the save with an error when that refetch fails. Reason for rejecting: on staging, saving a profile never depended on the chat list. When the list can't load, falling back to "no followers" keeps Save working exactly as it does on staging. Blocking a working profile save on a separate list request would be a regression. The refetch already uses useChats' retry policy (up to 10 attempts), so missing data means the server is not answering, and the follower update would fail too. Nothing is silently lost: the profile is saved, and the other chats keep their copy, as before.

  3. Run 3, fixed in 64dbea394 (one major, one minor; the same point twice). Save counted from the cached chat list, so a chat that started using the profile in another window could be missed or miscounted. Save now always refetches the list before counting.

  4. Run 3, not changed (rejected, two minor). (a) It said a rejected refetchAllChats() would throw before the save's try. React Query's refetch() doesn't reject by default (throwOnError is false); it resolves with an error result, so nothing throws there. (b) It again suggested stopping the save when the refresh fails. Rejected for the run 2 reason. Also, a failed refetch keeps the last loaded data, so the count falls back to the cached list, and to zero only if the list never loaded at all.

  5. Run 4, not changed (rejected, minor). The same "stop the save if the follower list cannot refresh" suggestion, for the same reasons as runs 2 and 3(b).

  6. Run 5 (head 889064ff3), no findings. Reviewed all 10 changed files.

Note on 3(b): the claim that a failed refetch falls back quickly was wrong; refetch() ran useChats' 10-retry policy first (about 40 s). Round 4 replaced it with a single request (see below).

Review threads

Round 5 replied to and resolved the three open threads: the docs-i18n one (points to #7423) and the two PixelForge ones (pixelforge and pixelforgeCorruptExcerpt are now excluded from profiles, and the allowlist keeps package state off other chats anyway).

Adversarial review

Round 9 (head fa5577950)

Fixed in f5c5303ce (syncFollowerMetadata in chat-presets.storage.ts, the list in chat-preset.ts):

  1. Medium: image captioning on a follower on another connection fell back to that connection's defaults. A profile without imageCaptioningEnabled/imageCaptioningConnectionId removed the follower's own values, so it used its own connection's captioning defaults (resolveImageCaptioningRuntime, AdvancedParametersSection), matching neither the saving chat nor an apply by hand, which also moves the chat to the profile's connection. Both keys now follow the chatParameters rule: they change only in chats on the profile's connection, where removing them gives the same connection defaults the saving chat uses. On another connection the follower keeps its own, also when the profile has a value, because an explicit "off" from a vision model's chat would send another chat's images to a text-only model raw.
  2. Medium: removing conversationSchedulesEnabled turned a follower's switched-off schedules back on. Without a value, schedules run whenever the chat's characters have one (areConversationSchedulesEnabled is !== false), and Chat Settings shows them off only when nothing is cached. The key now changes only when the profile has true or false; a profile without one leaves each chat's own choice. This replaces the round 8 known effect for schedules. An apply by hand is unchanged from staging (see Follow-ups).
  3. Low: older names behind listed settings stayed on followers and came back as fallbacks. roleplayCommandsEnabled() falls back to roleplayDmCommandsEnabled, and getChatTranslationConfig/TranslationSection fall back to translationTargetLang and translationPrompt. All three are now listed, so the follower gets what an apply by hand gives (removed, or the profile's older value).
  4. Low: the regression did not cover keeping customAgentImageSettings when the profile has none. It now asserts it, and removing the preservation fails.

Rejected: none.

Checked and left as it is: scopedRegexMode (the round 8 known effect) has the same shape, with the prompt preset in place of the connection. But its missing value is the visible Use preset switch in Chat Settings, so a follower that gets "use preset" shows the same switch as the saving chat and uses its own prompt preset's mode. Captioning and schedules have no such switch, so their missing value was invisible to the user.

Follow-ups (not in this PR):

  • App translator defaults reach followers for settings the saving chat never had (low, design question). A saving chat made before you saved app translator defaults has no translator keys and uses the built-in ones (Google, nothing translated). Save and update then gives followers the app's defaults, as picking the profile again does; the regression asserts this on purpose. Matching the saving chat instead would make Save and update differ from an apply by hand. Maintainer: say if followers should skip the app's translator defaults.
  • Applying a profile by hand also removes a chat's "schedules off" when the profile has no value, so that chat's card schedules come back. This is staging behaviour (applying Default resets it the same way), left as it is under this PR's rule for explicit apply.

Round 8 (head efa344a93)

Fixed in fa5577950, all in syncFollowerMetadata and applyToChat (chat-presets.storage.ts):

  1. Medium: Save and update wiped the prompt templates of the four set-up agents each follower keeps. agentPromptTemplateIds was copied whole, so a follower kept Lorebook Keeper, Knowledge Retrieval, Knowledge Router or Expression Engine on but lost the template picked in its add dialog (buildAgentAddMetadataPatch), and those agents fell back to their default prompts (resolveAgentPromptTemplate). The follower now keeps its own template entries for those four agents and gets the profile's for the rest.
  2. Medium: the empty-agent-list guard rested on a false premise. An empty activeAgentIds runs no agents: generate.routes.ts loads agent configs only when the list is non-empty (or a Roleplay command needs one), and runtime-agent-sections.ts, committed-tracker-context.ts, marker-expander.ts, chats.routes.ts and the retry route all treat an empty list as none. So a follower kept Director and Illustrator after a save from a chat that only runs set-up agents. The guard is gone; the follower now gets [] plus its own set-up agents. The stale ChatMetadata.activeAgentIds doc comment ("empty = use globally-enabled agents") is corrected.
  3. Medium (also reported as low): a follower kept its own change when the saving chat never set that setting, though the dialog, docs and CHANGELOG say those changes are replaced. Save snapshots the saving chat's whole metadata, so a missing key means "default there", not "older profile". The follower update now gives each listed key what an apply by hand gives it, including going back to the default, which is also what #7409's workaround (pick the profile again) does. The apply-by-hand exceptions carry over: a profile without a window layout, scene video connection, prompt templates or custom agent image settings leaves the chat's own. The dialog, docs and CHANGELOG copy stay as they were, since they now match; the guide adds one sentence saying settings left at their default go back to it.
  4. Low: the regression passed with the explicit-apply Advanced Memory anchor preservation removed. It now asserts the anchors on explicit apply, and the follower path uses the same preserved value, so the mutation fails twice.
  5. Low: the regression passed with the multiplayer* prefix rule removed. It now uses an unlisted multiplayerFutureState key, and the mutation fails.

Rejected: none. Follow-ups: none.

Known effects of item 3, left as they are because an apply by hand does the same: a follower's own scopedRegexMode override is removed when the saving chat inherits from its prompt preset, so the follower then inherits from its own preset; and a listed value written when the follower was created (for example conversationSchedulesEnabled: true when its characters had schedules) is removed when the saving chat has none, which for schedules still means "on when the chat has schedules" (areConversationSchedulesEnabled).

Round 7 (head cdf969f42)

Fixed:

  1. Medium: Advanced Parameters were copied to followers on another connection. chatParameters holds only the differences from the chat's own connection defaults (AdvancedParametersSection setParameters), and customParameters are deep-merged raw into the provider body (base-provider.ts deepMergeRequestBody). A follower on a direct Anthropic or Google connection got an OpenRouter provider routing object and other options from the saving chat and lost its own. Now a follower gets chatParameters only when its connectionId equals the profile's, which is the connection the parameters were saved from. Explicit apply sets both together, as on staging.
  2. Medium: Knowledge Retrieval and Knowledge Router could read another chat's lorebooks and files. The add dialog writes the chosen sources both to the chat (knowledgeAgentSources, not copied) and to the global agent settings, and a chat without its own sources falls back to the global ones, where manual lorebook ids skip the chat-scope filter. Copying activeAgentIds turned the agent on in chats that never picked sources. These two agents now stay on or off as each follower has them.
  3. Low: Lorebook Keeper and Expression Engine were turned on without their setup. Without its own lorebookKeeperTargetLorebookId, Keeper picks the first writable book (which can be a character or world lorebook other chats share) as a non-explicit target. Without spriteCharacterIds, Expression Engine runs a model call every turn while the sprite overlay stays hidden. Both now stay on or off as each follower has them.

All three are in syncFollowerMetadata (chat-presets.storage.ts); the allowlist keeps both keys, with comments saying they copy only in part. Rejected: none.

Round 6 (head c320fde07)

Fixed:

  1. High: narrator-only audiences were copied without the narrator. Saving from an individual-narration group chat with Rolls, Documents, Whispers or Combat set to "Narrator only" gave other chats "narrator", but each kept its own roleplayCommandNarratorId (null in a 1:1 chat or a group without a narrator). isRoleplayCommandAllowed then refused those commands for every character there. The four audience keys are off the allowlist, so each chat keeps its own. Explicit apply is unchanged from staging (it also sets the profile's narrator id). Regression: the follower keeps "all", and roll, document and whisper stay allowed for its character.
  2. Low: the Noodle permission was copied. noodleTimelineContextEnabled lets Noodle use that chat's recent messages, a per-chat permission like discordWebhookUrl. Off the allowlist; explicit apply unchanged.
  3. Low: the Scene videos connection never reached profiles. sceneVideoConnectionId is a plain connection choice with no per-chat references, so it is now exempt from the scene* prefix rule, saved into profiles and on the allowlist. A profile without it leaves the chat's own on apply (see "Explicit apply and Save compared with staging").

Rejected: none.

Known effect, left as it is: groupChatMode stays on the allowlist. If a follower group chat uses Individual narration with narrator-only commands and the profile says Merged, the update switches it to Merged, where narrator-only commands are not available (as when you switch it by hand; that chat's Roleplay Commands settings show the existing notice). Maintainer: say if narration mode should stay per chat instead.

Round 5 (head 1ce025077)

The maintainer asked for the allowlist after rounds 2 to 4 kept finding per-chat state that Save and update overwrote: decisionTimers, spatialSharedWorldLink, authorNotes/authorNotesDepth, trackerFeaturedCharacterKeys, conversationSetupComplete, and PixelForge's pixelforge/pixelforgeCorruptExcerpt (from CodeRabbit threads). All are now untouched on followers by construction, and the four pure runtime keys plus PixelForge's two are also left out of profiles. authorNotes/authorNotesDepth stay profile content for an explicit apply, as on staging. The round 4 follower list (FOLLOWER_OWN_METADATA_KEYS) is gone; every key it named is simply not on the allowlist.

Earlier rounds

Each finding was reproduced with the regression or traced in code.

  1. Fixed: a bulk update replaced each follower's turned-off lorebooks and scene background. Round 2 excluded excludedLorebookIds and background from profiles everywhere; round 4 reverted that for explicit apply and Save (see below) and protects them on the follower path only.
  2. Fixed: followers' Advanced Memory anchors were replaced with the saving chat's message ids. advancedMemoryRosterChanges is excluded, and the nested knowledgeStarts, knowledgeConfirmed and narratorCharacterId stay with each chat (see What changed). This also resolves the earlier open question.
  3. Fixed: other per-chat state was wiped from followers. encounterActive, archivedCharacterSnapshots and conversationSummaryFailures are excluded. A sweep of keys the server and ChatArea write turned up the same problem for spriteExpressions and the six Roleplay DM thread keys, so those are excluded too.
  4. Fixed: Conversation followers kept their prompt preset but got the saving chat's custom prompt text. In follower mode, customSystemPrompt now stays with the chat, matching how handleModePromptPresetChange pairs it with the preset.
  5. Fixed: one catch reported a failed profile save as "Could not update the other chats". The profile save and the follower update now report separately, and the server finishes the other chats when one fails (counted in failed).
  6. Not changed (rejected): the dialog counts branches as other chats. Each branch is its own chat row with its own copy of the settings, and it opens as a separate chat with its own Chat Settings. Save and update really does change it. The sidebar groups branches only for display. The count is the number of chats that will be overwritten, and leaving branches out would understate that or leave them stale. The toast reports the same number.

Round 4 (head 889064ff3)

Fixed:

  1. Background no longer saved into profiles or set by explicit apply, starred profiles, the wizard, or old profiles (high, reported twice). background is out of CHAT_PRESET_EXCLUDED_METADATA_KEYS again, so Save stores it, an explicit apply sets it, profiles saved on staging keep it when read, and wizard defaults capture it, all as on staging. Followers keep their own. Regression: saved profile, explicit apply, GET /active/roleplay plus apply on a new chat, an old profile row, and the follower path.
  2. Turned-off lorebooks (excludedLorebookIds) no longer saved or applied (medium). Same fix and regression as 1. chat-wizard-defaults.ts is back to staging.
  3. Follower update replaced each follower's Roleplay Commands narrator (medium). roleplayCommandNarratorId is kept on the follower path. Explicit apply unchanged.
  4. Follower update retargeted each follower's Lorebook Keeper and knowledge sources (medium). lorebookKeeperTargetLorebookId and knowledgeAgentSources are kept on the follower path. Explicit apply unchanged.
  5. Save waited about 40 s when GET /chats failed (low). The count now uses one api.get("/chats") and falls back to the loaded list when it fails. Not covered by a regression (a one-line client change).
  6. Profile updates changed hideSummarisedMessages without hiding or showing the messages (low). Followers keep their own value, so a follower's toggle and its hidden messages stay in step. The same gap on explicit apply exists on staging and is left as it is under this PR's rule; filed as #7426.

The follower-kept keys share one list, FOLLOWER_OWN_METADATA_KEYS in chat-presets.storage.ts, which also absorbs the earlier customSystemPrompt special case. A follower that had no value for one of these keys stays without one. The regression checks both cases.

Rejected: none. Every finding was reproduced with the regression or traced in code.

Behaviour audit: all rows agree with the code. The two "Regression" verdicts (background, excludedLorebookIds) and the two follower "Defect" verdicts (roleplayCommandNarratorId, Lorebook Keeper and knowledge sources) are fixed above. The "worth confirming" row (conversationAboutMeOverrides, inactiveCharacterIds, conversationStatusOverrides) is listed for the maintainer under "Explicit apply and Save compared with staging".

Docs: settings-profiles.md no longer calls the background or turned-off lorebooks running state, and the follower bullet lists what a chat keeps. Translation follow-up #7423 has a comment with the new wording. CHANGELOG entry updated to match.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • When saving a settings profile used by other chats of the same mode, choose to update those chats, save only the profile, or cancel. The dialog warns that updates can replace their changes to profile-managed settings.
    • Updates preserve each chat’s connection, story, characters, lorebooks, background, notes, and progress. Connection-dependent Advanced Parameters update only for chats using the profile’s connection.
    • Multiplayer rooms aren’t updated. Profiles don’t copy chat-specific running state, such as macro variables, into other chats.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7422 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/11/2026 **Status:** ✅ Merged **Merged:** 10/11/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/profile-save-updates-chats` --- ### 📝 Commits (10+) - [`beb046b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/beb046b46a9a6e2400bb0ca5de15fe587b10a3bf) feat(chat-profiles): ask to update other chats when saving a profile - [`f88b69c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f88b69c99914dd70f30f5dd43ea1fbd50e156749) fix(chat-profiles): load the chat list before counting profile followers - [`d3e11a2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d3e11a2508d1923b788bf62b39c72c19241c77e6) fix(chat-profiles): keep each chat's own state when a profile updates other chats - [`64dbea3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/64dbea3948d5f481efc916a55b0779dc2c1b429e) fix(chat-profiles): count profile followers from a fresh chat list - [`3384d02`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3384d025d3600fbb175caffd7ea61cf7fb3393bc) fix(chat-profiles): keep backgrounds and turned-off lorebooks in profiles, protect them only for other chats - [`889064f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/889064ff320af4a2ea0e62bc9d0f92ecfa55a5ad) Merge remote-tracking branch 'origin/staging' into feat/profile-save-updates-chats - [`1ce0250`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1ce02507723f49edaf401d7c309e40093fa820e2) fix(chat-profiles): update other chats from a list of Chat Settings only - [`c320fde`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c320fde07a732d1da74a2b0f4a119925f71038ea) fix(chat-profiles): keep narrator-only commands and Noodle's permission per chat - [`cdf969f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cdf969f426a8c777de4219aa53b1cb334bb973c5) fix(chat-profiles): update parameters only on the profile's connection and leave set-up agents per chat - [`efa344a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/efa344a934570f48602918f57b5783a535ac0979) docs(chat-profiles): list what Save and update copies and what each chat keeps ### 📊 Changes **11 files changed** (+1090 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/chats/chat-settings.md` (+1 -1) 📝 `docs/chats/settings-profiles.md` (+31 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+50 -4) 📝 `packages/client/src/hooks/use-chat-presets.ts` (+16 -0) 📝 `packages/client/src/localization/locales/en.json` (+11 -0) 📝 `packages/server/src/routes/chat-presets.routes.ts` (+15 -0) 📝 `packages/server/src/services/storage/chat-presets.storage.ts` (+133 -14) 📝 `packages/shared/src/types/chat-preset.ts` (+225 -1) 📝 `packages/shared/src/types/chat.ts` (+1 -1) ➕ `scripts/regressions/chat-profile-followers.regression.ts` (+606 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7409 Docs follow-up: #7423 ## Why this change - A chat settings profile is shared by many chats, but each chat keeps its own copy of the settings. Saving the profile only changed the profile, so other chats that use it kept their old settings and drifted out of sync. To bring a chat back in line, you had to open it, pick another profile, then pick the first one again, chat by chat (#7409). - Scoping found a leak too: saving a profile also captured one chat's running state (its multiplayer room, Advanced Memory upkeep, macro variables, disabled members, autonomous counters, character statuses and about-me text). Applying the profile then copied that state into other chats and wiped their own. - **Why an allowlist (maintainer decision, 2026-10-11).** Rounds 2 to 4 protected other chats with a blocklist of keys a follower keeps. Every review round found more per-chat state it missed: Decision timers, the Hierarchical Maps shared-world link, the Author's Note, the Tracker Panel's featured characters, the Conversation setup flag, and PixelForge's save. Chat metadata is open-ended (packages add keys the Engine never sees), so a blocklist can't be complete. **Save and update** now copies only a fixed list of Chat Settings, and every other key of the other chats stays exactly as it was. - The rule for this PR: updating **other** chats changes only their Chat Settings. Applying a profile to a chat by hand, and saving a profile, behave as on staging for real user settings; only running state changes there. ## What changed - **Ask on save.** When other chats of the same mode still use the profile, **Save current chat settings into this profile** opens the existing stacked-button choice dialog with **Save to this profile only**, **Save and update N other chats** and **Cancel**. Its message is one sentence: "Updating other chats replaces their own changes to these settings." When no other chat uses the profile, Save works as before, with no dialog. Save counts from a freshly fetched chat list (one `GET /chats`, no retries), so chats changed in another window are included; if that request fails, it counts from the last loaded list at once. After an update, a toast says how many chats changed ("Updated 3 other chats"), and the affected chat queries are invalidated. - **Errors.** If the profile itself fails to save, the toast says "Could not save the profile." (on both paths; staging's Save failed silently). If some chats fail to update, the others are still updated and the toast says "Could not update N other chats." - **What an update changes (allowlist).** `CHAT_PROFILE_FOLLOWER_SYNC_KEYS` in `packages/shared/src/types/chat-preset.ts` lists every key **Save and update** may change. `applyToChat(…, { asFollower: true })` first builds the metadata an apply by hand would write (system defaults, the profile, translator settings, the chat's preserved keys). It then starts from the follower's own metadata and gives each listed key that value (round 8). So a listed key the profile has no value for goes back to its default, exactly as picking the profile again does (the workaround #7409 describes): it is removed, or set to the default an apply writes (`enableAgents: true`, `activeToolIds: []`, `chatSettingsHintDismissed: false`, the app's translator defaults). Because Save always snapshots the saving chat's whole metadata first, "no value" means the saving chat uses the default. For translator settings that default is the app's translator default, as when picking the profile again; a saving chat made before those defaults were saved may still use the built-in ones (see Follow-ups). The exceptions an apply by hand already has carry over: a profile without `windowLayout`, `sceneVideoConnectionId`, `agentPromptTemplateIds` or `customAgentImageSettings` leaves the chat's own. `advancedMemory` takes the profile's settings while the follower keeps its own `knowledgeStarts`, `knowledgeConfirmed` and `narratorCharacterId`. Some keys copy only in part. `chatParameters`, `imageCaptioningEnabled` and `imageCaptioningConnectionId` reach a follower only when its connection equals the profile's `connectionId`: Advanced Parameters are saved as differences from that connection's defaults, and image captioning without a value uses the chat's own connection's defaults (round 9). `conversationSchedulesEnabled` changes only when the profile has `true` or `false`, because without a value schedules run whenever the chat's own characters have one, so removing a follower's `false` would turn its schedules back on (round 9). `activeAgentIds` takes the profile's agents except Knowledge Retrieval, Knowledge Router, Lorebook Keeper and Expression Engine, which stay on or off as the follower has them, because their per-chat setup (`knowledgeAgentSources`, `lorebookKeeperTargetLorebookId`, `spriteCharacterIds`) is not copied. `agentPromptTemplateIds` takes the profile's templates except for those four agents, whose templates stay the follower's (round 8). The resulting agent list can be empty; an empty list runs no agents, which matches the profile (round 8 removed a guard that assumed the opposite, and corrected the `ChatMetadata.activeAgentIds` doc comment that said so). Translator settings are read through `normalizeTranslatorSettings`, so an older profile's `translationTargetLang`/`translationPrompt` still reach the follower as the input/output keys. The older names `translationTargetLang`, `translationPrompt` and `roleplayDmCommandsEnabled` are listed too (round 9), so a follower's old value is removed with the new key instead of coming back as the fallback. Each chat keeps its own connection, prompt preset and `updatedAt`, so background updates don't reorder Home's recent chats. `FOLLOWER_OWN_METADATA_KEYS` is removed; nothing needs it any more. - **Server.** New route: `POST /api/chat-presets/:id/apply-to-followers`, body `{ exceptChatId }`, returns `{ updated, chatIds, failed }`. It reuses `applyToChat` through the `asFollower` option, so the per-chat metadata queue, mode check and translator handling are shared. Inside each chat's queue, `asFollower` checks the fresh metadata again and skips a chat that left the profile after the scan. It never writes `connectionId`, `promptPresetId` or `updatedAt`. The route returns 400 for the Default profile, which can't be saved into, and 404 for an unknown profile. Each chat is updated in its own `try`, so one failure (logged with Pino `warn`) does not stop the rest or lose the list of chats already changed. It logs one Pino `info` line with the counts. - **Shared rule.** `chatFollowsChatPreset(metadata, presetId)` in `packages/shared/src/types/chat-preset.ts` decides which chats follow a profile. The dialog count (client) and the update (server) both use it, so the two can't drift. - **Multiplayer rooms are skipped.** A chat with `metadata.multiplayer` (hosted or joined) or `multiplayerSetup === true` is never updated. That is the same test `ChatArea` uses to hide Chat Settings in rooms, and the server's presence code uses it too. Why updating them would be unsafe: - A room deliberately clears its agents, tools, lorebooks and cross-chat awareness when it is set up (`multiplayer/service.ts`). Updating it from the profile would turn those back on in a shared session. - A joined room is a local placeholder for the host's chat, so profile settings mean nothing there. - On staging, applying a profile also deleted the `multiplayer` key, because it wasn't preserved. - **Running-state exclusions.** Added to `CHAT_PRESET_EXCLUDED_METADATA_KEYS`, plus PixelForge's two keys in a new `CHAT_PRESET_EXCLUDED_PACKAGE_METADATA_KEYS` (see the table). The storage layer also excludes any `multiplayer*` key by prefix, the same rule `protectRoomMetadata` uses. Excluded keys are also *preserved* on apply, so applying a profile now keeps the target chat's own copy instead of wiping it. - **Advanced Memory anchors.** `advancedMemory` stays a profile setting, but its per-chat values `knowledgeStarts`, `knowledgeConfirmed` and `narratorCharacterId` are left out of the profile, and applying a profile keeps the target chat's own values. These are message and character ids from one chat; `remapAdvancedMemoryMetadata` and the chat wizard already treat them that way. - Docs: `docs/chats/settings-profiles.md` (the "Updating other chats that use the profile" subsection lists which kinds of settings **Save and update** copies and what each chat keeps, says a setting left at its default in the saving chat goes back to its default in the others, then says Advanced Parameters and image captioning change only on the profile's connection, character schedules change only when the saving chat has them turned on or off, and the four set-up agents stay, with their prompt templates, as each chat has them) and `docs/chats/chat-settings.md` (one sentence on the Save icon). - CHANGELOG entry under `[Unreleased]`. - Regression: `scripts/regressions/chat-profile-followers.regression.ts`. ### The follower allowlist (`CHAT_PROFILE_FOLLOWER_SYNC_KEYS`) Built by enumerating every chat-metadata write in `ChatSettingsDrawer.tsx` and what it renders (the `features/chat-settings/sections/*` sections, `RoleplayCommandsSettings`, `StoryboardChatSettingsPanel`, `AgentAddSetupFields`' `buildAgentAddMetadataPatch`, `AdvancedMemorySettings` through its server action, and the Calls and Long-term memory package settings, which write through the drawer's `updateMetadata`/`onChatSettingsChange` callbacks; their keys were checked in the local Marinara-Agents checkout). A key is listed only if it is a setting that should match across the chats using one profile. Each entry has a short comment in the code. | Group | Keys | |---|---| | Generation and context | `chatParameters` (Advanced Parameters overrides; only for followers on the profile's connection), `contextMessageLimit`, `excludePastReasoning`, `pastReasoningLimit`, `lorebookTokenBudget`, `imageCaptioningEnabled`, `imageCaptioningConnectionId` (both only for followers on the profile's connection), `imageCaptioningPrompt`, `enableTools`, `forceToolCall`, `activeToolIds`, `cardCssMode`, `scopedRegexMode` | | Group chats | `groupChatMode` (merged or individual), `groupResponseOrder`, `groupTurnPromptEnabled`, `groupSpeakerColors`, `groupSpeakerNamesInHistory` | | Conversation features | `crossChatAwareness`, `autonomousMessages`, `autonomousDailyCapOverride`, `characterExchanges`, `conversationSchedulesEnabled` (only when the profile has a value), `characterCommands`, `conversationCommandToggles`, `imageGenConnectionId` (selfie connection), `selfieResolution`, `selfieUseAvatarReferences`, `selfieIncludeCharacterAppearance`, `conversationCallsEnabled`, `conversationCallVoiceCues`, `conversationCallSummaryConnectionId` (Calls package settings), `slurp2ActivityContextEnabled` | | Roleplay commands | `roleplayCommandsEnabled`, `roleplayDmCommandsEnabled` (older DM switch), `roleplayCommandToggles`, `roleplaySoundConnectionId` | | Agents | `enableAgents`, `activeAgentIds` (except the four agents each chat sets up), `agentPromptTemplateIds` (except the same four agents), `customAgentImageSettings`, `agentWriteApprovalRequired`, `attachSummariesToAgents`, `attachLorebooksToTrackers`, `manualTrackers`, `manualTrackerAgentTypes` | | Illustrator and Director | `illustratorImageConnectionId`, `illustratorPromptConnectionId`, `illustratorIncludeCharacterAppearance`, `illustratorUseAvatarReferences`, `illustratorAutoBackgroundsEnabled`, `illustratorImagesPerGeneration`, `illustratorRunInterval`, `sceneVideoConnectionId` (Scene videos connection, round 6), `imageStyleProfileId`, `narrativeDirectorSecretPlotEnabled`, `narrativeDirectorSecretPlotRunInterval` | | Prose Guardian, Lorebook Keeper | `proseGuardianBannedWords`, `proseGuardianAvoidInstructions`, `proseGuardianStyleInstructions`, `proseGuardianHoldForRewrite`, `lorebookKeeperReadBehindMessages` | | Music DJ, Haptics | `customMusicFolder`, `spotifySourceType`, `spotifyPlaylistId`, `spotifyPlaylistName`, `spotifyArtist`, `enableHapticFeedback`, `hapticSensitivity`, `hapticIncidentalContact`, `hapticIntifaceUrl` | | Expressions (display) | `spriteDisplayModes`, `spritePosition`, `spriteScale`, `spriteOpacity`, `expressionSpriteScale`, `fullBodySpriteScale`, `expressionSpriteOpacity`, `fullBodySpriteOpacity`, `expressionOnlyActiveSprites`, `expressionAvatarsEnabled` | | Storyboard (Roleplay) | `storyboardAgentImageAwareShotPlanningEnabled`, `storyboardAgentAnimationRefinementTemplateId`, `roleplayStoryboardAutoGenerateMode`, `roleplayStoryboardRunInterval`, `roleplayStoryboardKeyframeCount`, `roleplayStoryboardAnimationDurationSeconds`, `roleplayStoryboardPromptConnectionId`, `roleplayStoryboardImageConnectionId`, `roleplayStoryboardVideoConnectionId`, `roleplayStoryboardEpisodeTemplateId`, `roleplayStoryboardStyleTemplateId`, `roleplayStoryboardAnimationTemplateId`, `roleplayStoryboardOutputTemplateId`, `roleplayStoryboardIncludeCharacterAppearance`, `roleplayStoryboardUseAvatarReferences`, `roleplayStoryboardUseNovelAiCharacterPrompts`, `roleplayStoryboardUsePromptTemplate`, `roleplayStoryboardImagePromptTemplateId`, `roleplayStoryboardVideoPromptTemplateId` | | Long-term memory package | `longTermMemoryRecallStyle`, `longTermMemoryBudgetTokens`, `longTermMemoryMaxChunks` | | Memory and summaries | `enableMemoryRecall`, `advancedMemory` (settings only; anchors stay with the chat), `summaryConnectionId`, `summaryMaxTokens`, `summaryTailMessages`, `dayRolloverHour`, `semanticSummaryRetrievalEnabled`, `semanticSummaryRecentCount`, `semanticSummaryOlderCount`, `semanticSummaryMinSimilarity` | | Translation | `translationProvider`, `translationConnectionId`, `translationTargetLang` (older shared language), `translationInputTargetLang`, `translationOutputTargetLang`, `translationDeeplApiKey`, `translationDeeplxUrl`, `translationPrompt` (older shared prompt), `translationInputPrompt`, `translationOutputPrompt`, `autoTranslate`, `translateInput`, `showInputTranslateButton`, `translationDisplayOnly` | | Display and layout | `windowLayout` (window and button layout; the Save snapshot already captures it on purpose), `chatSettingsHintDismissed` | 129 keys (round 6: four narrator-only audiences and the Noodle permission removed, `sceneVideoConnectionId` added; round 9: the three older names added). A sanity check confirmed none is in the profile exclusion lists or under the `multiplayer*` prefix, and the only `scene*` key, `sceneVideoConnectionId`, is exempted from that prefix (a key that profiles drop would never reach a follower). **Written by Chat Settings but deliberately not listed** (each follower keeps its own): - Cast, lorebooks and files: `inactiveCharacterIds`, `spriteCharacterIds`, `spritePlacements`, `spriteCharacterVisualSettings`, `roleplayCommandNarratorId`, `activeLorebookIds`, `excludedLorebookIds`, `knowledgeAgentSources`, `lorebookKeeperTargetLorebookId`, `presetChoices`, `macroVariables`, `branchName`. - Authored per-chat text and scenes: `customSystemPrompt` (pairs with the prompt preset the follower keeps), `groupScenarioText`, `sceneSystemPrompt`. - Narrator-only audiences (round 6): `roleplayRollAudience`, `roleplayDocumentAudience`, `roleplayWhisperAudience`, `roleplayCombatAudience`. The value `"narrator"` only works together with the chat's own `roleplayCommandNarratorId` (`isRoleplayCommandAllowed`), which is cast and not copied. Copying it to a chat without that narrator, such as a 1:1 chat, turned those commands off for every character there. - `noodleTimelineContextEnabled` (round 6): "Timeline refreshes may include recent messages from this chat". It is a per-chat permission to share that chat's messages, so each chat gives it itself, the same reason as `discordWebhookUrl` below. - Background (Chat Settings > Background writes it through the UI store). - `discordWebhookUrl`: judgement call. It is the Discord channel this chat's messages are posted to; copying it would send another chat's messages to that channel. **Maintainer: say if it should be listed.** - Game Mode keys (`game*`, `enableSpriteGeneration`): Game Mode has no settings profiles (`CHAT_SETTINGS_SURFACES.game.showSettingsProfiles` is false). **Profile settings changed outside Chat Settings, so not listed** (each follower keeps its own; maintainer may want some added): the Chat Summary popover's `automaticSummaryEnabled`, `summaryRunInterval`, `summaryContextSize` and `hideSummarisedMessages` (the last also needs #7426 first), Appearance's `roleplayDisplayStyle`, and the global `conversationTimeZone` (written to every Conversation chat at once). The legacy `agentOverrides` map has no writer any more. ### Keys excluded from profiles, and why | Key | Verified in code as | Why it can't go in a profile | |---|---|---| | `multiplayer` | `MultiplayerStoredRoom` / `MultiplayerJoinedRoom` (room id, epoch, participants, receipts) | Identity of one room | | `multiplayerSetup`, `multiplayerSetupComplete`, `multiplayerGameSetup` | Set by the multiplayer service and `MultiplayerChat` while preparing one room | Would mark another chat as a room in setup | | `multiplayerCharacterMemories`, `multiplayerGameAppliedMessages`, `multiplayerGameTurn` | Written only through `allowRoomKeys` by room runtime | Room runtime state | | `advancedMemoryState` | "Durable maintenance checkpoint" (job, fingerprint, context starts) | Indexes one chat's messages. The wizard already excluded it | | `macroVariables` | `{{setvar}}` values persisted per chat | Story state, like the already-excluded `agentVariables` | | `inactiveCharacterIds` | Members disabled in this chat (Disable in chat) | IDs of this chat's members | | `intentCooldowns` | Last autonomous message time per character and intent | Runtime counters | | `autonomousDailyBudget` | Daily autonomous counts per character | Runtime counters. The per-chat cap `autonomousDailyCapOverride` is a setting and stays | | `conversationCharacterStatuses` | Derived presence per character, rewritten each generation | Runtime cache | | `conversationStatusOverrides` | Chat cache of the card's manual status overrides (the card is the source of truth) | Keyed by this chat's characters | | `conversationAboutMeOverrides` | Per-chat about-me text per character or persona, also written by the model's about-me command | Chat-owned identity text. `conversationAboutMeInject` is a setting and stays | | `advancedMemoryRosterChanges` | Roster join/leave events keyed by this chat's message ids (`chats.routes.ts`, `advanced-memory-transfer.ts`) | Indexes one chat's messages | | `encounterActive` | Set by the combat encounter routes and the Combat agent | A running encounter; losing it drops the combat agent mid-fight | | `archivedCharacterSnapshots` | Name and avatar of characters removed from this chat, used by `ChatArea` for their old messages | Chat history identity | | `conversationSummaryFailures` | Retry counters of the automatic summary (`conversation-history-runtime.ts`) | Runtime counters | | `spriteExpressions` | Current expression per character (`ChatArea`) | Runtime state, like the already-excluded sprite keys | | `roleplayDmThread`, `dmOriginChatId`, `dmOriginChatName`, `dmOriginMessageId`, `dmSourceUserMessageId`, `dmTargetCharacterId` | Link a Roleplay DM thread keeps to the chat it came from (`roleplay-dm-command-runtime.ts`) | Would mark another chat as a DM thread, or turn a DM thread into a plain chat | | `decisionTimers` (new) | `DECISION_TIMERS_METADATA_KEY`, sticky/cooldown/every state per Decision statement (`decision-timers.ts`) | Turn counters of one chat | | `spatialSharedWorldLink` (new) | Hierarchical Maps link from this chat to a shared world (`SPATIAL_SHARED_WORLD_LINK_METADATA_KEY`) | Would join another chat to this chat's world, like the already-excluded `spatialContext` | | `trackerFeaturedCharacterKeys` (new) | `TRACKER_FEATURED_CHARACTER_META_KEY`, the characters featured in this chat's Tracker Panel | Keyed by this chat's characters | | `conversationSetupComplete` (new) | Set by the Conversation setup wizard; the server reads it to tell whether a chat has started | Would mark a fresh chat as set up. Wizard defaults already excluded it | | `pixelforge`, `pixelforgeCorruptExcerpt` (new, `CHAT_PRESET_EXCLUDED_PACKAGE_METADATA_KEYS`) | PixelForge's save for this chat and a damaged save kept for repair (Marinara-Agents `packages/pixelforge`) | Package state of one chat. Kept in a separate list because `CHAT_PRESET_EXCLUDED_METADATA_KEYS` also feeds `ENGINE_OWNED_METADATA_KEY_PREFIXES`' derivation, and `capability-gm-verbs` would then reserve the `pixelforge` namespace from the PixelForge package itself | The scoping list named `conversationCharacterStatusOverrides` and `conversationCharacterAboutMeOverrides`. No such keys exist; the real keys are `conversationStatusOverrides` and `conversationAboutMeOverrides`, and those are what this PR excludes. **Side effect on the chat wizard:** `captureChatWizardDefaults` reuses `CHAT_PRESET_EXCLUDED_METADATA_KEYS`, so wizard defaults now leave out these running-state keys too, including the new `decisionTimers`, `spatialSharedWorldLink` and `trackerFeaturedCharacterKeys` (`conversationSetupComplete` was already out). It does not read the new package list, so PixelForge's keys in wizard defaults behave as on staging. Wizard defaults still capture `background` and `excludedLorebookIds`, as on staging (`chat-wizard-defaults.ts` is unchanged from staging). ### Explicit apply and Save compared with staging Every difference for **Save into this profile**, applying a profile from the dropdown, a starred profile on a new chat, the wizard's **Use a Profile**, and applying **Default** (including after deleting the applied profile): - **Running-state keys in the table above** (including the six new ones) are no longer saved into a profile, are stripped from profiles saved on staging when read, and an apply keeps the target chat's own value. On staging an apply copied the source chat's value or deleted the target's. This also fixes a staging bug where applying a profile to a room deleted its `multiplayer` key. - **`inactiveCharacterIds`, `conversationStatusOverrides`, `conversationAboutMeOverrides`** are user-editable as well as written by the server (the character-activity agent, the card's status overrides, the about-me tool), so they are not pure runtime state. They stay excluded because they are keyed by this chat's own characters, which a profile never carries. Maintainer: please confirm. - **Advanced Memory `knowledgeStarts`, `knowledgeConfirmed`, `narratorCharacterId`** are no longer saved, and an apply keeps the target's own. They are this chat's message and character ids. - **`sceneVideoConnectionId` (round 6)**, the Illustrator's Scene videos connection, is now saved into profiles. On staging the `scene*` prefix rule dropped it, so profiles never held it. An explicit apply now sets it when the profile has one. A profile without one (every profile saved before this change, and **Default**) leaves the chat's own value, as on staging; this is the same rule `windowLayout` already uses. - **Everything else is unchanged from staging**, including `authorNotes`/`authorNotesDepth` (user text: saved, and set by an explicit apply), `background`, `excludedLorebookIds`, `customSystemPrompt`, `roleplayCommandNarratorId`, `lorebookKeeperTargetLorebookId`, `knowledgeAgentSources`, `hideSummarisedMessages`, the connection and prompt preset, and `updatedAt`. As on staging, a profile without a background clears the chat's background on apply, and applying **Default** resets it. Followers are protected from all of these by the allowlist. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Commands the agent ran locally (results are the agent's, not a human check): Round 9 (head f5c5303ce): - `pnpm check`: exit 0. One existing lint warning in `HomeProfessorMariChat.tsx`, which this PR doesn't touch. - `pnpm localization:check`: exit 0. - `chat-profile-followers` passes. New checks: a follower on another connection keeps its own `imageCaptioningEnabled: false` and `imageCaptioningConnectionId`, also when the profile has `imageCaptioningEnabled: true`; on the profile's connection it gets `true`, and its captioning connection, which the profile leaves to the connection, is removed as an apply by hand does; a Conversation follower with `conversationSchedulesEnabled: false` keeps it when the profile has no value, a follower without one gets none, and a profile with `true` gives `true` to both; a follower's `roleplayDmCommandsEnabled`, `translationTargetLang` and `translationPrompt` are removed, DM commands stay off and the input language is `en`, as in the saving chat; a profile without `customAgentImageSettings` leaves the chat's own. The "Save and update and applying agree" loop now also covers the three older names. - Proof against the previous head: with `chat-preset.ts` and `chat-presets.storage.ts` at fa5577950 it fails at "the follower's own roleplayDmCommandsEnabled goes back to the default the saving chat uses"; with only `chat-presets.storage.ts` at fa5577950 it fails at "a follower on another connection keeps its own image captioning". Mutations, each run alone and then restored: gating only `chatParameters` fails at "a follower on another connection keeps its own image captioning"; skipping captioning on the profile's connection too fails at "and the same image captioning"; removing the schedule rule fails at "a profile with no schedule choice leaves a chat's schedules off"; always keeping the follower's schedules fails at "the profile's schedule choice"; removing `roleplayDmCommandsEnabled`, `translationTargetLang` or `translationPrompt` from the list fails at "the follower's own <key> goes back to the default the saving chat uses"; removing the `customAgentImageSettings` preservation fails at "and so does a profile without custom agent image settings". - Passing: `chat-settings-hint`, `chat-variables-preset-precedence`, `profile-import-asset-security`, `profile-import-data-security`, `profile-import-noodle`, `chat-window-defaults`, `chat-wizard-defaults`, `roleplay-commands`, `illustrator-message-range`, `--filter multiplayer` (13 files), `--filter conversation` (4 files), `--filter translat` (1 file), `--filter caption` (1 file), `pnpm regression:prompt` (3 files). Round 8 (head fa5577950): - `pnpm check`: exit 0. One existing lint warning in `HomeProfessorMariChat.tsx`, which this PR doesn't touch. - `pnpm localization:check`: exit 0. - `chat-profile-followers` passes. Changed and new checks: a follower's `summaryMaxTokens` and `translationDisplayOnly`, which the saving chat never set, are removed (they were asserted as kept before, the behaviour this round fixes); the follower gets the app's translator default `translateInput: true`; for every key in `CHAT_PROFILE_FOLLOWER_SYNC_KEYS` except the two agent keys, **Save and update** and a later apply by hand give the same value; the follower keeps its own prompt templates for `lorebook-keeper` and `expression`, gets the profile's for other agents and not the source's `knowledge-retrieval` template; a profile whose only agent is `knowledge-retrieval` turns a `["director"]` chat to `[]` (it asserted `["director"]` before, the wrong result this round fixes) and still leaves `["expression"]` in a `["director", "expression"]` chat; that chat's own `contextMessageLimit` is removed while its `windowLayout`, `sceneVideoConnectionId` and prompt templates stay, because the profile has none; explicit apply keeps the target's Advanced Memory anchors; an unlisted `multiplayerFutureState` key stays out of profiles and is kept by both paths. - Proof against the previous head: with `chat-presets.storage.ts` at efa344a93, it fails at "the follower gets the profile's prompt templates but keeps its own for agents that need setup". Mutations of the new code, each run alone and then restored: removing `else delete next[key]` fails at "the follower's own summaryMaxTokens goes back to the default the saving chat uses"; putting the empty-list guard back fails at "Director is off, as in the profile"; dropping the follower's set-up agent templates fails at the prompt-template check; building the follower update without the system defaults fails at "the follower gets the app's translator default"; removing the `multiplayer*` prefix rule fails at "saving a profile leaves out the chat's own multiplayerFutureState"; disabling the explicit-apply Advanced Memory anchor preservation fails at the anchor checks; disabling the `windowLayout`/`sceneVideoConnectionId` rule fails at "a profile saved without a video connection leaves the chat's own". - Passing: `chat-settings-hint`, `chat-variables-preset-precedence`, `profile-import-asset-security`, `profile-import-data-security`, `profile-import-noodle`, `chat-window-defaults`, `chat-wizard-defaults`, `roleplay-commands`, `illustrator-message-range`, `--filter multiplayer` (13 files), `--filter conversation` (4 files), `pnpm regression:prompt` (3 files). Round 7 (head efa344a93): - `pnpm check`: exit 0. One existing lint warning in `HomeProfessorMariChat.tsx`, which this PR doesn't touch. - `pnpm localization:check`: exit 0. - `chat-profile-followers` passes. New checks: the profile saves `chatParameters` (with an OpenRouter `customParameters.provider` object) and every agent; a follower on another connection keeps its own `chatParameters`; after switching it to the profile's connection it gets the profile's; the follower gets the profile's plain agents but keeps its own `lorebook-keeper` and `knowledge-router` and does not get `knowledge-retrieval` or `expression`; explicit apply still sets the profile's `chatParameters` and full agent list; a profile whose only agent is `knowledge-retrieval` leaves a `["director"]` chat's list alone (no empty list) and turns `director` off but keeps `expression` in a `["director", "expression"]` chat. - Proof against the previous head: with `chat-presets.storage.ts` at c320fde07 (new regression), it fails at "a follower on another connection keeps its own Advanced Parameters". - Passing: `chat-settings-hint`, `chat-variables-preset-precedence`, `profile-import-asset-security`, `profile-import-data-security`, `profile-import-noodle`, `--filter multiplayer` (13 files), `--filter conversation` (4 files), `pnpm regression:prompt` (3 files). Round 6 (head c320fde07): - `pnpm check`: exit 0. One existing lint warning in `HomeProfessorMariChat.tsx`, which this PR doesn't touch. - `pnpm localization:check`: exit 0. - `chat-profile-followers` passes. New checks: the profile saves every shared setting, including `sceneVideoConnectionId`; a follower gets `sceneVideoConnectionId`; a follower keeps its own four audiences and `noodleTimelineContextEnabled`; `isRoleplayCommandAllowed` stays true for roll, document and whisper on a follower whose character is not the source's narrator; a Conversation follower without these keys gets none; explicit apply sets `sceneVideoConnectionId`; an older profile without it leaves the chat's own. - Proof against the previous head: with `chat-preset.ts` and `chat-presets.storage.ts` at 1ce025077 (new regression), it fails at "the profile saves sceneVideoConnectionId". A soft-assert copy (temporary, deleted) showed every new case failing there: the video connection not saved, not copied and not kept on apply; the four audiences and the Noodle permission overwritten on the follower and given to a Conversation follower that had none; roll, document and whisper turned off for the follower's character. - Passing: `chat-window-defaults`, `chat-settings-hint`, `chat-wizard-defaults`, `experience-state-ordinal`, `chat-variables-preset-precedence`, `sprite-background`, `group-narration-mode-sync`, `capability-package-chat-controls`, `open-issues`, `capability-gm-verbs`, `game-inventory-turn`, `spatial-location-reference`, `roleplay-commands`, `roleplay-function-calling`, `--filter multiplayer` (13 files), `--filter advanced-memory` (16 files), `--filter conversation` (4 files), `pnpm regression:prompt` (3 files). Round 5 (allowlist, head 1ce025077): - `pnpm check`: exit 0. One existing lint warning in `HomeProfessorMariChat.tsx`, which this PR doesn't touch. - `pnpm localization:check`: exit 0. - `chat-profile-followers` passes. It now checks that a follower receives listed keys (`contextMessageLimit`, `chatParameters`, `activeAgentIds`, `roleplayCommandToggles`, `summaryConnectionId`, `translationProvider`, `windowLayout`, `enableAgents`, `advancedMemory`); that its other keys stay and are never deleted, including an unknown `someFuturePackageState`, `decisionTimers`, `authorNotes`, `authorNotesDepth`, `background`, `excludedLorebookIds`, `pixelforge`, `spatialSharedWorldLink`, `roleplayDisplayStyle` and `impersonatePrompt`; that listed keys missing from the profile (`summaryMaxTokens`, `translationDisplayOnly`) keep the follower's value; that explicit apply still sets `authorNotes`, `background` and the other chat choices and keeps every running-state key; and that the six new runtime keys are not saved into profiles. - Proof against the previous head: with `chat-preset.ts` and `chat-presets.storage.ts` at 889064ff3 (regression unchanged), it fails at "saving a profile leaves out the chat's own decisionTimers". A soft-assert copy of the regression (temporary, deleted) listed every failing case on 889064ff3: the six new keys saved into the profile, overwritten on the follower and lost on explicit apply; the follower's `authorNotes`, `authorNotesDepth` and `someFuturePackageState` overwritten; `roleplayDisplayStyle`, `impersonatePrompt`, `summaryMaxTokens` and `translationDisplayOnly` deleted from the follower; a follower without `authorNotes`/`someFuturePackageState` given the profile's; the Conversation follower's own `someFuturePackageState` and Author's Note replaced. - Passing: `chat-window-defaults`, `chat-settings-hint`, `chat-wizard-defaults`, `experience-state-ordinal`, `chat-variables-preset-precedence`, `sprite-background`, `group-narration-mode-sync`, `capability-package-chat-controls`, `open-issues`, `capability-gm-verbs`, `game-inventory-turn`, `spatial-location-reference`, `--filter multiplayer` (13 files), `--filter advanced-memory` (16 files), `--filter conversation` (4 files), `pnpm regression:prompt` (3 files). - `capability-gm-verbs` failed with PixelForge's keys in `CHAT_PRESET_EXCLUDED_METADATA_KEYS` ("new engine metadata namespaces are not in ENGINE_OWNED_METADATA_KEY_PREFIXES: pixelforge"); hence the separate package list. Round 4 (head 889064ff3, after merging origin/staging ecd62a2e4): `pnpm check` and `pnpm localization:check` exit 0; `chat-profile-followers` and the same related regressions passed. Earlier rounds: `chat-profile-followers` failed on origin/staging code and on each earlier head for the fix that round added; related regressions passed (`chat-window-defaults`, `chat-settings-hint`, `chat-wizard-defaults`, `experience-state-ordinal`, `open-issues`, `capability-gm-verbs`, `game-inventory-turn`, `group-narration-mode-sync`, `context-message-limit-modes`, `capability-package-chat-controls`, `capability-package-lifecycle`, `agent-activity-status`, `avatar-crop-contract`, `chat-window-icons`, `floating-window`, `memory-nag-onboarding`, `roleplay-streaming`, `tracker-gallery-ui`, `chat-branch-lineage`, `sprite-background`, `--filter multiplayer`, `--filter conversation`, `--filter advanced-memory`, `pnpm regression:prompt`). ### Manual verification notes - Manually verify in two Roleplay chats on one profile: set the context message limit to 15 in one chat only, then **Save and update 1 other chat** from the other chat, which has no limit. The first chat's limit goes back to none. - Manually verify a chat on the profile that runs Lorebook Keeper with a non-default prompt template keeps that template after **Save and update** from a chat without Keeper. - Manually verify **Save and update** from a chat whose only agent is Expression Engine turns Director and Illustrator off in another chat on the profile, and that chat then generates with no Director or Illustrator calls. - Manually verify in a browser: make a Roleplay profile, apply it to three chats, change a setting such as an agent or the context message limit in one chat, then press Save. The dialog should show **Save to this profile only**, **Save and update 2 other chats** and **Cancel**. - Manually verify **Save to this profile only** saves the profile, and the other two chats keep their old values. - Manually verify **Save and update 2 other chats** shows "Updated 2 other chats", and the other chats show the new value without a reload. - Manually verify each updated chat keeps its own connection and prompt preset. - Manually verify **Cancel**, Escape and clicking outside the dialog do not save the profile. - Manually verify Save on a profile no other chat uses shows no dialog. - Manually verify Save as a new profile shows no dialog. - Manually verify the dialog wording reads plainly in light and dark themes, on desktop and at phone width. - Manually verify the dialog counts only chats of the same mode: a Conversation profile does not count Roleplay chats. - Manually verify a hosted or joined multiplayer room that used the profile is not counted and not updated. - Manually verify in two Roleplay chats on one profile, each with its own Author's Note, background, a lorebook turned off, a Roleplay Commands narrator, a Lorebook Keeper target lorebook and Decision statements with sticky turns: **Save and update 1 other chat** from one leaves all of these as they were in the other chat, while changed agents, translation and window layout reach it. - Manually verify in two Roleplay chats on one profile with PixelForge running in both: **Save and update** from one leaves the other's PixelForge game where it was. - Manually verify in two Roleplay chats on one profile, each linked to a different Hierarchical Maps shared world: after **Save and update**, each stays linked to its own world. - Manually verify applying a profile from the dropdown still sets its Author's Note, background and turned-off lorebooks, as on staging. - Manually verify in a chat with `{{setvar}}` macro variables and a disabled group member: applying a profile keeps both, and a profile saved from that chat no longer carries them to another chat. - Manually verify a profile saved on staging that has a background still sets it when applied. - Manually verify with the chat list request failing (for example, block `GET /api/chats` in the browser's dev tools): Save responds at once instead of waiting. - Manually verify in two Conversation chats on one profile, where only the saving chat has a custom prompt: after **Save and update**, the other chat still answers with its own prompt preset, and its Prompt section does not show the saving chat's custom text. - Manually verify with Advanced Memory on in a branched Roleplay chat: after **Save and update** from the original, the branch keeps its own knowledge starting points and narrator. - Manually verify **Save and update** after deleting the profile in another tab shows "Could not save the profile." - Manually verify a profile saved from an Individual-narration group chat with Rolls set to "Narrator only": after **Save and update**, a 1:1 Roleplay chat on the same profile can still roll. - Manually verify a chat on the profile with **Allow Noodle references** off keeps it off after **Save and update** from a chat where it is on. - Manually verify two Roleplay chats on one profile, one on an OpenRouter connection and one on a direct Anthropic or Google connection: set a custom parameter such as an OpenRouter `provider` routing object in the OpenRouter chat, then **Save and update**. The other chat keeps its own Advanced Parameters and still generates. - Manually verify a chat on the profile that never added Knowledge Retrieval: after **Save and update** from a chat that added it with its own lorebook and file, the other chat still has no Knowledge Retrieval, and other agents changed in the profile do reach it. - Manually verify the Illustrator's **Scene videos** connection is saved into a profile and reaches other chats with **Save and update**, and that applying a profile saved before this change leaves a chat's video connection as it was. - Manually verify two Roleplay chats on one profile on different connections, where the other chat has **Image captioning** switched off by hand: after **Save and update** from a chat that never touched captioning, the other chat still has captioning off. With both chats on the same connection, the other chat follows the saving chat. - Manually verify two Conversation chats on one profile, where the other chat's characters have card schedules and you switched **Schedules** off there: after **Save and update** from a chat whose characters have no schedules, the other chat's schedules stay off and its characters' statuses do not come back. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) Docs touched: `docs/chats/settings-profiles.md`, `docs/chats/chat-settings.md`, `CHANGELOG.md`. Docs follow-up: #7423 (comments with the round 5, 6, 7 and 9 wording added). ## UI evidence (if applicable) - No screenshots. The dialog is the existing shared choice dialog with new copy. ## Local CodeRabbit review `coderabbit review --agent --committed --base-commit $(git merge-base HEAD origin/staging)`. ### Round 9 (head f5c5303ce): 4 minor findings, all rejected None is about this round's change (`chat-presets.storage.ts`, `chat-preset.ts`, the regression); all repeat earlier rounds. 1. **Rejected: "mirror this guide edit on `docs-i18n`, or link a follow-up issue" (minor, `docs/chats/chat-settings.md`).** #7423 is that follow-up, linked above; this round's changed paragraph of `settings-profiles.md` is added there as a comment. The local CLI can't see the PR body or issues. 2. **Rejected: "guard overlapping saves / disable Save while it runs" (minor, `ChatSettingsDrawer.tsx`, reported twice).** The same point as rounds 5, 6 and 8. `openDialog` in `lib/app-dialogs.ts` resolves a dialog that is still open with its fallback (`null` for a choice dialog) before opening the next, so of two overlapping flows with other chats only the last confirmed one saves, and a second **Save and update** needs a second confirmation. Without other chats there is no dialog, and two quick clicks save the same snapshot twice, as staging's unguarded Save already does; both writes give the same result, and the follower update is idempotent. 3. **Rejected: "stop the save when `GET /chats` fails instead of counting the loaded list" (minor, `ChatSettingsDrawer.tsx`).** The same point as rounds 7 and 8 and earlier runs 2 to 4. On staging, saving a profile never depended on the chat list, and blocking it on a separate request would be a regression. A stale fallback can only under-count, so the worst case is that the dialog is skipped and Save behaves like staging's Save; no chat is changed without asking. No code changed after this run, so it was not repeated. ### Round 8 (head fa5577950): 3 minor findings, all rejected 1. **Rejected: "mirror the guide changes on `docs-i18n`, or link a follow-up issue" (minor, `docs/chats/settings-profiles.md`).** #7423 is that follow-up, linked above. This round's two changed sentences are added there as a comment. The local CLI can't see the PR body or issues. 2. **Rejected: "disable Save while the save or the follower update is pending" (minor, `ChatSettingsDrawer.tsx`).** The same point as rounds 5 and 6. `openDialog` in `lib/app-dialogs.ts` resolves a dialog that is still open with its fallback (`null` for a choice dialog) before opening the next, so two overlapping clicks need two confirmations. Two confirmed updates are safe: each chat is updated inside its own `withChatMetadataPatchQueue`, `applyToChat` reads the profile again inside that queue, and the update is idempotent (the same profile gives each chat the same values), so the last save wins. Staging's Save button has no pending guard either. 3. **Rejected: "do not let a zero client count skip the follower choice" (minor, `ChatSettingsDrawer.tsx`).** The same point as round 7, item 4. The count comes from a fresh `GET /chats`; only a failed request falls back to the loaded list. A stale fallback can only under-count, so the worst case is that the dialog is skipped and Save behaves like staging's Save. No chat is changed without asking. No code changed after this run, so it was not repeated. ### Round 7 (head cdf969f42): 6 findings, 2 fixed (one docs fix, reported twice), 4 rejected 1. **Fixed: "split the Save and update bullet into short lists" (minor, `docs/chats/settings-profiles.md`, reported twice).** This round made the bullet longer. Same words, now two short lists ("copies" and "stays as each chat has it") and one paragraph for the two exceptions (efa344a93). Docs only, so CodeRabbit was not run again. 2. **Rejected: "do not copy `translationDeeplApiKey` to followers" (minor, `chat-preset.ts`).** There is no per-chat key contract. `translationDeeplApiKey` is one of `TRANSLATOR_SETTINGS_KEYS`, which `normalizeTranslatorSettings` calls "reusable translator settings"; the global translator defaults store it, Save puts it into the profile, and an explicit apply sets it on staging. Copying it keeps chats on one profile using the same translator. 3. **Rejected: "count followers on the server; `GET /chats` hides home Professor Mari chats" (minor, `ChatSettingsDrawer.tsx`).** A home Professor Mari chat never follows a profile: `/internal/professor-mari` creates it through `storage.create` plus `patchMetadata` with no `appliedChatPresetId`, and none of the callers of `useApplyChatPreset` (`ChatSetupWizard`, `ChatSettingsDrawer`, `NewChatConnectionGate`, `ChatSidebar`, `use-start-chat-from-character`, `use-start-new-chat-mode`) is reachable for it. So the client count and the server scan agree. 4. **Rejected: "use a server follower count instead of falling back to the loaded list" (trivial, `ChatSettingsDrawer.tsx`).** Round 4 chose one `GET /chats` with the loaded list as the fallback on purpose (see Round 4, item 5). A stale fallback can only under-count, so the worst case is that the dialog is skipped and Save behaves like staging's Save; no chat is changed without asking. 5. **Rejected: "mirror the guide edits on `docs-i18n` or link a follow-up" (minor, `docs/chats/chat-settings.md`).** #7423 is that follow-up, linked above, with this round's wording added as a comment. ### Round 6 (head c320fde07): 2 minor findings, both rejected The same two findings as round 5, for the same reasons: 1. **Rejected: "mirror this guide edit on `docs-i18n`, or link a follow-up issue" (minor, `docs/chats/chat-settings.md`).** #7423 is that follow-up, linked above, with this round's wording added as a comment. The local CLI can't see the PR body. 2. **Rejected: "block a second Save click while the first save is running" (minor, `ChatSettingsDrawer.tsx`).** Checked again in `lib/app-dialogs.ts`: `openDialog` resolves a dialog that is still open with its fallback (`null` for a choice dialog) before opening the next, so of two overlapping flows only the last confirmed one saves. A click while the save is running opens a new dialog and needs a new confirmation. Without other chats, two clicks save the same snapshot twice, as staging's Save already does, and both writes give the same result. No code changed after this run, so it was not repeated. ### Round 5 (head 1ce025077): 2 minor findings, both rejected 1. **Rejected: "mirror the edited guides on docs-i18n, or link a follow-up issue" (minor, `docs/chats/settings-profiles.md`).** The follow-up exists: #7423, `[docs-i18n] docs/chats/settings-profiles.md, docs/chats/chat-settings.md`, linked above as "Docs follow-up: #7423" and updated with this round's wording. The local CLI can't see the PR body or issues, so it raises this every round. 2. **Rejected: "guard against double clicks while the save is pending" (minor, `ChatSettingsDrawer.tsx`).** Overlapping Save flows can't both reach the follower update: `openDialog` in `lib/app-dialogs.ts` resolves any dialog still open with its fallback (`null` for a choice dialog) when a new one opens, so the earlier flow returns without saving and only the last confirmed choice saves. A second **Save and update** therefore needs a second confirmation. Without other chats there is no dialog, and two quick clicks save the same snapshot twice, as staging's Save button (also unguarded) already does. Both writes are idempotent: the same profile gives each follower the same values. No code changed after this run, so it was not repeated. ### Earlier rounds `coderabbit review --agent --committed --base-commit $(git merge-base HEAD origin/staging)`, run four times. Runs 1 and 2 had one minor finding each, run 3 had four (one major, three minor), and run 4 had one minor finding. 1. **Run 1, fixed in f88b69c99.** If the chat list had not loaded yet, `allChats ?? []` counted no followers, so Save skipped the choice. Save now loads the list first with `refetch()` before counting. 2. **Run 2, not changed (rejected).** CodeRabbit suggested aborting the save with an error when that refetch fails. Reason for rejecting: on staging, saving a profile never depended on the chat list. When the list can't load, falling back to "no followers" keeps Save working exactly as it does on staging. Blocking a working profile save on a separate list request would be a regression. The refetch already uses `useChats`' retry policy (up to 10 attempts), so missing data means the server is not answering, and the follower update would fail too. Nothing is silently lost: the profile is saved, and the other chats keep their copy, as before. 3. **Run 3, fixed in 64dbea394 (one major, one minor; the same point twice).** Save counted from the cached chat list, so a chat that started using the profile in another window could be missed or miscounted. Save now always refetches the list before counting. 4. **Run 3, not changed (rejected, two minor).** (a) It said a rejected `refetchAllChats()` would throw before the save's `try`. React Query's `refetch()` doesn't reject by default (`throwOnError` is false); it resolves with an error result, so nothing throws there. (b) It again suggested stopping the save when the refresh fails. Rejected for the run 2 reason. Also, a failed refetch keeps the last loaded `data`, so the count falls back to the cached list, and to zero only if the list never loaded at all. 5. **Run 4, not changed (rejected, minor).** The same "stop the save if the follower list cannot refresh" suggestion, for the same reasons as runs 2 and 3(b). 6. **Run 5 (head 889064ff3), no findings.** Reviewed all 10 changed files. Note on 3(b): the claim that a failed refetch falls back quickly was wrong; `refetch()` ran `useChats`' 10-retry policy first (about 40 s). Round 4 replaced it with a single request (see below). ## Review threads Round 5 replied to and resolved the three open threads: the docs-i18n one (points to #7423) and the two PixelForge ones (`pixelforge` and `pixelforgeCorruptExcerpt` are now excluded from profiles, and the allowlist keeps package state off other chats anyway). ## Adversarial review ### Round 9 (head fa5577950) Fixed in f5c5303ce (`syncFollowerMetadata` in `chat-presets.storage.ts`, the list in `chat-preset.ts`): 1. **Medium: image captioning on a follower on another connection fell back to that connection's defaults.** A profile without `imageCaptioningEnabled`/`imageCaptioningConnectionId` removed the follower's own values, so it used its own connection's captioning defaults (`resolveImageCaptioningRuntime`, `AdvancedParametersSection`), matching neither the saving chat nor an apply by hand, which also moves the chat to the profile's connection. Both keys now follow the `chatParameters` rule: they change only in chats on the profile's connection, where removing them gives the same connection defaults the saving chat uses. On another connection the follower keeps its own, also when the profile has a value, because an explicit "off" from a vision model's chat would send another chat's images to a text-only model raw. 2. **Medium: removing `conversationSchedulesEnabled` turned a follower's switched-off schedules back on.** Without a value, schedules run whenever the chat's characters have one (`areConversationSchedulesEnabled` is `!== false`), and Chat Settings shows them off only when nothing is cached. The key now changes only when the profile has `true` or `false`; a profile without one leaves each chat's own choice. This replaces the round 8 known effect for schedules. An apply by hand is unchanged from staging (see Follow-ups). 3. **Low: older names behind listed settings stayed on followers and came back as fallbacks.** `roleplayCommandsEnabled()` falls back to `roleplayDmCommandsEnabled`, and `getChatTranslationConfig`/`TranslationSection` fall back to `translationTargetLang` and `translationPrompt`. All three are now listed, so the follower gets what an apply by hand gives (removed, or the profile's older value). 4. **Low: the regression did not cover keeping `customAgentImageSettings` when the profile has none.** It now asserts it, and removing the preservation fails. Rejected: none. Checked and left as it is: `scopedRegexMode` (the round 8 known effect) has the same shape, with the prompt preset in place of the connection. But its missing value is the visible **Use preset** switch in Chat Settings, so a follower that gets "use preset" shows the same switch as the saving chat and uses its own prompt preset's mode. Captioning and schedules have no such switch, so their missing value was invisible to the user. Follow-ups (not in this PR): - **App translator defaults reach followers for settings the saving chat never had (low, design question).** A saving chat made before you saved app translator defaults has no translator keys and uses the built-in ones (Google, nothing translated). **Save and update** then gives followers the app's defaults, as picking the profile again does; the regression asserts this on purpose. Matching the saving chat instead would make **Save and update** differ from an apply by hand. Maintainer: say if followers should skip the app's translator defaults. - **Applying a profile by hand also removes a chat's "schedules off" when the profile has no value**, so that chat's card schedules come back. This is staging behaviour (applying **Default** resets it the same way), left as it is under this PR's rule for explicit apply. ### Round 8 (head efa344a93) Fixed in fa5577950, all in `syncFollowerMetadata` and `applyToChat` (`chat-presets.storage.ts`): 1. **Medium: Save and update wiped the prompt templates of the four set-up agents each follower keeps.** `agentPromptTemplateIds` was copied whole, so a follower kept Lorebook Keeper, Knowledge Retrieval, Knowledge Router or Expression Engine on but lost the template picked in its add dialog (`buildAgentAddMetadataPatch`), and those agents fell back to their default prompts (`resolveAgentPromptTemplate`). The follower now keeps its own template entries for those four agents and gets the profile's for the rest. 2. **Medium: the empty-agent-list guard rested on a false premise.** An empty `activeAgentIds` runs no agents: `generate.routes.ts` loads agent configs only when the list is non-empty (or a Roleplay command needs one), and `runtime-agent-sections.ts`, `committed-tracker-context.ts`, `marker-expander.ts`, `chats.routes.ts` and the retry route all treat an empty list as none. So a follower kept Director and Illustrator after a save from a chat that only runs set-up agents. The guard is gone; the follower now gets `[]` plus its own set-up agents. The stale `ChatMetadata.activeAgentIds` doc comment ("empty = use globally-enabled agents") is corrected. 3. **Medium (also reported as low): a follower kept its own change when the saving chat never set that setting**, though the dialog, docs and CHANGELOG say those changes are replaced. Save snapshots the saving chat's whole metadata, so a missing key means "default there", not "older profile". The follower update now gives each listed key what an apply by hand gives it, including going back to the default, which is also what #7409's workaround (pick the profile again) does. The apply-by-hand exceptions carry over: a profile without a window layout, scene video connection, prompt templates or custom agent image settings leaves the chat's own. The dialog, docs and CHANGELOG copy stay as they were, since they now match; the guide adds one sentence saying settings left at their default go back to it. 4. **Low: the regression passed with the explicit-apply Advanced Memory anchor preservation removed.** It now asserts the anchors on explicit apply, and the follower path uses the same preserved value, so the mutation fails twice. 5. **Low: the regression passed with the `multiplayer*` prefix rule removed.** It now uses an unlisted `multiplayerFutureState` key, and the mutation fails. Rejected: none. Follow-ups: none. Known effects of item 3, left as they are because an apply by hand does the same: a follower's own `scopedRegexMode` override is removed when the saving chat inherits from its prompt preset, so the follower then inherits from its own preset; and a listed value written when the follower was created (for example `conversationSchedulesEnabled: true` when its characters had schedules) is removed when the saving chat has none, which for schedules still means "on when the chat has schedules" (`areConversationSchedulesEnabled`). ### Round 7 (head cdf969f42) Fixed: 1. **Medium: Advanced Parameters were copied to followers on another connection.** `chatParameters` holds only the differences from the chat's own connection defaults (`AdvancedParametersSection` `setParameters`), and `customParameters` are deep-merged raw into the provider body (`base-provider.ts` `deepMergeRequestBody`). A follower on a direct Anthropic or Google connection got an OpenRouter `provider` routing object and other options from the saving chat and lost its own. Now a follower gets `chatParameters` only when its `connectionId` equals the profile's, which is the connection the parameters were saved from. Explicit apply sets both together, as on staging. 2. **Medium: Knowledge Retrieval and Knowledge Router could read another chat's lorebooks and files.** The add dialog writes the chosen sources both to the chat (`knowledgeAgentSources`, not copied) and to the global agent settings, and a chat without its own sources falls back to the global ones, where manual lorebook ids skip the chat-scope filter. Copying `activeAgentIds` turned the agent on in chats that never picked sources. These two agents now stay on or off as each follower has them. 3. **Low: Lorebook Keeper and Expression Engine were turned on without their setup.** Without its own `lorebookKeeperTargetLorebookId`, Keeper picks the first writable book (which can be a character or world lorebook other chats share) as a non-explicit target. Without `spriteCharacterIds`, Expression Engine runs a model call every turn while the sprite overlay stays hidden. Both now stay on or off as each follower has them. All three are in `syncFollowerMetadata` (`chat-presets.storage.ts`); the allowlist keeps both keys, with comments saying they copy only in part. Rejected: none. ### Round 6 (head c320fde07) Fixed: 1. **High: narrator-only audiences were copied without the narrator.** Saving from an individual-narration group chat with Rolls, Documents, Whispers or Combat set to "Narrator only" gave other chats `"narrator"`, but each kept its own `roleplayCommandNarratorId` (null in a 1:1 chat or a group without a narrator). `isRoleplayCommandAllowed` then refused those commands for every character there. The four audience keys are off the allowlist, so each chat keeps its own. Explicit apply is unchanged from staging (it also sets the profile's narrator id). Regression: the follower keeps `"all"`, and roll, document and whisper stay allowed for its character. 2. **Low: the Noodle permission was copied.** `noodleTimelineContextEnabled` lets Noodle use that chat's recent messages, a per-chat permission like `discordWebhookUrl`. Off the allowlist; explicit apply unchanged. 3. **Low: the Scene videos connection never reached profiles.** `sceneVideoConnectionId` is a plain connection choice with no per-chat references, so it is now exempt from the `scene*` prefix rule, saved into profiles and on the allowlist. A profile without it leaves the chat's own on apply (see "Explicit apply and Save compared with staging"). Rejected: none. Known effect, left as it is: `groupChatMode` stays on the allowlist. If a follower group chat uses Individual narration with narrator-only commands and the profile says Merged, the update switches it to Merged, where narrator-only commands are not available (as when you switch it by hand; that chat's Roleplay Commands settings show the existing notice). Maintainer: say if narration mode should stay per chat instead. ### Round 5 (head 1ce025077) The maintainer asked for the allowlist after rounds 2 to 4 kept finding per-chat state that **Save and update** overwrote: `decisionTimers`, `spatialSharedWorldLink`, `authorNotes`/`authorNotesDepth`, `trackerFeaturedCharacterKeys`, `conversationSetupComplete`, and PixelForge's `pixelforge`/`pixelforgeCorruptExcerpt` (from CodeRabbit threads). All are now untouched on followers by construction, and the four pure runtime keys plus PixelForge's two are also left out of profiles. `authorNotes`/`authorNotesDepth` stay profile content for an explicit apply, as on staging. The round 4 follower list (`FOLLOWER_OWN_METADATA_KEYS`) is gone; every key it named is simply not on the allowlist. ### Earlier rounds Each finding was reproduced with the regression or traced in code. 1. **Fixed: a bulk update replaced each follower's turned-off lorebooks and scene background.** Round 2 excluded `excludedLorebookIds` and `background` from profiles everywhere; round 4 reverted that for explicit apply and Save (see below) and protects them on the follower path only. 2. **Fixed: followers' Advanced Memory anchors were replaced with the saving chat's message ids.** `advancedMemoryRosterChanges` is excluded, and the nested `knowledgeStarts`, `knowledgeConfirmed` and `narratorCharacterId` stay with each chat (see What changed). This also resolves the earlier open question. 3. **Fixed: other per-chat state was wiped from followers.** `encounterActive`, `archivedCharacterSnapshots` and `conversationSummaryFailures` are excluded. A sweep of keys the server and `ChatArea` write turned up the same problem for `spriteExpressions` and the six Roleplay DM thread keys, so those are excluded too. 4. **Fixed: Conversation followers kept their prompt preset but got the saving chat's custom prompt text.** In follower mode, `customSystemPrompt` now stays with the chat, matching how `handleModePromptPresetChange` pairs it with the preset. 5. **Fixed: one catch reported a failed profile save as "Could not update the other chats".** The profile save and the follower update now report separately, and the server finishes the other chats when one fails (counted in `failed`). 6. **Not changed (rejected): the dialog counts branches as other chats.** Each branch is its own chat row with its own copy of the settings, and it opens as a separate chat with its own Chat Settings. **Save and update** really does change it. The sidebar groups branches only for display. The count is the number of chats that will be overwritten, and leaving branches out would understate that or leave them stale. The toast reports the same number. ### Round 4 (head 889064ff3) Fixed: 1. **Background no longer saved into profiles or set by explicit apply, starred profiles, the wizard, or old profiles (high, reported twice).** `background` is out of `CHAT_PRESET_EXCLUDED_METADATA_KEYS` again, so Save stores it, an explicit apply sets it, profiles saved on staging keep it when read, and wizard defaults capture it, all as on staging. Followers keep their own. Regression: saved profile, explicit apply, `GET /active/roleplay` plus apply on a new chat, an old profile row, and the follower path. 2. **Turned-off lorebooks (`excludedLorebookIds`) no longer saved or applied (medium).** Same fix and regression as 1. `chat-wizard-defaults.ts` is back to staging. 3. **Follower update replaced each follower's Roleplay Commands narrator (medium).** `roleplayCommandNarratorId` is kept on the follower path. Explicit apply unchanged. 4. **Follower update retargeted each follower's Lorebook Keeper and knowledge sources (medium).** `lorebookKeeperTargetLorebookId` and `knowledgeAgentSources` are kept on the follower path. Explicit apply unchanged. 5. **Save waited about 40 s when `GET /chats` failed (low).** The count now uses one `api.get("/chats")` and falls back to the loaded list when it fails. Not covered by a regression (a one-line client change). 6. **Profile updates changed `hideSummarisedMessages` without hiding or showing the messages (low).** Followers keep their own value, so a follower's toggle and its hidden messages stay in step. The same gap on explicit apply exists on staging and is left as it is under this PR's rule; filed as #7426. The follower-kept keys share one list, `FOLLOWER_OWN_METADATA_KEYS` in `chat-presets.storage.ts`, which also absorbs the earlier `customSystemPrompt` special case. A follower that had no value for one of these keys stays without one. The regression checks both cases. Rejected: none. Every finding was reproduced with the regression or traced in code. Behaviour audit: all rows agree with the code. The two "Regression" verdicts (`background`, `excludedLorebookIds`) and the two follower "Defect" verdicts (`roleplayCommandNarratorId`, Lorebook Keeper and knowledge sources) are fixed above. The "worth confirming" row (`conversationAboutMeOverrides`, `inactiveCharacterIds`, `conversationStatusOverrides`) is listed for the maintainer under "Explicit apply and Save compared with staging". Docs: `settings-profiles.md` no longer calls the background or turned-off lorebooks running state, and the follower bullet lists what a chat keeps. Translation follow-up #7423 has a comment with the new wording. CHANGELOG entry updated to match. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * When saving a settings profile used by other chats of the same mode, choose to update those chats, save only the profile, or cancel. The dialog warns that updates can replace their changes to profile-managed settings. * Updates preserve each chat’s connection, story, characters, lorebooks, background, notes, and progress. Connection-dependent Advanced Parameters update only for chats using the profile’s connection. * Multiplayer rooms aren’t updated. Profiles don’t copy chat-specific running state, such as macro variables, into other chats. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:06:55 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7728
No description provided.