#26606 runtime transcript (fs-14, glab 1.124.0). All data synthetic: a stub "self-hosted GitLab"
(evidence-gitlab-stub.py) on 127.0.0.1:18929 behind glab host key gitlab.selfhosted.test (api_host).
$ python3 -I evidence-gitlab-stub.py 18929 stub.log &
$ export GLAB_CONFIG_DIR=
GLAB_CHECK_UPDATE=false
$ cd
$ glab config get host
gitlab.com
$ glab auth status
gitlab.selfhosted.test
✓ Logged in to gitlab.selfhosted.test as selfhosted-user (...config.yml)
$ glab api projects/team%2Fapp # what main runs for the lookup
{"message":"404 Project Not Found"}glab: 404 Project Not Found (HTTP 404) <- answered by gitlab.com
$ GITLAB_HOST=gitlab.selfhosted.test glab api projects/team%2Fapp # what the fix runs
{"id": 7, "path_with_namespace": "team/app", "web_url": "http://gitlab.selfhosted.test/team/app", ...}
$ glab api --hostname 127.0.0.1:18929 projects/team%2Fapp
ERROR Error parsing --hostname: invalid hostname. <- why the fix uses GITLAB_HOST, not --hostname
Real app (web dev server, fresh DB, T3CODE_DEV_SEED=0, server started with the GLAB_CONFIG_DIR above):
Command palette > Add project > GitLab repository > "team/app" > Enter
- main 886d8f6812 (config without a default host): toast "Repository lookup failed — Source control repository
operation lookupRepository failed for gitlab: The source control operation could not be completed."
stub.log: no /api/v4/projects request.
- main 886d8f6812, control with `host: gitlab.selfhosted.test`: lookup shows team/app at http://gitlab.selfhosted.test/team/app.
- fix/issue-26606 b91ef480c1 (reporter's config, `host: gitlab.com`): lookup shows team/app at
http://gitlab.selfhosted.test/team/app; stub.log: GET /api/v4/projects/team%2Fapp host=127.0.0.1:18929