Skip to content

fix(web): signing in with the CLI shows a Rescan button next to that instruction - #33034

Open
watashiwaaniket wants to merge 6 commits into
pingdotgg:mainfrom
watashiwaaniket:fix/source-control-rescan-label
Open

watashiwaaniket wants to merge 6 commits into
pingdotgg:mainfrom
watashiwaaniket:fix/source-control-rescan-label

Conversation

@watashiwaaniket

Copy link
Copy Markdown
Contributor

Problem

Settings → Source control tells you to run gh auth login on the server host, then rescan. On a page that already found Git, the only control was an icon in the Version Control header. Its name was a tooltip and an aria-label, and that header can be off-screen once GitHub is expanded. The token form sits above the sentence, so the next step looks like pasting a token. The user guide already says to choose Rescan after signing in. Reported in #31848.

Change

The empty CLI-account state names the step and puts a Rescan button on that row. It runs the same discovery refresh as the header control. The sentence also says a token saved above is an alternative. The Version Control header control is now a labeled Rescan button, and the empty-environment button uses the same word as its "then rescan" sentence.

Scope and approval

This is the small bug in the issue title: the instruction names a Rescan control, and the populated page did not show one next to that instruction. It does not add a sign-in method. Signing in from inside the app is a separate product change.

Fixes #31848.

Verification

SourceControlSettings.browser.test.tsx renders the real settings panel with discovery stubbed:

  • With Git and an unauthenticated GitHub CLI, expanding GitHub shows the instruction and a Rescan button. Clicking that button and the header Rescan each refresh discovery.
  • A listed CLI login keeps the account row and does not show the empty-state button.
  • When nothing is detected, the only button reads Rescan.
  • Both buttons are disabled while a scan is in progress.

vp run --filter @t3tools/web typecheck reports no errors. Format, lint, the nearby tests, and React Compiler coverage passed under vp run check:changed. This was not exercised with a live gh auth login in the desktop app.

The token line in the shots is a stub of the token form, so the account block can render without the secret-provider registry. The rescan controls are the real components. Same harness for both.

Before After
Before: the instruction says then rescan, and the only control is an unlabeled refresh icon in the Version Control header. The token line is a stub. After: the instruction names the step, a Rescan button sits on that row, and the header control is labeled Rescan. The token line is the same stub.

Grok 4.7 in T3 Code through the Grok harness.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 8, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 5c2c8ac

Macroscope's review found this PR approvable — Adds a Rescan button beside CLI sign-in instructions and makes existing rescan controls clearer. It reuses the existing discovery refresh action without changing authentication, saved credentials, or defaults.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Both source control rescan controls now display “Rescan.” The header button uses extra-small sizing with a visible label. Its handler and pending-state behavior are unchanged. Translations are updated in ten languages.

Changes: Source control rescan

