fix: never greet the user by the assistant's default name (UF-055)

Home and the sidebar read the user's name from the identity row, which the
sidecar fills with the assistant's identity named Waggle. Both now use the
profile name, with the identity name as a fallback that skips the default.
This commit is contained in:
shumeiko.it
2026-10-27 14:24:35 +01:00
parent c2998f1a6b
commit 659c84bee2
8 changed files with 111 additions and 13 deletions

View File

@@ -7,8 +7,11 @@ export interface IdentityConfig {
capabilities?: string[];
}
/** The assistant's own default name. It is not the user's name. */
export const DEFAULT_AGENT_NAME = 'Waggle';
const DEFAULT_IDENTITY: Required<IdentityConfig> = {
name: 'Waggle',
name: DEFAULT_AGENT_NAME,
role: 'AI assistant with persistent memory and web access',
personality:
'Direct, concise, helpful. Leads with answers, avoids filler. Admits uncertainty rather than guessing.',

View File

@@ -198,7 +198,7 @@ export {
type MessagesCompressionEvent,
type CompressMessagesResult,
} from './long-task/messages-compressor.js';
export { ensureIdentity, type IdentityConfig } from './auto-identity.js';
export { ensureIdentity, DEFAULT_AGENT_NAME, type IdentityConfig } from './auto-identity.js';
export { buildSelfAwareness, type AgentCapabilities } from './self-awareness.js';
export {
loadSystemPrompt,