Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ describe('Scout\'s welcome', () => {
const { SCOUT_WELCOME } = require('../../../config/native-agents/scout');

test('is in English, with no invitation to write in another language', () => {
expect(SCOUT_WELCOME).toBe("I'm Scout, your first agent here. Pick one below, or just tell me what you're working on.");
expect(SCOUT_WELCOME).toBe("Commonly is where your agents and the people you work with share one pod. I'm Scout, the agent already in this one. Pick one below, or tell me what you're working on.");
expect(SCOUT_WELCOME).not.toMatch(/[\u3040-\u30ff\u3400-\u9fff\uac00-\ud7af\uff00-\uffef]/);
});
});
Expand Down
10 changes: 5 additions & 5 deletions backend/__tests__/unit/config/scoutWelcome.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ const {

describe('Scout welcome locale', () => {
it('keeps the English welcome unchanged', () => {
expect(scoutWelcomeFor('en')).toBe("I'm Scout, your first agent here. Pick one below, or just tell me what you're working on.");
expect(SCOUT_WELCOME).toBe("I'm Scout, your first agent here. Pick one below, or just tell me what you're working on.");
expect(scoutWelcomeFor('en')).toBe("Commonly is where your agents and the people you work with share one pod. I'm Scout, the agent already in this one. Pick one below, or tell me what you're working on.");
expect(SCOUT_WELCOME).toBe("Commonly is where your agents and the people you work with share one pod. I'm Scout, the agent already in this one. Pick one below, or tell me what you're working on.");
});

it('returns a zh-CN welcome whose only English is Scout\'s name', () => {
it('returns a zh-CN welcome whose only English is Scout, Commonly and Pod', () => {
const zh = scoutWelcomeFor('zh-CN');
expect(zh).not.toBe(SCOUT_WELCOME);
expect(zh.replace(/Scout/g, '')).not.toMatch(/[A-Za-z]{2,}/);
expect(zh.replace(/Scout|Commonly|Pod/g, '')).not.toMatch(/[A-Za-z]{2,}/);
});

// TASK-644, ruled by UX Lead: the line says who Scout is and that typing
// works, and never calls the buttons "starts" (an internal name).
it('says who Scout is and that the person can just type, in both languages', () => {
expect(scoutWelcomeFor('zh-CN')).toBe('我是 Scout,你在这里的第一个智能体。选下面一项开始,或者直接告诉我你在做什么。');
expect(scoutWelcomeFor('zh-CN')).toBe('在 Commonly,你的智能体和一起工作的人共用同一个 Pod。我是 Scout,已经在这个 Pod 里的智能体。选下面一项开始,或者直接告诉我你在做什么。');
expect(SCOUT_WELCOME).not.toMatch(/\bstarts?\b/i);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe('workspace onboarding guide identity fork (2026-08-13)', () => {

const welcome = mockPostMessage.mock.calls[0][0];
expect(welcome.content).toBe(SCOUT_WELCOME);
expect(welcome.content).toBe("I'm Scout, your first agent here. Pick one below, or just tell me what you're working on.");
expect(welcome.content).toBe("Commonly is where your agents and the people you work with share one pod. I'm Scout, the agent already in this one. Pick one below, or tell me what you're working on.");
expect(welcome.payload).toEqual({
kind: 'starts',
starts: [
Expand Down
8 changes: 6 additions & 2 deletions backend/config/native-agents/scout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,14 @@ export const SCOUT_OFFER_COPY = {
* The body says who Scout is and that typing works too (TASK-644): two new
* people opened their workspace under the old one-line question, "What would
* you like to do first?", and left without clicking a start or typing.
*
* Its first sentence says what Commonly is (first-screen study, 2026-11-10):
* 12 of 34 outside signups reached their workspace and left within a minute,
* and nothing on that screen said what the product was.
*/
const SCOUT_WELCOME_BY_LOCALE = {
en: "I'm Scout, your first agent here. Pick one below, or just tell me what you're working on.",
'zh-CN': '我是 Scout,你在这里的第一个智能体。选下面一项开始,或者直接告诉我你在做什么。',
en: "Commonly is where your agents and the people you work with share one pod. I'm Scout, the agent already in this one. Pick one below, or tell me what you're working on.",
'zh-CN': '在 Commonly,你的智能体和一起工作的人共用同一个 Pod。我是 Scout,已经在这个 Pod 里的智能体。选下面一项开始,或者直接告诉我你在做什么。',
} as const;

export type ScoutLocale = keyof typeof SCOUT_WELCOME_BY_LOCALE;
Expand Down
Loading