From dfc57f058653151db166c02be765ad2cd89a542b Mon Sep 17 00:00:00 2001 From: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com> Date: Wed, 11 Nov 2026 18:26:08 +0000 Subject: [PATCH] fix(jcode): escape the title separator so the orcad bundle stays ASCII --- .../agent-status/title/providers/jcode-terminal-title.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/shared/agent-status/title/providers/jcode-terminal-title.ts b/src/shared/agent-status/title/providers/jcode-terminal-title.ts index f3094197222..ec3dec628ec 100644 --- a/src/shared/agent-status/title/providers/jcode-terminal-title.ts +++ b/src/shared/agent-status/title/providers/jcode-terminal-title.ts @@ -4,7 +4,7 @@ import { CLAUDE_IDLE } from '../agent-title-glyphs' // Captured provenance: docs/reference/jcode-hook-events.md. // (? is a shell path. -const JCODE_IDENTITY_TITLE_RE = /^jcode(?:(?:\/[\w-]+)?\s+[^\s·]+)?$/iu +const JCODE_IDENTITY_TITLE_RE = /^jcode(?:(?:\/[\w-]+)?\s+[^\s\u00B7]+)?$/iu /** True when a jcode title says only which jcode session this is, not what it is doing. */ export function isJcodeIdentityTerminalTitle(title: string | null | undefined): boolean { @@ -26,7 +26,8 @@ export function isJcodeIdentityTerminalTitle(title: string | null | undefined): } // title_with_metrics: `· work ~2m05s` (or `· working`) mid-turn, `· last ~2m05s` after it. -const JCODE_ACTIVITY_TAIL_RE = /\s·\s(?:(work|last)\s~(?:\d+h\d{2}m|\d+m\d{2}s|\d+s)|working)$/u +const JCODE_ACTIVITY_TAIL_RE = + /\s\u00B7\s(?:(work|last)\s~(?:\d+h\d{2}m|\d+m\d{2}s|\d+s)|working)$/u /** The tail is too generic to identify Jcode, and title-only readers must not see a turn that a * later conversation title drops, so it counts only in a pane already known to run Jcode. */