Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
15 changes: 15 additions & 0 deletions src/detect/manifest/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,21 @@ fn claude_osc_title_braille_prefix_is_working() {
assert!(result.visible_working);
}

#[test]
fn claude_osc_title_half_circle_frames_are_working() {
for frame in ['◐', '◓', '◑', '◒'] {
let title = format!("{frame} project");
let result = osc_explain(Agent::Claude, "", &title, "");
assert_eq!(result.state, AgentState::Working, "frame {frame}");
assert_eq!(
result.matched_rule.as_ref().map(|rule| rule.id.as_str()),
Some("osc_title_working"),
"frame {frame}"
);
assert!(result.visible_working, "frame {frame}");
}
}

#[test]
fn claude_osc_title_static_prefix_is_idle() {
// "✳" is U+2733, static prefix when Claude is not working
Expand Down
4 changes: 2 additions & 2 deletions src/detect/manifests/claude.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id = "claude"
version = "2026.08.12.1"
version = "2026.08.12.2"
min_engine_version = 2
updated_at = "2026-08-12T00:00:00Z"
aliases = ["claude-code"]
Expand All @@ -11,7 +11,7 @@ priority = 1100
region = "osc_title"
visible_working = true
# Braille covers <= 2.1.227; half-circles are the 2.1.228 busy spinner.
regex = ['^[\x{2800}-\x{28FF}\x{25D0}-\x{25D1}] ']
regex = ['^[\x{2800}-\x{28FF}\x{25D0}-\x{25D3}] ']

[[rules]]
id = "btw_overlay_working"
Expand Down
14 changes: 12 additions & 2 deletions src/terminal/title.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const CLAUDE_ACTIVITY_GLYPHS: &str = "·✢✳✶✻✽";
const CLAUDE_ACTIVITY_GLYPHS: &str = "·✢✳✶✻✽◐◓◑◒";

pub(crate) fn stripped_terminal_title(title: &str) -> Option<String> {
let title = crate::platform::terminal_title_for_presentation(title).trim();
Expand Down Expand Up @@ -28,7 +28,17 @@ mod tests {

#[test]
fn strips_one_recognized_leading_activity_glyph() {
for title in ["⠋ task", "✳ task", " ⠙ task ", "✢ task", "✻ task"] {
for title in [
"⠋ task",
"✳ task",
" ⠙ task ",
"✢ task",
"✻ task",
"◐ task",
"◓ task",
"◑ task",
"◒ task",
] {
assert_eq!(stripped_terminal_title(title).as_deref(), Some("task"));
}
assert_eq!(
Expand Down
4 changes: 2 additions & 2 deletions website/agent-detection/claude.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
id = "claude"
version = "2026.08.12.1"
version = "2026.08.12.2"
min_engine_version = 2
updated_at = "2026-08-12T00:00:00Z"
aliases = ["claude-code"]
Expand All @@ -11,7 +11,7 @@ priority = 1100
region = "osc_title"
visible_working = true
# Braille covers <= 2.1.227; half-circles are the 2.1.228 busy spinner.
regex = ['^[\x{2800}-\x{28FF}\x{25D0}-\x{25D1}] ']
regex = ['^[\x{2800}-\x{28FF}\x{25D0}-\x{25D3}] ']

[[rules]]
id = "btw_overlay_working"
Expand Down
Loading