Skip to content

fix(notes): name each agent in Send notes to by its sidebar name instead of its type - #35977

Merged
AmoabaKelvin merged 2 commits into
mainfrom
fix/notes-send-menu-agent-names
Oct 29, 2026
Merged

AmoabaKelvin merged 2 commits into
mainfrom
fix/notes-send-menu-agent-names

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​48 $\color{#cf222e}{\Huge{\mathbf{−}}}$​93 $\color{#cf222e}{\Huge{\mathbf{−}}}$​45
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​42 $\color{#cf222e}{\Huge{\mathbf{−}}}$​25 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​17

ELI5

With several agents of the same kind open, the "Send notes to" menu read "Claude", "Claude", "Claude" (or "Pi", "Pi"). Now each row starts with the name the sidebar already gives that agent: your tab rename, its generated title, or its prompt. The agent type moves to the icon and the grey line underneath.

What Changed

  • ReviewNotesSendMenuContent.tsx: rows that have a worktree agent row get their main line from the same rule the sidebar and dashboard rows use (useAgentRowConversationName(agent) ?? getAgentRowPrimaryText(agent.entry)). The grey line becomes Claude · Done · 4m ago. The raw tab title (often just ✳ Claude Code) shows only when a row has no name, the same fallback as before. The text column has a 300px cap so a long prompt cuts off instead of widening the menu, and hovering a row shows its full name.
  • Rows with no agent row, like title-detected terminals and first-turn chats, look the same as before: type label, then state and the raw tab title.
  • The menu backs both browser annotations and editor review notes, so both get the change.
  • ReviewNotesSendMenuContent.test.tsx: one test for two same-type agents with different names. It fails on main. Four tests are gone. Three checked that an "Active agent session" fallback doesn't render, but that fallback no longer exists anywhere in src. The fourth repeated the test above it, since target derivation is mocked and the PTY state it set never got read.

Why

The menu picked its own label, the agent type, instead of using the name Orca gives the agent everywhere else. Using the sidebar's naming rule means the menu and the sidebar always agree, and it covers every source of a name (rename, quick command, provider title, generated title, meaningful live title, prompt). A new title field on the send target would only have covered one of those.

Supersedes #19914, which put the tab's customTitle on the main line. That covers only user-renamed tabs and adds a second naming rule next to the sidebar's. Thanks @FabiaanSP for raising and prototyping this.

Linked Issue

Fixes #30155
Fixes #19913

Visual Proof

Three Claude agents in one workspace: one renamed "Payments", one with a long prompt and no rename, one renamed "Docs pass". The real menu component renders over a store holding those agents (component-fixture renderer, dark theme). The long prompt cuts off at the row's width limit, and hovering the row shows it in full.

Before After
send-notes-before send-notes-after

Testing

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Rendered the menu component on main and on this branch with the same three-Claude store (screenshots above), on macOS.

  • pnpm test src/renderer/src/components/editor/NotesSendMenu.test.tsx src/renderer/src/components/editor/ReviewNotesSendMenuContent.test.tsx src/renderer/src/components/browser-pane/annotate passes. The new test fails when the component is reverted to main.

  • check:code-quality:changed and check:react-doctor:changed pass. CI covers the full gate.

AI Disclosure

Review

Waiting for Kelvin's blessing (this changes the menu's layout).

To try it in a dev build from /Users/kelvinamoaba/orca/workspaces/orca/browser-annotation-send-titles:

  • Open two Claude (or Pi) agents in one workspace and rename one tab.
  • Annotate a page in the Orca browser, or add a review note in the editor, and open "Send notes to".
  • Each row should lead with the name the sidebar shows for that agent, with "Claude · state · time" underneath.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Renderer label only. No IPC, wire or persistence change, so mixed client and host versions behave the same. SSH and local workspaces, git worktrees and folder workspaces all use the same rows. Nothing here depends on the platform. Mobile has no notes-send menu. The naming hook is the one each sidebar row already runs, called once per menu row while the menu is open.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The latest change appears safe to merge.

Summary

The menu now names agents the same way the sidebar does.

  • Send notes menus identify agents by their sidebar names.

No new actionable issues were found in the changes since the previous review.

Reviews (2) · Last reviewed commit: "chore(ratchet): prune the notes-send men..." · Reviewed by Greptile

@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2f4ae7bf-5b2b-4b64-9305-f9fc84bf9429
Commits

Reviewing files that changed from the base of the PR and between 42ac4ac and f905b24.

Files selected for processing: 1
  • config/host-list-render-baseline.txt
Files with no reviewable changes: 1
  • config/host-list-render-baseline.txt

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

Walkthrough

The send-notes menu now uses an agent’s conversation name or primary text as its main label. It displays the agent type alongside a named agent and uses the tab title as secondary information when no name is available. The tooltip shows the disabled reason or, when enabled, the full name. Tests cover named agents and update the agent-row fixture.

Priority: Normal

Severity of issue fixed: Medium

Merge Risk: Moderate · up to f905b

Send targets can remain difficult to distinguish, creating a risk of sending notes to the wrong agent. Preserve distinguishing titles before merging.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Linked Issues check Warning The change satisfies the differentiation goal in [#30155]. Worktree rows use useAgentRowConversationName or getAgentRowPrimaryText, and the menu shows the agent type, state, and time on the second… For a worktree row without a custom tab title, keep the agent type as the primary label and retain the live or status title as secondary information. Keep the custom-title behavior, status indicators, timestamps, truncation, tooltip, and [#…
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: using each agent's sidebar name instead of its type in the Send notes to menu.
Description check Passed The description follows the required template and covers the user impact, implementation, rationale, linked issues, visual proof, testing, compatibility considerations, and checklist status. The remai…
Out of Scope Changes check Passed The production change is limited to the shared notes-send menu. The test changes cover row naming and status behavior. The removed tests cover an obsolete fallback or a duplicate assertion. The render…
Full details: Description check

Explanation

The description follows the required template and covers the user impact, implementation, rationale, linked issues, visual proof, testing, compatibility considerations, and checklist status. The remaining unchecked full validation commands are explicitly covered by CI.

Full details: Out of Scope Changes check

Explanation

The production change is limited to the shared notes-send menu. The test changes cover row naming and status behavior. The removed tests cover an obsolete fallback or a duplicate assertion. The render-baseline update supports the changed renderer component. No unrelated change is demonstrated.

Full details: Linked Issues check

Explanation

The change satisfies the differentiation goal in [#30155]. Worktree rows use useAgentRowConversationName or getAgentRowPrimaryText, and the menu shows the agent type, state, and time on the secondary line. The test covers two Claude rows with different names. The change does not satisfy the no-custom-title fallback in [#19913]. A worktree row without customTitle can use a prompt or generated/live sidebar name as the primary label. The test expects Fix the login in this case. [#19913] requires the agent type to remain primary when no custom title exists.

Resolution

For a worktree row without a custom tab title, keep the agent type as the primary label and retain the live or status title as secondary information. Keep the custom-title behavior, status indicators, timestamps, truncation, tooltip, and [#30155] differentiation coverage.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 4 functions across 2 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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: 2


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 05368ffa-706f-449c-8a14-e1182fa0acef
Commits

Reviewing files that changed from the base of the PR and between 5cd7b5d and 42ac4ac.

Files selected for processing: 2
  • src/renderer/src/components/editor/ReviewNotesSendMenuContent.test.tsx
  • src/renderer/src/components/editor/ReviewNotesSendMenuContent.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

// Match dashboard tooltips for permission, stale-state and missing-terminal reasons.
title={disabledReason}
// Match dashboard tooltips for disabled reasons; otherwise show the full, possibly truncated, name.
title={disabledReason ?? (name || undefined)}

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.

Minor · Functional Correctness · Quick win

Supported by static analysis

Script executed:

sed -n '245,355p' src/renderer/src/components/editor/ReviewNotesSendMenuContent.tsx
rg -n 'max-w-\\[300px\\]|truncate|tabTitle|AgentTargetMenuItem' src/renderer/src/components/editor/ReviewNotesSendMenuContent.tsx

Repository: stablyai/orca

Length of output: 4712


Script executed:

set -u
echo "== head: unmatched render and secondary line =="
sed -n '196,212p' src/renderer/src/components/editor/ReviewNotesSendMenuContent.tsx
echo "== base: merge-base component, tabTitle/truncate/title usage =="
git show 5cd7b5d52cc5ae825f08f0a7b89888ed032259e6:src/renderer/src/components/editor/ReviewNotesSendMenuContent.tsx 2>&1 | rg -n 'tabTitle|truncate|title=|max-w|AgentTargetMenuItem|DropdownMenuItem' || test "$?" -eq 1
echo "== producers of tabTitle for send targets =="
rg -n -F --glob '*.ts' --glob '*.tsx' -e 'tabTitle' -- src/renderer/src/lib src/shared 2>/dev/null || test "$?" -eq 1

Repository: stablyai/orca

Length of output: 3608


Show the full tab title when the target has no agent row.

Targets without an agent row render with name="". Their tab title moves to the secondary line, which is clipped by the new 300px cap. The item has no title in this case, so the full text cannot be read on hover.

🐛 Suggested fix
--- "a/src/renderer/src/components/editor/ReviewNotesSendMenuContent.tsx"
+++ "b/src/renderer/src/components/editor/ReviewNotesSendMenuContent.tsx"
@@ -299,8 +299,8 @@
     <DropdownMenuItem
       disabled={disabled}
       onSelect={() => onSend(target)}
-      // Match dashboard tooltips for disabled reasons; otherwise show the full, possibly truncated, name.
-      title={disabledReason ?? (name || undefined)}
+      // Match dashboard tooltips for disabled reasons; otherwise show the full, possibly truncated, name or tab title.
+      title={disabledReason ?? (name || tabTitle || undefined)}
       className="min-w-[240px] gap-2 rounded-[7px] px-2 py-1.5 text-[12px] leading-5 font-medium"
     >
       {/* Why: the ancestor's actionable disabled reason must win on every hit area. */}

@AmoabaKelvin
AmoabaKelvin merged commit 93d8ce7 into main Oct 29, 2026
41 checks passed
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.

[Feature]: Add Agent Titles to Annotation Send Dialog to Differentiate Similar Agents Send-notes picker doesn't show set terminal-titles

1 participant