`rtk git branch --show-current` loop in opencode
Open
Nobody has claimed this yet.
area:cli
bug
filter-quality
needs-reproduction
priority:high
- Dominant language
- Rust
- Stars
- 81.1k
- Forks
- 5.1k
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 35
Description
Description
I've experienced these issues using Opencode on 3 different computers. When it tries to check the current branch, it just keeps going in an infinite loop.
- Opencode v1.2.27
- Model: Claude Opus 4.6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing rtk git branch --show-current through Opencode with the reported versions and confirm whether the command repeats indefinitely. Trace the CLI path that handles this command and its interaction with Opencode; done means the branch is checked once and the loop no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100