aboutsummaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-13 18:36:47 +0300
committerGitHub <noreply@github.com>2026-09-13 17:36:47 +0200
commitfc1cb77f0572948552377b23f7754a3016ac7dfa (patch)
tree5412b796aaaa00894fe628b2ffed8d747e6f452d /src/config
parent3be35231497f33f38aeffd84df02642479995bc6 (diff)
feat: add Letta Code detection and restore (#3107)
refs #3106 Co-authored-by: Cameron <cameron@pfiffer.org>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/model.rs2
-rw-r--r--src/config/sound.rs14
2 files changed, 15 insertions, 1 deletions
diff --git a/src/config/model.rs b/src/config/model.rs
index 604fe9ad..6ef6274d 100644
--- a/src/config/model.rs
+++ b/src/config/model.rs
@@ -1060,7 +1060,7 @@ pub struct ExperimentalConfig {
/// if the list contains no valid names, the reveal does not apply.
/// Accepted names: pi, claude, codex, gemini, cursor, devin, cline,
/// opencode, copilot, kimi, kiro, droid, amp, grok, hermes, kilo,
- /// qodercli, qoder, qwen, qwen-code, maki.
+ /// qodercli, qoder, qwen, qwen-code, letta, letta-code, maki.
/// Default: empty.
pub cjk_ime_agents: Vec<String>,
/// Cursor shape rendered for the IME anchor when
diff --git a/src/config/sound.rs b/src/config/sound.rs
index 2215c832..8eb2561e 100644
--- a/src/config/sound.rs
+++ b/src/config/sound.rs
@@ -44,6 +44,7 @@ pub struct AgentSoundOverrides {
pub kilo: AgentSoundSetting,
pub qodercli: AgentSoundSetting,
pub qwen: AgentSoundSetting,
+ pub letta: AgentSoundSetting,
pub maki: AgentSoundSetting,
pub muse: AgentSoundSetting,
}
@@ -142,6 +143,7 @@ impl AgentSoundOverrides {
Some(Agent::Kilo) => self.kilo,
Some(Agent::Qodercli) => self.qodercli,
Some(Agent::Qwen) => self.qwen,
+ Some(Agent::Letta) => self.letta,
Some(Agent::Maki) => self.maki,
Some(Agent::Muse) => self.muse,
None => AgentSoundSetting::Default,
@@ -183,6 +185,7 @@ impl Default for AgentSoundOverrides {
kilo: AgentSoundSetting::Default,
qodercli: AgentSoundSetting::Default,
qwen: AgentSoundSetting::Default,
+ letta: AgentSoundSetting::Default,
maki: AgentSoundSetting::Default,
muse: AgentSoundSetting::Default,
}
@@ -223,6 +226,17 @@ claude = "on"
assert_eq!(config.ui.sound.agents.droid, AgentSoundSetting::Off);
assert_eq!(config.ui.sound.agents.claude, AgentSoundSetting::On);
assert_eq!(config.ui.sound.agents.pi, AgentSoundSetting::Default);
+ assert_eq!(config.ui.sound.agents.letta, AgentSoundSetting::Default);
+ }
+
+ #[test]
+ fn letta_sound_override_is_used() {
+ let overrides: AgentSoundOverrides = toml::from_str("letta = \"on\"").unwrap();
+ assert_eq!(overrides.letta, AgentSoundSetting::On);
+ assert_eq!(
+ overrides.for_agent(Some(Agent::Letta)),
+ AgentSoundSetting::On
+ );
}
#[test]