aboutsummaryrefslogtreecommitdiff
path: root/src/detect/manifest
diff options
context:
space:
mode:
authorakbash <akbash@herdr.dev>2026-08-14 00:26:45 +0300
committerGitHub <noreply@github.com>2026-08-14 00:26:45 +0300
commit2075de5db083f1d1f4a9c67f6b36a8eeb250754e (patch)
tree5839d478165573edffbf1c4f226fcc6716286a3d /src/detect/manifest
parent37644cabe0d0f8c96f3ae7cc2a985f54d631adff (diff)
fix: detect all claude half-circle spinner frames (#2762)
refs #2760 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'src/detect/manifest')
-rw-r--r--src/detect/manifest/tests.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/detect/manifest/tests.rs b/src/detect/manifest/tests.rs
index 265dfa69..82ce52d9 100644
--- a/src/detect/manifest/tests.rs
+++ b/src/detect/manifest/tests.rs
@@ -626,6 +626,21 @@ fn claude_osc_title_braille_prefix_is_working() {
}
#[test]
+fn claude_osc_title_half_circle_frames_are_working() {
+ for frame in ['◐', '◓', '◑', '◒'] {
+ let title = format!("{frame} Initial conversation with Claude");
+ 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
let result = osc_explain(Agent::Claude, "", "✳ Claude Code", "");