Skip to content

fix(agent-title): treat Claude Code quarter-circle spinners as working (#13889) - #13925

Merged
brennanb2025 merged 2 commits into
mainfrom
brennanb2025/bug-chat-ui-falls-back-to-cli-view-on-every-mess
Aug 12, 2026
Merged

brennanb2025 merged 2 commits into
mainfrom
brennanb2025/bug-chat-ui-falls-back-to-cli-view-on-every-mess

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Claude Code shows a little spinner in the terminal's title while it's thinking. In 2.1.228 it changed that spinner from braille dots (⠂) to quarter circles (◐). Orca only knew about the braille dots, so the moment Claude started working, Orca thought "there's no agent here anymore — it must have quit" and dumped you out of the Chat UI back to the raw terminal. This teaches Orca the new spinner shapes.

What Changed

detectAgentStatusFromTitle and the Claude identity checks now accept quarter-circle spinner glyphs (U+25D0–U+25D3) alongside braille, via a new shared containsAgentSpinnerGlyph helper in agent-title-core.ts.

Applied at every site that treats "title has a spinner" as generic agent activity — 7 in total, not the 3 the issue suggested:

File Why it mattered
agent-title-status.ts detectAgentStatusFromTitle → working; clearWorkingIndicators strips the new glyph
agent-title-identity.ts isClaudeAgent — busy pane keeps its "Claude Code" identity
terminal-title-agent-type.ts second, independent copy of isClaudeAgent + hasGenericClaudeStatusPrefix (6 importers)
agent-decorative-title-signature.ts otherwise every ◐→◑ tick reads as a real title change and churns tab/sort state
agent-title-decoration.ts strips the leading glyph so the tab label isn't a redundant second icon
worktree-status.ts worktree status dot attribution while working

Agent-specific braille frame shapes (Grok rotating frames, Pi, synthetic Cursor titles) are deliberately left braille-only — those are other agents' or Orca's own formats.

Why

Claude Code 2.1.228 (2026-08-11) changed its busy title spinner. I captured OSC titles from both real binaries running the same one-line prompt:

Version idle busy
2.1.227 ✳ Claude Code ⠂ / ⠐ Claude Code (U+2802 / U+2810)
2.1.228 ✳ Claude Code ◐ / ◑ Claude Code (U+25D0 / U+25D1)

Note: the issue's stated mechanism is slightly off, and it matters for the fix. #13889 says ◐ Claude Code returns null. It doesn't — that title still contains claude as a whole token, so it falls through to the name-based tail and returns 'idle' (wrong status, but no exit). The exit actually fires on the summary-bearing frame, which has no agent-name token:

✳ Claude Code  →  ◐ Claude Code  →  ◑ Say hi in one word
   idle              (was 'idle')       null  → "idle → no-status = exited"

→ confirmPtyAgentExit → resolveNativeChatLeafRoute returns exitChat → setTabViewMode(tabId, 'terminal').

Claude switches to the task-summary title within the first turn, which is why the symptom hits every message including the first, exactly as reported. The one-line test the issue suggests (detectAgentStatusFromTitle('◐ Claude Code')) would have passed against 'idle' and missed the actual exit path.

I also placed the identity check inside isClaudeAgent rather than the top-level prefix block the issue suggested — that block runs before the Codex/Grok/Cursor name checks, so ◐ Grok would have been mislabeled "Claude Code".

This will hit every Orca + Claude Code user as the 2.1.228 autoupdate rolls out.

Linked Issue

Fixes #13889

Visual Proof

No before/after recording — flagging honestly rather than writing N/A, since there is a real interaction change. Capturing it requires installing 2.1.228 as the machine's global claude, which I didn't want to do unprompted. Happy to record one if a reviewer wants it before merge.

The behavior change is pinned deterministically instead. Replaying the captured 2.1.228 title sequence through createAgentStatusTracker:

titles: ✳ Claude Code → ◐ Claude Code → ◑ Claude Code
      → ◑ Say hi in one word → ◐ Say hi in one word → ✳ Say hi in one word

before:  ['exited']              ← chat surface routes exitChat, tab flips to terminal
after:   ['working', 'idle']     ← identical to the 2.1.227 braille sequence

Per-title, before → after:

title status label isClaude
◐ Claude Code idle → working null → Claude Code false → true
◐ Say hi in one word null → working null → Claude Code false → true
⠂ Say hi in one word (2.1.227) working (unchanged) Claude Code (unchanged) true (unchanged)

How to test

Repro without installing anything globally — download the binary to a temp dir and PTY-capture its titles:

cd $(mktemp -d)
npm pack @anthropic-ai/[email protected]   # or your platform
tar xzf *.tgz
# spawn package/claude under node-pty, scrape /\x1b\]([012]);([^\x07\x1b]*)(?:\x07|\x1b\\)/g

Note that grepping the binary for a spinner array does not work — the npm package is a 24KB thin installer and the real 290MB binary has a compressed JS payload. A null grep result is meaningless (2.1.227 shows no braille array either), and random machine-code bytes decode as ◐, giving convincing false hits. PTY capture is the only reliable oracle.

In-app: install Claude Code 2.1.228, enable the experimental Chat UI, open a Claude session in chat view, send any message. Before this change the tab flips to terminal view as Claude starts working; after, it stays in chat.

Automated:

npx vitest run --config config/vitest.config.ts src/shared/repro-13889-claude-quarter-circle-busy-title.test.ts

Platforms: logic is pure string/codepoint matching over OSC titles with no platform branches, so it behaves identically on macOS/Linux/Windows and over SSH. Verified on macOS.

  • I manually tested these changes locally — not checked: no live in-app run; see Visual Proof
  • Automated tests added/updated, or explained why not below

src/shared/repro-13889-claude-quarter-circle-busy-title.test.ts replays the captured turn and asserts parity with 2.1.227 frame-for-frame. Verified non-vacuous: with the source fix stashed, 8 of 9 assertions fail, including expected [ 'exited' ] to not include 'exited'. (The 9th is a boundary guard that Gemini's ◇ U+25C7 idle glyph — which neighbors the spinner block — is not swallowed; it correctly passes both ways.)

AI Disclosure

Internal contribution. Investigated and implemented with Claude Opus 5.

Review

  • Security: none — no new input surface; matching is over OSC titles Orca already parses, against two fixed codepoint ranges.
  • Cross-platform: no platform branches; pure codepoint matching. The glyph change ships in Claude Code itself, so Linux/Windows are affected identically and fixed identically.
  • Remote SSH: OSC titles arrive over the same PTY path regardless of transport; no wire format, RPC param, or stream opcode changed.
  • Mobile / remote wire compatibility: no wire change. Mobile has no copy of this logic — it consumes shared detection through the daemon. Old clients paired to a new host see the same title strings they see today; the host publishes no new content.
  • Backwards compatibility: purely additive — braille and ✳ / . / * handling is untouched, so 2.1.227 and earlier behave exactly as before (asserted frame-for-frame in the tests).
  • Performance: the added scan is a bounded codepoint check that only runs when the braille scan already missed.
  • Forward-looking: reserves the full U+25D0–U+25D3 quarter-circle block, so adding ◒/◓ frames later won't regress this. The deeper fragility the issue calls out — any unrecognized glyph after an idle title reads as an exit — is not addressed here and is worth a separate issue.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason — see Visual Proof; deliberately not claimed
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • pnpm lint, pnpm typecheck pass locally; targeted vitest suites pass — see below

Ran locally: pnpm lint (clean), pnpm typecheck:tsc (clean), oxfmt --check (clean), and vitest over src/shared, src/renderer, src/main, src/renderer/src/store — 8310 passed in the changed surface, no regressions. pnpm build not run locally; leaving that to CI.

Local-only red, not caused by this PR: src/main/ipc/pty.test.ts fails 10 tests locally (MiMo/Pi/OMP overlay env). It fails identically on a clean tree at origin/main (444638d) with this change stashed, so it is not from this branch. Most likely a local-environment artifact — my node is v26.5.0 while the repo pins node 24 — rather than a real break on main; CI's node 24 / node 26 shards are the authority. Nothing in this change touches PTY spawn env.

Claude Code 2.1.228 swapped its busy OSC title spinner from braille
(U+2800-U+28FF) to quarter circles (U+25D0/U+25D1). Orca recognized a busy
Claude title only by braille codepoints, so the new frames matched nothing.

The summary-bearing busy frame ("<glyph> Say hi in one word") carries no
"claude" name token, so it resolved to no-status. The tracker's "idle or
permission followed by no-status means the agent exited" rule then fired
mid-turn, confirmPtyAgentExit confirmed it, and the chat surface routed
exitChat -- kicking the tab to the terminal view on every message.

Widen the accepted glyph set via a shared containsAgentSpinnerGlyph helper.
Agent-specific braille frame shapes (Grok, Pi, synthetic Cursor) stay pinned
to their own glyph set.

Fixes #13889
@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b0e0a6eb-0e8a-4718-8de3-f81197ce9074

📥 Commits

Reviewing files that changed from the base of the PR and between 5570398 and 44669c5.

📒 Files selected for processing (1)
  • src/shared/agent-title-core.ts
💤 Files with no reviewable changes (1)
  • src/shared/agent-title-core.ts

📝 Walkthrough

Walkthrough

The change adds quarter-circle spinner detection and combines it with existing Braille detection. Claude title identity, status, terminal-agent classification, worktree attribution, decorative normalization, and working-indicator cleanup now use the broader spinner handling. New regression tests cover captured Claude busy-title sequences, tracker events, stale-title cleanup, decorative transitions, Braille parity, and Gemini idle-glyph behavior.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes address issue #13889 by recognizing quarter-circle spinners, preserving Claude identity, preventing false exits, and adding regression tests.
Out of Scope Changes check ✅ Passed The changes remain focused on spinner recognition, related title handling, worktree attribution, and regression coverage for issue #13889.
Title check ✅ Passed The title clearly identifies the main change: recognizing Claude Code quarter-circle spinners as working indicators.
Description check ✅ Passed The description is complete and explains the change, cause, testing, compatibility, linked issue, and the intentional absence of visual proof.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bff95a72-ffba-4981-b368-84f512b99e02

📥 Commits

Reviewing files that changed from the base of the PR and between 444638d and 5570398.

📒 Files selected for processing (9)
  • src/renderer/src/lib/worktree-status.ts
  • src/shared/agent-decorative-title-signature.ts
  • src/shared/agent-title-core.ts
  • src/shared/agent-title-decoration.ts
  • src/shared/agent-title-identity.ts
  • src/shared/agent-title-status.ts
  • src/shared/repro-13889-claude-quarter-circle-busy-title.test.ts
  • src/shared/terminal-output-side-effects.ts
  • src/shared/terminal-title-agent-type.ts

Comment thread src/shared/agent-title-core.ts Outdated
Comment on lines +53 to +54
// eslint-disable-next-line no-control-regex -- intentional unicode range
export const QUARTER_CIRCLE_SPINNER_RE = /[\u25d0-\u25d3]/g

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Remove the unused no-control-regex suppressions.

oxlint reports both directives as unused because the regular expressions contain no control characters.

  • src/shared/agent-title-core.ts#L53-L54: remove the no-control-regex directive before QUARTER_CIRCLE_SPINNER_RE.
  • src/shared/terminal-output-side-effects.ts#L32-L33: remove the no-control-regex directive before SPINNER_FRAME_GLYPH_RE.
🧰 Tools
🪛 GitHub Check: static analysis

[failure] 53-53: oxlint
Unused eslint-disable directive (no problems were reported).

📍 Affects 2 files
  • src/shared/agent-title-core.ts#L53-L54 (this comment)
  • src/shared/terminal-output-side-effects.ts#L32-L33

Source: Linters/SAST tools

Comment on lines +95 to +98
it('does not claim Gemini’s ◇ idle glyph, which neighbors the spinner block', () => {
expect(detectAgentStatusFromTitle('◇ Gemini CLI')).toBe('idle')
expect(getAgentLabel('◇ Gemini CLI')).toBe('Gemini CLI')
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Assert that ◇ is outside the Claude spinner range.

detectAgentStatusFromTitle and getAgentLabel handle Gemini titles before the generic spinner predicate. The current assertions can therefore pass if containsAgentSpinnerGlyph incorrectly includes ◇. Add an isClaudeAgent assertion to exercise the generic identity path.

Proposed test addition
   it('does not claim Gemini’s ◇ idle glyph, which neighbors the spinner block', () => {
+    expect(isClaudeAgent('◇ Gemini CLI')).toBe(false)
     expect(detectAgentStatusFromTitle('◇ Gemini CLI')).toBe('idle')
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
it('does not claim Gemini’s ◇ idle glyph, which neighbors the spinner block', () => {
expect(detectAgentStatusFromTitle('◇ Gemini CLI')).toBe('idle')
expect(getAgentLabel('◇ Gemini CLI')).toBe('Gemini CLI')
})
it('does not claim Gemini’s ◇ idle glyph, which neighbors the spinner block', () => {
expect(isClaudeAgent('◇ Gemini CLI')).toBe(false)
expect(detectAgentStatusFromTitle('◇ Gemini CLI')).toBe('idle')
expect(getAgentLabel('◇ Gemini CLI')).toBe('Gemini CLI')
})

// Braille spinner glyphs (U+2800–U+28FF); mirrors the range clearWorkingIndicators strips in agent-detection.ts.
// eslint-disable-next-line no-control-regex -- intentional unicode range
const BRAILLE_SPINNER_RE = /[\u2800-\u28FF]/g
// Braille and quarter-circle spinner glyphs; mirrors the ranges clearWorkingIndicators strips in agent-detection.ts.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Update the stale source-file reference.

clearWorkingIndicators is defined in src/shared/agent-title-status.ts in this cohort. The comment points to agent-detection.ts. Use the current path so future spinner-range changes target the correct file.

Proposed fix
-// Braille and quarter-circle spinner glyphs; mirrors the ranges clearWorkingIndicators strips in agent-detection.ts.
+// Braille and quarter-circle spinner glyphs; mirrors the ranges clearWorkingIndicators strips in agent-title-status.ts.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// Braille and quarter-circle spinner glyphs; mirrors the ranges clearWorkingIndicators strips in agent-detection.ts.
// Braille and quarter-circle spinner glyphs; mirrors the ranges clearWorkingIndicators strips in agent-title-status.ts.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Electron UI validation (#13889 / PR #13925)

Commit: 44669c5c49c35cb34be7fc4163f90105af589c28 (44669c5c49 — fix(agent-title): satisfy static analysis and trim scope)

Identity check (window.api.app.getIdentity()):

  • isDev: true
  • devWorktreeName: bug-chat-ui-falls-back-to-cli-view-on-every-mess
  • devBranch: brennanb2025/bug-chat-ui-falls-back-to-cli-view-on-every-mess
  • Confirmed via git rev-parse in this worktree → exact PR commit above

Method

Live in-app repro (no title-sequence fixture gap for the busy path):

  1. Launched this worktree’s pnpm dev with isolated userData + CDP (agent-browser / Electron remote debugging only — no Computer Use / OS injection).
  2. Seeded experimentalNativeChat: true.
  3. Ran Claude Code 2.1.228 from a temp-downloaded binary (@anthropic-ai/[email protected]), not the machine global 2.1.227.
  4. Opened experimental Chat UI (setTabViewMode(..., 'chat')).
  5. Sent “Say hi in one word” from the chat composer.
  6. Polled store state for ~24s: viewMode, tab label, agentStatusByPaneKey, runtimePaneTitlesByTabId.

Also: unit suite src/shared/repro-13889-claude-quarter-circle-busy-title.test.ts → 9/9 passed.

Visible outcome

Phase Tab label / title evidence Agent state viewMode
Before send ✳ Claude Code idle/done chat
During work ◐ Claude Code (U+25D0 quarter-circle) working chat (stayed)
Summary frame (also observed) runtime/agent title included ◑ One-word greeting request transitioning chat
After ✳ One-word greeting request; reply “Hi” in chat done chat

Polled viewMode sequence (20 samples): all chat — never flipped to terminal.
This is the failure mode from #13889 (idle → null/exit → setTabViewMode('terminal')).

Logs

Renderer/app log (orca-dev stderr):

  • No errors attributed to agent-title classification / chat→terminal routing.
  • Unrelated noise only: Claude usage refresh 401, legacy orchestration terminal_liveness_unavailable, worktree-trash ENOTEMPTY.

Screenshots

Claude 2.1.228 idle (TUI) before chat toggle:
04-claude-launch.png

Chat view before send:
05-chat-view-before-send.png

During quarter-circle busy (chat UI + composer still present; agent working):
06-during-00.png

After idle in chat (reply “Hi”; still chat, not terminal):
06-during-02.png
07-after-idle-chat.png

Gaps

Verdict: PASS — quarter-circle busy titles classified as working; experimental Chat UI does not fall back to terminal view on send.

@brennanb2025
brennanb2025 merged commit 137e724 into main Aug 12, 2026
44 checks passed
brennanb2025 added a commit that referenced this pull request Aug 12, 2026
…14092)

* fix(terminal): require agent identity for guarded sends (STA-4028)

Quarter-circle spinner glyphs (U+25D0-U+25D3) started classifying a title
as "working" in #13925, and that status alone authorized guarded agent
sends — which auto-submit with Enter — into any pane whose TUI animates
those generic progress frames.

Keep the glyphs as an activity signal, but stop treating a title whose
only agent evidence is a quarter circle as proof an agent owns the pane:
send authorization now falls through to recognized-agent identity in the
title or a recognized foreground process. Braille-spinner behavior is
unchanged.

* fix(terminal): preserve verified managed busy identity

* fix(terminal): bind busy identity to process incarnation

* chore(test): avoid duplicate terminal gate suite
AmethystLiang pushed a commit that referenced this pull request Aug 12, 2026
…14092)

* fix(terminal): require agent identity for guarded sends (STA-4028)

Quarter-circle spinner glyphs (U+25D0-U+25D3) started classifying a title
as "working" in #13925, and that status alone authorized guarded agent
sends — which auto-submit with Enter — into any pane whose TUI animates
those generic progress frames.

Keep the glyphs as an activity signal, but stop treating a title whose
only agent evidence is a quarter circle as proof an agent owns the pane:
send authorization now falls through to recognized-agent identity in the
title or a recognized foreground process. Braille-spinner behavior is
unchanged.

* fix(terminal): preserve verified managed busy identity

* fix(terminal): bind busy identity to process incarnation

* chore(test): avoid duplicate terminal gate suite

(cherry picked from commit cb41f3c)
zpyoung pushed a commit to zpyoung/orca that referenced this pull request Aug 14, 2026
stablyai#13889) (stablyai#13925)

* fix(agent-title): treat Claude Code quarter-circle spinners as working

Claude Code 2.1.228 swapped its busy OSC title spinner from braille
(U+2800-U+28FF) to quarter circles (U+25D0/U+25D1). Orca recognized a busy
Claude title only by braille codepoints, so the new frames matched nothing.

The summary-bearing busy frame ("<glyph> Say hi in one word") carries no
"claude" name token, so it resolved to no-status. The tracker's "idle or
permission followed by no-status means the agent exited" rule then fired
mid-turn, confirmPtyAgentExit confirmed it, and the chat surface routed
exitChat -- kicking the tab to the terminal view on every message.

Widen the accepted glyph set via a shared containsAgentSpinnerGlyph helper.
Agent-specific braille frame shapes (Grok, Pi, synthetic Cursor) stay pinned
to their own glyph set.

Fixes stablyai#13889

* fix(agent-title): satisfy static analysis and trim scope

(cherry picked from commit 137e724)
zpyoung pushed a commit to zpyoung/orca that referenced this pull request Aug 14, 2026
…tablyai#14092)

* fix(terminal): require agent identity for guarded sends (STA-4028)

Quarter-circle spinner glyphs (U+25D0-U+25D3) started classifying a title
as "working" in stablyai#13925, and that status alone authorized guarded agent
sends — which auto-submit with Enter — into any pane whose TUI animates
those generic progress frames.

Keep the glyphs as an activity signal, but stop treating a title whose
only agent evidence is a quarter circle as proof an agent owns the pane:
send authorization now falls through to recognized-agent identity in the
title or a recognized foreground process. Braille-spinner behavior is
unchanged.

* fix(terminal): preserve verified managed busy identity

* fix(terminal): bind busy identity to process incarnation

* chore(test): avoid duplicate terminal gate suite

(cherry picked from commit cb41f3c)
hyoteis pushed a commit to hyoteis/orca that referenced this pull request Aug 15, 2026
…tablyai#14092)

* fix(terminal): require agent identity for guarded sends (STA-4028)

Quarter-circle spinner glyphs (U+25D0-U+25D3) started classifying a title
as "working" in stablyai#13925, and that status alone authorized guarded agent
sends — which auto-submit with Enter — into any pane whose TUI animates
those generic progress frames.

Keep the glyphs as an activity signal, but stop treating a title whose
only agent evidence is a quarter circle as proof an agent owns the pane:
send authorization now falls through to recognized-agent identity in the
title or a recognized foreground process. Braille-spinner behavior is
unchanged.

* fix(terminal): preserve verified managed busy identity

* fix(terminal): bind busy identity to process incarnation

* chore(test): avoid duplicate terminal gate suite

(cherry picked from commit cb41f3c)
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
stablyai#13889) (stablyai#13925)

* fix(agent-title): treat Claude Code quarter-circle spinners as working

Claude Code 2.1.228 swapped its busy OSC title spinner from braille
(U+2800-U+28FF) to quarter circles (U+25D0/U+25D1). Orca recognized a busy
Claude title only by braille codepoints, so the new frames matched nothing.

The summary-bearing busy frame ("<glyph> Say hi in one word") carries no
"claude" name token, so it resolved to no-status. The tracker's "idle or
permission followed by no-status means the agent exited" rule then fired
mid-turn, confirmPtyAgentExit confirmed it, and the chat surface routed
exitChat -- kicking the tab to the terminal view on every message.

Widen the accepted glyph set via a shared containsAgentSpinnerGlyph helper.
Agent-specific braille frame shapes (Grok, Pi, synthetic Cursor) stay pinned
to their own glyph set.

Fixes stablyai#13889

* fix(agent-title): satisfy static analysis and trim scope
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…tablyai#14092)

* fix(terminal): require agent identity for guarded sends (STA-4028)

Quarter-circle spinner glyphs (U+25D0-U+25D3) started classifying a title
as "working" in stablyai#13925, and that status alone authorized guarded agent
sends — which auto-submit with Enter — into any pane whose TUI animates
those generic progress frames.

Keep the glyphs as an activity signal, but stop treating a title whose
only agent evidence is a quarter circle as proof an agent owns the pane:
send authorization now falls through to recognized-agent identity in the
title or a recognized foreground process. Braille-spinner behavior is
unchanged.

* fix(terminal): preserve verified managed busy identity

* fix(terminal): bind busy identity to process incarnation

* chore(test): avoid duplicate terminal gate suite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Chat UI falls back to CLI view on every message with Claude Code 2.1.228 (new busy title glyphs read as agent exit)

1 participant