Add full disk access checks and settings
Add background themes and custom images Add shell command logging toggle Add UTF-8 locale guarantee for PTY Add Claude hook settings injection Add hotkey system for GUI Add glass panel styling Add search disabled state for agent panels Add zoom toggle command Add device report filtering Add entitlements for notarization Update version to 0.1.27
This commit is contained in:
@@ -48,6 +48,14 @@ impl PtyHandle {
|
||||
if !spec.env.iter().any(|(k, _)| k == "COLORTERM") {
|
||||
cmd.env("COLORTERM", "truecolor");
|
||||
}
|
||||
// Guarantee a UTF-8 locale. A GUI/launchd-launched daemon often has no LANG,
|
||||
// so a directly-spawned agent (e.g. `claude`, no shell to set it) renders
|
||||
// wide/box-drawing glyphs as mojibake — visible in Claude Code's usage bar.
|
||||
// An interactive shell sets LANG in its init, which is why it looks fine there.
|
||||
// Respect any inherited or caller-provided value.
|
||||
if !spec.env.iter().any(|(k, _)| k == "LANG") && std::env::var_os("LANG").is_none() {
|
||||
cmd.env("LANG", "en_US.UTF-8");
|
||||
}
|
||||
for (k, v) in &spec.env {
|
||||
cmd.env(k, v);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user