Repository navigation
feat(server): resolve GitHub issues and prepare an issue worktree thread #2
Description
Activity
- added a parent issue
on Oct 5, 2026 Triage
Verdict: Confirmed on current main (
5cebd3b8). Server/contracts slice is fully specified; implementation is in open PR #4 and is not onmainyet.What I checked
- Parent: feat: start agent work from a GitHub issue #1. This issue is the contracts +
apps/serverhalf only (no UI). - On
main,GitManagerhaspreparePullRequestThreadandcreateWorktreebut noprepareIssueThread/resolveIssueRPC surface yet. - Open PR #4 (
feat/2-resolve-github-issues→main) claims Fixes feat(server): resolve GitHub issues and prepare an issue worktree thread #2:git.resolveIssueviagh issue view,git.prepareIssueThreadcreatingissue/<number>-<slug>, worktree reuse, non-GitHub host error, PR-vs-issue rejection. Large unit coverage listed in the PR body (not re-executed here). - Related web work is feat(web): Start from issue dialog with prefilled composer #3 / PR feat(web): Start from issue dialog with prefilled composer #5 (depends on this). Shared follow-ons: fix(server): generated worktree paths collide for repositories with the same folder name #7 (worktree path collision), fix(server): setup scripts run at the worktree root for subdirectory projects #8 (setup script cwd for subdirectory projects).
Not a duplicate of #1 (parent) or #3 (UI). Cross-reference only.
Likely code:
packages/contractsgit RPC types;apps/serverGitHub providergetIssue;GitManager.prepareIssueThreadmirroringpreparePullRequestThread; thinws.tshandlers + auth entries.Fix direction: Land/finish PR #4 against the listed tests (branch naming, reference parsing, reuse, unsupported host, contract decode). Keep UI out of this issue.
Workaround: None for the server API; use manual worktree until merged.
Outcome:
ready-for-agent— scope, contracts, and tests are explicit; PR already in progress.
Generated by Claude Code
- Parent: feat: start agent work from a GitHub issue #1. This issue is the contracts +
- addedready-for-agentSpecified sufficiently for implementation and verificationSpecified sufficiently for implementation and verification
on Oct 5, 2026
Part of the "Start agent work from a GitHub issue" parent issue. See it for the full design.
Scope
Contracts and server only. No UI.
packages/contracts:GitResolveIssueInput/GitResolveIssueResultandGitPrepareIssueThreadInput/GitPrepareIssueThreadResult, plusgit.resolveIssueandgit.prepareIssueThreadRPCs inrpc.ts.apps/server: GitHub issue read viagh issue view <ref> --json number,title,body,state,url.GitManager.prepareIssueThread: resolve the issue, build branchissue/<number>-<slug>with the existing branch-name sanitizers inpackages/shared/src/git.ts, create the worktree from the default branch withgitCore.createWorktree, and run the project setup script.ws.tshandlers stay thin: decode, call one service method, map errors. Add RPC authorization entries alongside the pull-request ones.Tests
123,#123, issue URL, PR URL rejected.packages/contracts/src/git.test.ts.Done when
Focused server and contract tests pass, plus targeted typecheck and lint for the changed packages.