Skip to content

[Bug]: Forgejo settings only probes the first configured fj login #38046

Open

Description

@smikkelbakje

Before submitting

  • 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

  1. added
    bug
    needs-triage
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions