rtk-ai / rtk-ai/rtk

`rtk git branch --show-current` loop in opencode

Open
#732 3 comments 5 reactions 0 assignees View on GitHub

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
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.