Layer / File(s) Summary
Rescan controls and translations
apps/web/src/components/settings/SourceControlSettings.tsx, apps/web/src/i18n/translations/*.json
The empty-discovery and header controls now display “Rescan.” The header button uses extra-small sizing. Its handler and pending-state behavior remain unchanged. Translations are updated in ten languages.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: juliusmarminge, t3dotgg

Merge Risk: Minimal · up to 861f6

The Source Control settings now show a "Rescan" label next to the sign-in instruction, translated in every supported language. This is a low-risk text and styling change and is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the CLI sign-in empty state now shows a Rescan button beside the instruction. The raw summary confirms Rescan labels in SourceControlSettings.tsx and across the transl…
Description check Passed The description follows the template. It has Problem, Change, Scope, and Verification sections, and each contains specific content. The Problem section explains the expected behavior and the bug. The …
Linked Issues check Passed The only linked issue, #31848, is closed. It is marked as historical context only, so it does not supply active coding requirements for this pull request. The previous assessment treated its suggested…
Out of Scope Changes check Passed The changes match the PR's stated objective: make the post-sign-in Rescan step clear in Source Control settings. SourceControlAccountSettings.tsx adds the empty CLI-account Rescan button and the token…
Full details: Title check

Explanation

The title names the main change: the CLI sign-in empty state now shows a Rescan button beside the instruction. The raw summary confirms Rescan labels in SourceControlSettings.tsx and across the translation files, and the PR objectives describe the same inline Rescan button and header label. The title follows the conventional commit format, and the change is a bug fix as the title states.

Full details: Description check

Explanation

The description follows the template. It has Problem, Change, Scope, and Verification sections, and each contains specific content. The Problem section explains the expected behavior and the bug. The Change section explains the fix. The Scope section says it is a bug fix, links issue #31848, and says it adds no sign-in feature. The Verification section lists the focused browser tests, the typecheck, and the check run, and states what was not tested live. The before/after screenshots are embedded as the template requires for UI changes. The closing line names the model and harness, as the template asks for agent-used PRs.

Full details: Linked Issues check

Explanation

The only linked issue, #31848, is closed. It is marked as historical context only, so it does not supply active coding requirements for this pull request. The previous assessment treated its suggested fixes as requirements; that basis no longer applies. Because no active directly linked targets remain, no linked-issue coding requirements apply. The PR objectives and the current PR description state the same conclusion. The changes still address the rescan wording and controls described in #31848, but that does not make them requirements.

Full details: Out of Scope Changes check

Explanation

The changes match the PR's stated objective: make the post-sign-in Rescan step clear in Source Control settings. SourceControlAccountSettings.tsx adds the empty CLI-account Rescan button and the token-alternative sentence. SourceControlSettings.tsx changes the header control to a labeled Rescan button and renames the empty-discovery button from Scan to Rescan. The locale files (en, de, es, fr, ja, ko, pt-BR, ru, sv, zh) change only the matching scan or rescan action label, which keeps the translated UI consistent with the new wording. The PR adds no in-app sign-in flow and no new discovery logic. The browser test file covers the changed behavior. This assessment relies on the whole-PR summary and the raw change summary; no hunk-level inspection was needed to reach this result.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 76461aa and 861f6c9.

Files selected for processing: 11

  • apps/web/src/components/settings/SourceControlSettings.tsx
  • apps/web/src/i18n/translations/de.json
  • apps/web/src/i18n/translations/en.json
  • apps/web/src/i18n/translations/es.json
  • apps/web/src/i18n/translations/fr.json
  • apps/web/src/i18n/translations/ja.json
  • apps/web/src/i18n/translations/ko.json
  • apps/web/src/i18n/translations/pt-BR.json
  • apps/web/src/i18n/translations/ru.json
  • apps/web/src/i18n/translations/sv.json
  • apps/web/src/i18n/translations/zh.json
Files skipped from review as they are similar to previous changes: 1

  • apps/web/src/components/settings/SourceControlSettings.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@maria-rcks

maria-rcks commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Written by gpt-6.1-sol on behalf of Maria

Verified in a real dev environment

Verified unchanged head 5c2c8ac84fdd606b3d8a9d4e3403e1c8c8d58fab on Linux with Playwright from the repository and /usr/bin/google-chrome, against the real dev web client and server. No mocks, fixtures, or demo provider were used.

  • Reproduced on github/main at b48b8ea2a0: Settings → Source control → expanded GitHub says to rescan, but only the icon-only header control is available.
  • On this head, the header says Rescan and an inline Rescan button appears beside the unauthenticated CLI instruction. Both controls run real discovery and both disable while discovery is pending.
  • Ran a real gh auth login --with-token using the task's credential in an isolated GH_CONFIG_DIR. Clicking inline Rescan discovered that login without restarting the server, replaced the empty instruction with the host/account controls, and removed the inline button. Header Rescan still worked and preserved the account state.
  • Added the real repository as a project through the app, created a thread, selected Codex gpt-6.1-sol, and completed a real turn running git rev-parse --show-toplevel and git status --short. The client displayed the response and a clean working tree.
  • vp run check:changed ade473018d32003658b7d38693e083ee2e314bd8 passed through blacksmith-check: format, lint, both knip passes, affected typechecks, six focused tests, and React Compiler coverage. The comparison uses the PR's actual base. The worker needed Chromium installed before the passing run.

Runtime transcript:

inline pending true; header pending true
both controls finished real discovery
real gh auth login completed in isolated config
after inline rescan: authenticated host/account row visible
inline empty-state button count 0
after header rescan: account remains true

Before, on main with no CLI login:

main: instruction has no inline rescan button

After, with the same unauthenticated discovery state and viewport:

pr: labeled header and inline rescan buttons

Real rescan interaction and discovery of the CLI login:

rescan discovers the real cli login without a server restart

Not verified

Native Electron, iOS/Android, and macOS/Windows behavior were not exercised on this Linux VM. The completely empty discovery branch was covered by the existing PR browser test, not reproduced with Git removed from the real server. Token saving and interactive browser/device-code login were not exercised; the CLI login used --with-token.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 15, 2026
juliusmarminge and others added 2 commits November 15, 2026 05:31
Docs and the panel copy tell users to choose Rescan, but the header
control was an icon-only button and the empty state button said Scan.
Drop the inline rescan button, reworded instruction, restyle and copy
test from this PR so it only fixes that mismatch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added size:XS 0-9 changed lines (additions + deletions). and removed size:M 30-99 changed lines (additions + deletions). labels Nov 15, 2026
@juliusmarminge juliusmarminge added takeover:needs-julius Takeover done; route gate says Julius decides and removed takeover:in-progress A takeover lead is working on this PR labels Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 20, 2026
@github-actions github-actions Bot added size:S 10-29 changed lines (additions + deletions). and removed size:XS 0-9 changed lines (additions + deletions). needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. labels Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. size:S 10-29 changed lines (additions + deletions). takeover:needs-julius Takeover done; route gate says Julius decides vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Source Control settings: the "then rescan" step after gh auth login points to an unlabeled icon in another section

3 participants