improve: solve-issue — replace tea pr create with Gitea API #581
Reference in New Issue
Block a user
Delete Branch "retrospect/fix-committer-tea"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Fix the committer role's inefficiency in the
solve-issueworkflow by replacing the problematictea pr createcommand with direct Gitea API calls.Why
Thread
06F7JE4NDERP6J3W2RWVFQVQ7Ganalysis revealed that the committer agent wasted 15-18 turns (~30-40% overhead) attempting to use the incorrecttea pr createcommand, which had multiple issues:--login,--head)Changes
tea pr createwith directcurlcalls to Gitea APIrepoRemote(owner/repo) to eliminate repeated git parsingrepoRemotefield to all roles for consistent propagation{{{repoRemote}}}through all transitionssolve-issue-tea-worktree.test.tsto expect curl instead of teaExpected Impact
Ref
Fixes #36
Fixes the committer role's inefficiency (thread 06F7JE4NDERP6J3W2RWVFQVQ7G analysis). 1. **Committer procedure**: Replace `tea pr create` with direct Gitea API calls via curl - Eliminates 15-18 wasted turns (~30-40% overhead) caused by incorrect tea CLI syntax - Adds verification steps: check push success + verify PR creation response - Warns explicitly: "do NOT use tea pr create — it fails in worktrees" 2. **Planner enhancement**: Extract and propagate `repoRemote` (owner/repo) in frontmatter - Downstream roles no longer need to extract repo info from git remote - Reduces discovery overhead and shell parsing errors 3. **Frontmatter schema updates**: Add `repoRemote` field to all roles - Developer, reviewer, tester, committer all propagate repoRemote - Ensures consistent data flow through the graph 4. **Graph prompt updates**: Pass `{{{repoRemote}}}` through all transitions - All roles receive repo remote context in task prompts - Committer receives "Repo remote (owner/repo): {{{repoRemote}}}" 5. **Test updates**: Update `solve-issue-tea-worktree.test.ts` - Expect curl API instead of tea pr create - Verify warning against tea pr create exists - All 8 tests pass - ✅ 15-18 fewer turns per thread in committer role (30-40% reduction) - ✅ ~20-30 seconds saved per thread execution - ✅ Improved reliability — no CLI version/config dependencies - ✅ Cross-platform compatibility — works anywhere with curl + git Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>