Skip to content

Commit 4d3508c

Browse files
feat(happy-app): show daemon label in session list subtitle
Display "daemon" label in the session subtitle when a session was started by the background daemon, so users can distinguish daemon- spawned sessions from terminal sessions at a glance. Closes #645
1 parent bb7a117 commit 4d3508c

13 files changed

Lines changed: 17 additions & 1 deletion

File tree

packages/happy-app/sources/sync/storageTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export const MetadataSchema = z.object({
3939
homeDir: z.string().optional(), // User's home directory on the machine
4040
happyHomeDir: z.string().optional(), // Happy configuration directory
4141
hostPid: z.number().optional(), // Process ID of the session
42+
startedBy: z.string().optional(), // How the session was started ('terminal' | 'daemon')
4243
flavor: z.string().nullish(), // Session flavor/variant identifier
4344
sandbox: z.any().nullish(), // Sandbox config metadata from CLI (or null when disabled)
4445
dangerouslySkipPermissions: z.boolean().nullish(), // Claude --dangerously-skip-permissions mode (or null when unknown)

packages/happy-app/sources/text/_default.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ export const en = {
300300

301301
session: {
302302
inputPlaceholder: 'Type a message ...',
303+
startedByDaemon: 'daemon',
303304
},
304305

305306
commandPalette: {

packages/happy-app/sources/text/translations/ca.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ export const ca: TranslationStructure = {
301301

302302
session: {
303303
inputPlaceholder: 'Escriu un missatge...',
304+
startedByDaemon: 'daemon',
304305
},
305306

306307
commandPalette: {

packages/happy-app/sources/text/translations/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ export const en: TranslationStructure = {
316316

317317
session: {
318318
inputPlaceholder: 'Type a message ...',
319+
startedByDaemon: 'daemon',
319320
},
320321

321322
commandPalette: {

packages/happy-app/sources/text/translations/es.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ export const es: TranslationStructure = {
301301

302302
session: {
303303
inputPlaceholder: 'Escriba un mensaje ...',
304+
startedByDaemon: 'daemon',
304305
},
305306

306307
commandPalette: {

packages/happy-app/sources/text/translations/it.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ export const it: TranslationStructure = {
330330

331331
session: {
332332
inputPlaceholder: 'Scrivi un messaggio ...',
333+
startedByDaemon: 'daemon',
333334
},
334335

335336
commandPalette: {

packages/happy-app/sources/text/translations/ja.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ export const ja: TranslationStructure = {
333333

334334
session: {
335335
inputPlaceholder: 'メッセージを入力...',
336+
startedByDaemon: 'デーモン',
336337
},
337338

338339
commandPalette: {

packages/happy-app/sources/text/translations/pl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ export const pl: TranslationStructure = {
312312

313313
session: {
314314
inputPlaceholder: 'Wpisz wiadomość...',
315+
startedByDaemon: 'daemon',
315316
},
316317

317318
commandPalette: {

packages/happy-app/sources/text/translations/pt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ export const pt: TranslationStructure = {
301301

302302
session: {
303303
inputPlaceholder: 'Digite uma mensagem ...',
304+
startedByDaemon: 'daemon',
304305
},
305306

306307
commandPalette: {

packages/happy-app/sources/text/translations/ru.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ export const ru: TranslationStructure = {
393393

394394
session: {
395395
inputPlaceholder: 'Введите сообщение...',
396+
startedByDaemon: 'демон',
396397
},
397398

398399
commandPalette: {

0 commit comments

Comments
 (0)