Skip to content

The agent that grows with you

feat(desktop): add configurable terminal font family (terminal.font_family in config.yaml)

baoyu0131aee9260fd
diff --git a/apps/desktop/src/app/session/hooks/use-hermes-config.ts b/apps/desktop/src/app/session/hooks/use-hermes-config.ts
index 59e990c6475..edb9e10b92c 100644
--- a/apps/desktop/src/app/session/hooks/use-hermes-config.ts
+++ b/apps/desktop/src/app/session/hooks/use-hermes-config.ts
@@ -112,7 +112,7 @@ export function useHermesConfig({ activeSessionIdRef }: HermesConfigOptions) {
applyVoiceStopPhraseFromConfig(config)
applyThinkingSoundFromConfig(config)
} catch {
- // Config is nice-to-have; chat still works without it.
+ // Config is nice-to-have; chat still works without it.
}
},
[activeSessionIdRef]
diff --git a/apps/desktop/src/app/settings/constants.ts b/apps/desktop/src/app/settings/constants.ts
index 51f9ab9c2dc..a7061b20f19 100644
--- a/apps/desktop/src/app/settings/constants.ts
+++ b/apps/desktop/src/app/settings/constants.ts
@@ -411,6 +411,7 @@ export const FIELD_LABELS: Record<string, string> = defineFieldCopy({
cwd: 'Working Directory',
backend: 'Execution Backend',
timeout: 'Command Timeout',
+ fontFamily: 'Terminal Font',
persistentShell: 'Persistent Shell',
envPassthrough: 'Environment Passthrough',
dockerImage: 'Docker Image',
@@ -573,6 +574,7 @@ export const FIELD_DESCRIPTIONS: Record<string, string> = defineFieldCopy({
},
terminal: {
cwd: 'Default project folder for tool and terminal work.',
+ fontFamily: 'CSS font-family for the desktop embedded terminal (xterm.js). Set to a Nerd Font name like CaskaydiaCoveNerdFont to render icon glyphs correctly.',
persistentShell: 'Keep shell state between commands when the backend supports it.',
envPassthrough: 'Environment variables to pass into tool execution.',
dockerImage: 'Container image used when the execution backend is Docker.',
diff --git a/apps/desktop/src/types/hermes.ts b/apps/desktop/src/types/hermes.ts
index 0b23acbe46a..796784ff61c 100644
--- a/apps/desktop/src/types/hermes.ts
+++ b/apps/desktop/src/types/hermes.ts
@@ -339,6 +339,7 @@ export interface HermesConfig {
}
terminal?: {
cwd?: string
+ font_family?: string
}
stt?: {
enabled?: boolean
diff --git a/hermes_cli/config_defaults.py b/hermes_cli/config_defaults.py
index d57abef08f1..74055e47be9 100644
--- a/hermes_cli/config_defaults.py
+++ b/hermes_cli/config_defaults.py
@@ -239,6 +239,14 @@ DEFAULT_CONFIG = {
"backend": "local",
"modal_mode": "auto",
"cwd": ".", # Use current directory
+ # Terminal font family for the desktop app's embedded xterm.js terminal.
+ # When set (e.g. "'CaskaydiaCoveNerdFont', 'JetBrains Mono', monospace"),
+ # the desktop terminal uses this as the CSS font-family value, with the
+ # built-in default ("'JetBrains Mono', 'Cascadia Code', 'SF Mono', Menlo,
+ # Consolas, monospace") as fallback when the field is empty or unset.
+ # This lets users install a Nerd Font (or any custom font) and configure
+ # it here without patching the built desktop app.
+ "font_family": "",
"timeout": 180,
# Bounded grace period (seconds) between SIGTERM and an escalated
# SIGKILL when terminating a host process tree (browser daemons, etc.).