You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Forgejo settings only probes the first configured fj login #38046
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
T3 Code reported Forgejo as “Not authenticated” and disabled the Source Control provider switch, even though the Forgejo CLI was installed and authenticated to the instance I wanted to use.
I had multiple Forgejo logins configured with fj. T3 Code selected the first login returned by fj auth list and checked only that one. Since that login was for a different instance, the check failed and the other, valid login was never considered.
This appears related to [#33410](#33410), but the issue here is that T3 Code checks only the first configured fj login.
Expected behavior
Expected behavior
If the first configured fj login fails its authentication check, T3 Code should try the other configured logins, or clearly indicate which instance it checked so the user can diagnose the problem.
Actual behavior
T3 did not see Forgejo as a valid source control provider. Since T3 only checks the first login and not the second or any after
Impact
Major degradation or frequent failure
Version or commit
No response
Environment
Environment - T3 Code v0.1.9 - Forgejo CLI (fj) v0.7.0 - Linux
Logs or stack traces
Screenshots, recordings, or supporting files
No response
Workaround
After I removed the unrelated login, T3 Code detected the valid login and the provider became available.
Activity