Repository navigation
Description
From the Oct 11–16 2026 Run retrospective, finding 7. Tracking issue: #721.
The evidence below is historical and attributed to the supplied report (repository snapshot 5504c97); it has not all been independently reproduced. Limited current-checkout checks were made at 53bb9c6. This is filed for maintainer triage, not automatic Pickup.
Requested outcome and validation
Update repository/Factory guidance to use commands that work with the supported gh versions, including JSON issue reads and API-based PR body/label updates where the older GraphQL paths fail after Projects classic retirement. Follow the existing workaround in src/github.rs rather than teaching sessions a known failing gh pr edit path.
For this host, verify a supported gh upgrade path and repair or redirect the root-owned /tmp/gh-cli-cache so failed Actions logs can be read. Inspect ownership and contents before any cleanup; the report's blanket removal command is an operational proposal, not a request to run it as part of filing this issue. Decide whether setup should check the gh version and cache writability. Keep host remediation and portable repository guidance explicit.
Verify issue/comment reading, PR body/label editing, and gh run view --log-failed on the chosen supported setup. If compatibility is intentionally bounded by a minimum version, document it and produce an actionable diagnostic.
Current checkout check: the installed CLI reports 2.45.0, and docs/agents/issue-tracker.md still prescribes gh issue view <n> --comments. Its JSON form works for this issue-filing session. The cache failure and recommended upgrade need fresh host verification.
Original finding, including evidence, proposed fixes, and confidence
7. Host gh 2.45 and a root-owned cache break the commands the docs prescribe (Host and Repo docs)
- Evidence:
gh issue view 707 --commentsexits 1 on this host with "Projects (classic) is being deprecated", and so doesgh pr edit. The error appears in 22 of the 25 sessions.- Those failing forms are the ones prescribed by
docs/agents/issue-tracker.md(gh issue view <n> --comments,gh pr edit --add-label) and implied by the thirdshift-pr skill. - thirdshift's own code already works around this.
src/github.rssays "gh pr editfails on the GitHub Projects (classic) sunset in oldergh". /tmp/gh-cli-cachehas been owned by root since Sep 25. Sogh run view --log-failed, the command the CI-fix prompt suggests, fails with "permission denied" in every CI-fix Repair.
- Fix:
- Install current gh from GitHub's apt repo.
sudo rm -rf /tmp/gh-cli-cache.- In the docs, use
gh issue view <n> --json title,body,labels,commentsandgh api --method PATCH repos/<o>/<r>/pulls/<n> -F body=@<file>. - Optionally, a minimum gh version in
thirdshift setup.
- Confidence: high.
Activity
JacobStephens2 commentedon Oct 21, 2026
Brief (ready-for-human)
Category: bug
Summary: Upgrade gh and repair the root-owned gh cache on both thirdshift hosts. The repository guidance part is done.
Current state:
gh issue view <n> --json …. The prompts no longer prescribegh issue view --comments(they forbid it) orgh pr edit. The onlygh pr editleft is in the guidance's PR-triage section, which this repository has turned off.thirdshifthost as of 2026-10-21.ghis 2.45.0 (Ubuntu's package), and/tmp/gh-cli-cachehas been owned by root since Sep 25. Sogh run view <run-id> --log-failed, which the CI-fix Repair prompts suggest, fails with "permission denied" for the factory's user.stephenshasn't been checked.Steps:
thirdshiftandstephens), look at/tmp/gh-cli-cache's owner and contents, then remove it orchownit to the user thirdshift runs as.gh issue view <n> --json title,body,labels,comments,gh pr edit <n> --add-label <label>, andgh run view <run-id> --log-failedon a real failed run.Why this can't go to an agent: it needs sudo on two hosts and a change of package source.
Out of scope: a gh version or cache check in Setup or
thirdshift doctor(#905).JacobStephens2 commentedon Oct 28, 2026
Fresh evidence from the 2026-10-28 retro of thirdshift's own runs. This is still happening on two hosts.
gh2.45.0. orchestrate (2.96.0) and dev (2.97.0) are current.projectCardserror. Most were plaingh pr vieworgh issue viewwithout--json, and each was retried with--json. orchestrate and dev had none.gh pr checksusage help, because 2.45 lacks flags that sessions use.Upgrading
ghfrom GitHub's apt repository on those two hosts would remove both classes.JacobStephens2 commentedon Oct 29, 2026
Host remediation done on 2026-10-28. The repository guidance part was already done (see the Oct 21 brief).
Upgrade: on both
stephens.pageandthirdshift.app,ghnow comes from GitHub's apt repository (/etc/apt/sources.list.d/github-cli.list, key in/etc/apt/keyrings/githubcli-archive-keyring.gpg). It went from Ubuntu's 2.45.0 to 2.103.3, and regularapt upgradewill keep it current. Both hosts are still logged in as JacobStephens2.Cache:
/tmp/gh-cli-cacheis owned byjacob, the user Pickup and Console run as, on both hosts. Its contents are cached run logs from Oct 26–27, so nothing needed removing.Verified on both hosts as
jacob:gh issue view 727 --json title,body,labels,commentsworks.gh pr view 1513(no--json) works, with no Projects (classic)projectCardserror.gh pr checks --helplists--required.gh run view 40793824885 --log-failedon a real failed run exits 0 and prints the failed step's log.Not exercised:
gh pr edit --add-label, so that no real PR got a label added and removed just for the test. It ran into the same Projects (classic) query that plainpr viewused to fail on, andpr viewnow works.Running sessions that started before the upgrade keep the old binary until they restart. A
ghversion or cache check in Setup orthirdshift doctorstays out of scope; it's tracked in #905.