Skip to content
Open
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
1 change: 1 addition & 0 deletions packages/happy-app/sources/sync/storageTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const MetadataSchema = z.object({
homeDir: z.string().optional(), // User's home directory on the machine
happyHomeDir: z.string().optional(), // Happy configuration directory
hostPid: z.number().optional(), // Process ID of the session
startedBy: z.string().optional(), // How the session was started ('terminal' | 'daemon')
flavor: z.string().nullish(), // Session flavor/variant identifier
sandbox: z.any().nullish(), // Sandbox config metadata from CLI (or null when disabled)
dangerouslySkipPermissions: z.boolean().nullish(), // Claude --dangerously-skip-permissions mode (or null when unknown)
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/_default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ export const en = {

session: {
inputPlaceholder: 'Type a message ...',
startedByDaemon: 'daemon',
},

commandPalette: {
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/translations/ca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export const ca: TranslationStructure = {

session: {
inputPlaceholder: 'Escriu un missatge...',
startedByDaemon: 'daemon',
},

commandPalette: {
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export const en: TranslationStructure = {

session: {
inputPlaceholder: 'Type a message ...',
startedByDaemon: 'daemon',
},

commandPalette: {
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/translations/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export const es: TranslationStructure = {

session: {
inputPlaceholder: 'Escriba un mensaje ...',
startedByDaemon: 'daemon',
},

commandPalette: {
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/translations/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ export const it: TranslationStructure = {

session: {
inputPlaceholder: 'Scrivi un messaggio ...',
startedByDaemon: 'daemon',
},

commandPalette: {
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/translations/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ export const ja: TranslationStructure = {

session: {
inputPlaceholder: 'メッセージを入力...',
startedByDaemon: 'デーモン',
},

commandPalette: {
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/translations/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export const pl: TranslationStructure = {

session: {
inputPlaceholder: 'Wpisz wiadomość...',
startedByDaemon: 'daemon',
},

commandPalette: {
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/translations/pt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export const pt: TranslationStructure = {

session: {
inputPlaceholder: 'Digite uma mensagem ...',
startedByDaemon: 'daemon',
},

commandPalette: {
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/translations/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ export const ru: TranslationStructure = {

session: {
inputPlaceholder: 'Введите сообщение...',
startedByDaemon: 'демон',
},

commandPalette: {
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/translations/zh-Hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ export const zhHans: TranslationStructure = {

session: {
inputPlaceholder: '输入消息...',
startedByDaemon: '守护进程',
},

commandPalette: {
Expand Down
1 change: 1 addition & 0 deletions packages/happy-app/sources/text/translations/zh-Hant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ export const zhHant: TranslationStructure = {

session: {
inputPlaceholder: '輸入訊息...',
startedByDaemon: '守護程序',
},

commandPalette: {
Expand Down
6 changes: 5 additions & 1 deletion packages/happy-app/sources/utils/sessionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ export function formatPathRelativeToHome(path: string, homeDir?: string): string
*/
export function getSessionSubtitle(session: Session): string {
if (session.metadata) {
return formatPathRelativeToHome(session.metadata.path, session.metadata.homeDir);
const path = formatPathRelativeToHome(session.metadata.path, session.metadata.homeDir);
if (session.metadata.startedBy === 'daemon') {
return `${path} · ${t('session.startedByDaemon')}`;
}
return path;
}
return t('status.unknown');
}
Expand Down