Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

Include the linked GitHub issue/PR number in derived workspace names #83

Closed

Description

@64ix

Problem

Workspaces created from a linked GitHub issue/PR get their name from the item title alone — and the naming engine actively strips #<number> references from titles (getLinkedWorkItemTitleSubject). Reported case: grabbing a spec issue titled "Spec — Clore & célébrer : CloseWorld…" produces a workspace and branch carrying no issue number, which is precisely what's needed to follow the work across tracker, sidebar, board, and git.

Linear/Jira items DO lead with their identifier (upstream stablyai#8238); GitHub items have no identifier, so nothing carries the number.

Expected

For GitHub items without a Linear/Jira identifier, derive the display name and seed with the work-item identity included, mirroring workItemIdentity():

  • Issue Sync pairing & devices screen #42 titled "Spec — Clore & célébrer" → "Issue 42 — Spec — Clore & célébrer" (or equivalent compact form keeping the number)
  • PRs likewise ("PR 12 — …")

The number then flows into the slugified seed → folder/branch names (issue-42-spec-clore-celebrer…).

Notes

  • Naming core: src/shared/workspace-name.ts:177-193 (getLinkedWorkItemWorkspaceName) — upstream code, zero fork commits; candidate to propose upstream after local validation
  • Number is already persisted via linkedIssueNumber in worktree meta — only the human-facing names lack it
  • Guard: the title-strip regex must not eat the newly added identity token

Acceptance Criteria

  • Workspace created from a linked GitHub issue shows its number in the sidebar/board display name AND the derived branch/folder seed
  • Same for linked PRs
  • Linear/Jira-derived names unchanged
  • Titles already containing "Sync pairing & devices screen #42" don't get doubled

Activity

  1. added
    enhancement
    ready-for-agent
    on Aug 26, 2026
  2. added a commit that references this issue on Aug 26, 2026
    ace1101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions