Skip to content

fix(google): stop showing Setting up on an agent's Google page once Google works - #49331

Merged
Jinwoo-H merged 1 commit into
mainfrom
fix/google-row-status
Nov 25, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
fix/google-row-status

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Problem

An agent's Connectors > Google page said Setting up while orca bot connectors said Google was signed in and every service was ready.

Cause

BotGoogleCard showed Setting up whenever the host had a Google setup run in running state (added in #48187). A run stays open if it was started and Google then got signed in some other way, for example from Settings or the Connect card. The owner's agent had a run like that, open since 11-07 with no steps. The CLI decides from the agent's own accounts instead (googleBotConnectState over the accounts the agent may use), so the two disagreed. Neither #49268 nor the sharing branch caused this.

Fix

  • New botGoogleConnectState(bot, host) in src/shared/google/google-bot-connect-state.ts gives one agent's Google state. orca bot connectors, the host's hostGoogleBotState, and the Google page all read it now.
  • botGoogleSettingUp(state, run): the page shows Setting up only while a run is open and the agent can't use Google yet.
  • Stop setup stays in the page's menu while a run is open, so a leftover run can still be closed.

Screenshots (component fixture bots/BotConnectorsPanel:googlePageSetupLeftOpen: two accounts signed in, a setup run still open)

Before:

before

After:

after

Tests

src/shared/google/google-bot-connect-state.test.ts fails with the old rule ("expected true to be false") and passes with the fix.

Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​28 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​28
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​68 $\color{#cf222e}{\Huge{\mathbf{−}}}$​27 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​41

Performance

No new reads or calls. botGoogleConnectState filters the agent's handful of Google accounts in memory, using the Google status and setup run the page and orca bot connectors already read, and it runs only when they render or run.

…oogle works

The page said Setting up whenever a setup run was open, even one left open after
Google was signed in another way, while `orca bot connectors` said Signed in.
Both now read one agent-scoped state (botGoogleConnectState); Setting up shows
only while the agent can't use Google yet. Stop setup still closes an open run.
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Google account filtering and setup-status calculation now use shared helpers. The main-process host state, connector view, and Google card use these helpers. The card checks the active setup run separately when deciding whether to show the stop action. Fixtures can represent a running setup, and tests cover connected, reconnect, absent-account, and cancelled-run states.

Merge Risk: Minimal · up to d614f

The Google page stops showing "Setting up" once the agent can already use Google, and Stop setup stays available while a run is open. No merge-blocking risk remains. The PR description still needs a Performance section to satisfy the CI check.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description states the problem, cause, fix, screenshots, tests, and performance impact, so a reviewer can follow the change. It does not fill in several template sections: ELI5, Visual Proof is pr… Add an ELI5 section in plain language. Link an actual issue under Linked Issue, replacing the empty 'Fixes #'. Under Testing, list the manual steps and platforms tested, and tick the applicable checkboxes. Under Risk, set the Level (Low, Me…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the main change: the agent's Google page stops showing Setting up once Google already works for that agent. It follows the fix(google) convention and matches the new botGoogleSettingUp…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the agent's Google page stops showing Setting up once Google already works for that agent. It follows the fix(google) convention and matches the new botGoogleSettingUp rule and the Google page change. It is specific and about 80 characters, which is slightly long but acceptable.

Full details: Description check

Explanation

The description states the problem, cause, fix, screenshots, tests, and performance impact, so a reviewer can follow the change. It does not fill in several template sections: ELI5, Visual Proof is provided but Before/After are labeled only as images without a note on which were captured by the fixture, Testing checklist boxes are unticked and no manual test steps or platforms are listed, Linked Issue has no 'Fixes #' issue reference, Risk level and rollback plan are missing, and the Review and Agent skill upstream boundary sections are absent. These gaps are required by the template, so the check fails.

Resolution

Add an ELI5 section in plain language. Link an actual issue under Linked Issue, replacing the empty 'Fixes #'. Under Testing, list the manual steps and platforms tested, and tick the applicable checkboxes. Under Risk, set the Level (Low, Medium, or High), name the riskiest part, and state how to back out the change. Add the AI Disclosure if applicable, complete the Agent skill upstream boundary checkbox, and finish the Performance line with the reason (for example, 'None, because this only runs when the Google page renders or the CLI runs').

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 51f68b36-1b87-4f94-9df5-914a383e50ef
Commits

Reviewing files that changed from the base of the PR and between 2aa68a4 and d614fac.

Files selected for processing: 7

  • src/main/bots/bot-google-access.ts
  • src/renderer/src/components/bots/BotConnectorsPanel.fixture.tsx
  • src/renderer/src/components/bots/bot-connectors-host-fixture.tsx
  • src/renderer/src/components/bots/google/BotGoogleCard.tsx
  • src/shared/bots/bot-connectors-view.ts
  • src/shared/google/google-bot-connect-state.test.ts
  • src/shared/google/google-bot-connect-state.ts

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

@Jinwoo-H
Jinwoo-H merged commit eb8c09f into main Nov 25, 2026
56 of 57 checks passed
Jinwoo-H added a commit that referenced this pull request Nov 25, 2026
)

* fix(google): stop showing Setting up on an agent's Google page once Google works (#49331)

The page said Setting up whenever a setup run was open, even one left open after
Google was signed in another way, while `orca bot connectors` said Signed in.
Both now read one agent-scoped state (botGoogleConnectState); Setting up shows
only while the agent can't use Google yet. Stop setup still closes an open run.

* feat(sharing): list Google under Uses on a shared agent's invite

The invite card listed GitHub, Slack and Linear but never Google. The owner's
hello now names Google for a shared agent with a Google account that works, read
with botGoogleConnectState like `orca bot connectors`, kept fresh on agent
writes and Google sign-ins or sign-outs. Desktop and phone invites show it with
Google's mark; cards from older Orcas still read.

* fix(sharing): release the Google account listener on stop, one hello per agent write

The host now owns the Google cache and puts its account-write subscription with
its other stops. An agent write waits for Google's read and then sends its one
hello, instead of one hello before the read and a second after it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant