-
Notifications
You must be signed in to change notification settings - Fork 13k
Optimize startup sequence to avoid redundant refreshAuth calls #21310
Copy link
Copy link
Closed
Labels
area/coreIssues related to User Interface, OS Support, Core FunctionalityIssues related to User Interface, OS Support, Core Functionalityarea/platformIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmtIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmtworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreamsLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.⛔ Do not contribute. Internal roadmap item.
Metadata
Metadata
Assignees
Labels
area/coreIssues related to User Interface, OS Support, Core FunctionalityIssues related to User Interface, OS Support, Core Functionalityarea/platformIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmtIssues related to Build infra, Release mgmt, Testing, Eval infra, Capacity, Quota mgmtworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreamsLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.⛔ Do not contribute. Internal roadmap item.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This issue is a subtask of #21259.
During the startup sequence of the Gemini CLI, the
refreshAuthfunction appears to be called multiple times. This redundant execution adds unnecessary delay to the initialization process.Proposed Solution
Investigate the startup flow to identify all call sites for
refreshAuth. Refactor the initialization logic to ensure that authentication is refreshed exactly once during the critical startup path.Tasks
refreshAuth.gemini.tsx,AppContainer.tsx, orconfig.ts) to consolidate auth refreshing.