Parallax

GitHub in the window

The pull request of the current branch and its checks, a failed step's log for the agent, a draft pull request from the window, and switching the branch.

The GitHub tab of the Services panel shows the pull request of the project's current branch and its checks. Parallax reads them through your own GitHub CLI and keeps no GitHub token. The tab's How this works ↗ opens this page.

Set up: gh, nothing else

  1. Install the GitHub CLI once: brew install gh.
  2. Log it in: gh auth login.

Without it, the chip is a dashed GitHub and the tab shows both commands with a Copy button. The window never runs them for you.

The chip appears only when the project's origin is a repository on GitHub.

The pull request chip

Chip (full text)Means
#128 ✕ 1 failed, redA check failed
#128 ◌ 2 running, amberChecks are running
#128 ✓ passed, greenThe checks passed
#128 Draft, greyA draft pull request
#128 Merged, violetMerged. The chip goes an hour after the read
#128 Closed, greyClosed without a merge. The chip goes an hour after the read
No PR, dashedThe branch has no pull request
GitHub, dashedgh is missing or not logged in

On main, master, trunk or develop without a pull request there is no chip. Below 1440 px the chip is compact (#128 and its mark); the full text shows from 1440 px when it is the only chip.

The tab shows the title, the branch, the checks, Open on GitHub and Refresh.

When it reads

On a change of project or branch, when you open the panel, and then every 2 minutes while a check runs (every 5 minutes otherwise, every 10 when GitHub rate limits). Offline or rate limited, the last read stays, grey, with its age.

A failed check, to the agent

On a failed check, Show log reads the last lines of the failed step and shows them in the panel. Attach to message puts them in your message to the agent, with the check's name and link. The log reaches the agent only by that click, and only when you send the message.

Create a pull request

On a branch with no pull request, the tab offers Create pull request….

  1. It reads what the pull request would hold: the repository, the branch, the base (the repository's default branch) and the commits.
  2. The title starts as the commit's subject (one commit) or the branch name; the description is empty. Both are yours to write.
  3. Create as a draft is on. Untick it for a ready pull request.
  4. The button asks once more, for example "Create a draft pull request into main?", and only then runs gh pr create.

Parallax never pushes. Push the branch first (git push -u origin HEAD). The tab says why it cannot create one:

  • the branch is not pushed, or has commits that are not pushed;
  • you are on the base branch;
  • the branch has no commit the base does not have;
  • the branch already has an open pull request.

Switch the branch

The branch in the title bar is a button. It lists the project's local branches, newest commit first (at most 60), and asks "Switch to X?" before it runs git switch to that branch.

It switches only when:

  • the folder has no uncommitted change to a tracked file (untracked files do not block);
  • no agent session of the project is working or waiting for your answer;
  • the project is on a branch (not a detached HEAD, whose commits would be left behind); and
  • no rebase, merge, cherry-pick or bisect is in progress.

Otherwise the rows are disabled and the menu says why: commit or stash your changes, wait until the agent has stopped, create a branch for the detached commits, or finish or abort the operation. The check runs again in the core on every switch, not only in the window.

It never creates a branch, never switches to a remote branch and never forces a switch. Apart from creating a new project, this is the one change the window makes to your project; approval cards and undo still only fill the message box.

On this page