Repository navigation
add branch name suggestions - #1578
KayleeWilliams wants to merge 2 commits into
Conversation
|
Have not forgotten 🫡 |
|
PR #1487 is related |
|
Thanks for putting this together! I’m taking a bit of caution before merging this because branch renames have some sharp edges in multi-agent workspaces. The overall shape seems reasonable: suggest a name from actual committed work, then require the user to explicitly apply it. I want to tighten a few guardrails first around running agents that may still have the old branch name in context, pushed branches / existing PRs, stale remote refs, and re-checking safety at Apply time if the branch state changed after the suggestion was generated. I’ll take a pass at tightening those up tomorrow! Thanks again! |
c175e5a to
abcb044
Compare
|
Coordinator evidence update for PR #1578 (no merge performed): Status: needs-ci. I rebased the branch on current main and pushed What changed during takeover:
Evidence:
Residual risk: no full Electron screenshot was captured; UI proof is component-level plus runtime/IPC tests because a real proof would require driving a managed-agent completion hook. |
|
Merge-forwarded this branch onto current Reproduction / resolution:
Evidence after the merge-forward:
Did not merge. |
|
@brennanb2025 You are working on this, right? |

Summary
Adds an experimental, opt-in branch name suggestion flow for Orca-created local worktrees. When a supported agent reports done and the branch has commits, Orca asks that same agent for a cleaner branch slug and shows it in the workspace card for the user to apply or dismiss.
Screenshots
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildAdded or updated high-quality tests that would catch regressions, or explained why tests were not needed
AI Review Report
Reviewed the branch suggestion lifecycle, eligibility gates, apply/dismiss IPC path, renderer metadata propagation, settings copy, and sidebar UI.
Main risks checked:
setting is enabled.
eligible.
branches are skipped.
detected.
running git branch -m.
metadata through worktree merging.
rename.
Review also checked cross-platform concerns for
macOS, Linux, and Windows:
strings.
where needed.
was introduced.
running local CLIs against remote code.
Changes made during review:
skipped/failed suggestion attempts.
behavior.
name without overwriting custom titles.
Security Audit
Reviewed command execution, IPC, path handling, and input validation risks.
Security notes:
shell: false.
are capped, and execution is timeboxed.
slug: sanitized, prefix-preserved, validated
with git check-ref-format --branch, and checked
for local/remote conflicts.
state and revalidate before mutating git state.
running local agents against remote code.
introduced.
Follow-up: consider a future debug surface for
failed suggestions if this graduates from
experimental.
Notes
This is intentionally opt-in and requires restart because managed hook installation happens at startup.
The Edit Worktree Details modal still edits display metadata only. Full git branch rename should remain a separate branch-management action because it needs conflict checks, upstream/remote handling, and SSH-specific behavior.
Risk: medium
Historic risk metadata backfill based on the existing
risk:mediumlabel.