Skip to content

feat(connectors): keep several Google and Microsoft accounts per provider - #8331

Merged
kovtcharov-amd merged 7 commits into
amd:mainfrom
tylerbea:claude/multi-account-store
Nov 18, 2026
Merged

kovtcharov-amd merged 7 commits into
amd:mainfrom
tylerbea:claude/multi-account-store

Conversation

@tylerbea

Copy link
Copy Markdown
Contributor

People want GAIA to read and send from more than one mailbox, for example a personal Gmail, a work Gmail and an Outlook account. Today GAIA keeps one account per provider: a second Gmail sign-in silently replaces the first, and a sign-in it can't identify is saved as "default". With this change each provider keeps a list of accounts, told apart by the provider's stable account id. Adding an account shows the provider's account picker. Reconnecting names the account, and the same account is updated in place while a different one is added as new. Disconnect, refresh, expired sign-ins, uninstall and forwarded connections all work per account. Anyone with one account sees no change.

This is the first of four PRs from docs/plans/multi-account-mail-calendar.md. The mail and calendar tools still use the default account here. Making them use every account, plus the Settings and TUI screens, comes in the follow-up PRs that build on this branch.

Test plan

  • pytest tests/unit/connectors tests/unit/installer/test_uninstall_command.py tests/unit/chat/ui/test_start_screen.py -n 8
  • gaia connectors connect google, then gaia connectors connect google --add with a second Google account. gaia connectors list google shows both, with the first marked default.
  • gaia connectors disconnect google refuses and lists both accounts. --account <second> removes only that one, and the first still works (gaia connectors test google).
  • gaia connectors set-default google <address> changes which account gaia connectors list marks as default.
  • An existing single-account install keeps working after the upgrade without reconnecting.

A second Gmail sign-in no longer replaces the first. Each provider now keeps
a list of accounts, told apart by the provider's stable id, with one default
that every caller naming no account gets, so one-account users see no change.

- Accounts are listed in a non-secret index beside grants.json; the first
  account keeps its existing keyring slot, later ones get their own.
- A sign-in that names no account id fails instead of saving as "default".
- Adding an account shows the provider's account picker; reconnecting sends
  a login hint. The same account updates in place, a different one is added.
- Tokens, refresh locks and the token cache are per account; invalid_grant
  marks that account reauth_required instead of dropping it from view.
- Disconnect, revoke, uninstall and forwarded imports work per account.
  Grants stay per connector and are cleared only with the last account.
- New API (list_accounts, set_default_account, account= on token calls),
  UI routes (per-account DELETE and PATCH, accounts on every row) and CLI
  flags (connect --add/--account, disconnect --account/--all, set-default).
@github-actions github-actions Bot added documentation Documentation changes cli CLI changes tests Test changes labels Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

This PR lets each Google and Microsoft connector hold several accounts. Each account is told apart by the provider's stable id, and the CLI gets --add, --account, --all and set-default. The storage, locking and migration work is careful, and one-account installs keep their keyring slot. One gap breaks the "anyone with one account sees no change" promise:

  • Switching accounts now quietly keeps the old one. Before this PR, a user who ran gaia connectors connect google (or Reconnect in Settings) and signed in as a different address replaced the old account. Now the new address is added beside it, the old one stays the default, and agents keep using it. The CLI still prints "Connected as new@…", so the user believes they switched. A plain connect that adds a second account should say so and tell the user how to change the default. The alternative is to keep replacing the account until the Settings screens land.
  • The Settings Disconnect button removes every account. The Settings tile shows only the default address, but its Disconnect now deletes every account of that connector, including ones added from the CLI. When the last account goes, it also clears the agent grants. The CLI refuses a bare disconnect when there are several accounts, but the UI and the DELETE /v1/connections/{provider} route don't. Either make them refuse the same way or confirm before removing them all. If that is deferred to the Settings PR, file it as a follow-up before merge.
  • Real-world proof is missing. The Test plan lists CLI steps, but the PR shows no output from them. Paste the connect --add, list, disconnect --account and set-default output from a real two-account run.

Real-world evidence

N/A: no evidence bundle was produced for this run. The CLI and HTTP surfaces this PR changes were not exercised here, so the verdict rests on static review alone. I couldn't run the unit suite locally (no pytest in this environment). Connector-related CI lanes (Windows tests, email agent, lint) are green; Linux unit tests were still pending. The one failing check, an Electron SIGTERM test, looks unrelated.

🔍 Technical details

🟡 Important

1. A plain connect that adds a different account reports it as a switch (src/gaia/connectors/cli.py _connected_message; src/gaia/connectors/accounts.py save_signed_in_account)
With no --add and no --account, a different account_id reaches added=True, which appends a new id:<id> slot. _default_of keeps the first slot as default. _connected_message returns "Added …" only when args.add_account is set, so this case prints Connected as {email}. The Agent UI Reconnect button calls /authorize without account or add_account, so it hits the same path. The tile then keeps showing the old default address. Suggested CLI fix:

    if result.get("added") and getattr(args, "add_account", False):
        return f"Added {email}"
    if result.get("added"):
        return (
            f"Added {email} as another account; the default is unchanged. "
            f"Run `gaia connectors set-default {args.connector_id} {email}` "
            "to use it by default"
        )
    return f"Connected as {email}"

The UI needs an equivalent, such as the connector.oauth.completed added flag driving a notice, or an explicit decision to defer it to the Settings PR.

2. Sibling path: UI and REST disconnect remove every account without asking (src/gaia/ui/routers/connectors.py disconnect_connector; revoke_forwarded_connection; oauth_pkce.disconnect with account_id=None)
_handle_disconnect raises AccountChoiceRequiredError when len(stored) > 1 and --all is absent. DELETE /api/connectors/{id}, which the webui's connectorsApi.ts:78 calls from the Settings tile, passes account_id=None, which means all_accounts=True, with no such guard. remaining_accounts == 0 then wipes grants too. Make the route mirror the CLI, for example 409 plus choices unless ?all=true, or track it as a Follow-up: issue.

3. Missing real-world evidence for the CLI surface
The new CLI subcommands and flags and the new REST routes show no captured output in the PR. Per the rubric, paste the real gaia connectors … output from a two-account run, plus one PATCH/DELETE /api/connectors/{id}/accounts/{account_id} request and response.

🟢 Minor

  • A legacy account labelled "default" can be duplicated (accounts.py save_signed_in_account). Older builds saved account_email="default" when the address lookup failed. If such an account is reconnected before its first refresh fills in the id, the email match fails. The reconnect is then added as a new slot, and the stale entry stays default. A later backfill gives both entries the same account_id, so resolve_slot reports it as ambiguous. Consider also matching an UNIDENTIFIED legacy entry when --account named it (flow.intent.reconnect == UNIDENTIFIED).
  • get_or_refresh(..., slot=DEFAULT_ACCOUNT) defaults to the literal first slot, not the default account (tokens.py). Every in-tree caller now passes resolve_slot(...)/default_slot(...). An out-of-tree caller that omits slot gets NOT_CONNECTED once the first account is removed and the default moves to an id: slot. Consider slot: Optional[str] = None resolving through accounts.default_slot.
  • The account_email= → slot= keyword rename on store.peek_connection/load_connection/delete_connection and tokens.get_or_refresh(_sync) breaks callers that pass account_email=. Nothing in-tree or in hub/ does, but a line in the PR body would help SDK users.

Strengths

  • The first account keeps the <provider>:default slot and the index rebuilds from it, so upgrades need no migration. A missing or deleted accounts.json recovers on its own.
  • The forwarded import refuses to swap the OAuth client under other accounts (_forward_target) rather than silently signing them out, which is a good fail-loudly call.
  • Per-account refresh locks with the provider lock taken first for slot decisions, recovery markers scoped to one account's slot, and tests for multi-account storage, CLI and routes.

…gn-ins

Accounts stored by older builds could be overwritten, duplicated or left
behind when the sign-in that touched them was ambiguous.

- A Microsoft personal and work account at one address stay separate: an
  old account without a stable id matches by address only when the kinds
  don't conflict.
- An old account stored as "default" (address lookup failed) is updated in
  place by a reconnect, and kept beside an added account. When its refresh
  learns an id already stored in another slot, the two merge into one,
  keeping the newer sign-in's token and the default flag; its address is
  filled in too.
- Uninstall deletes the first account's token before reading the account
  list, so a torn list still leaves no token behind; the list is fsynced.
- A token that can't read its profile (forwarded Microsoft token without
  User.Read) is asked once per process and warns once.
- The refresh docstring now says a forwarded import in flight makes every
  account of that provider report busy.
Merging two copies of one account could race a sign-in or a second
refresh and leave a token with no list entry, or one id in two slots.

- The merge runs only when the provider and the other account are both
  free right now, and finishes the list update before letting go; when
  either is busy it waits for a later refresh.
- One id is never written to two slots: recording it re-checks the list
  under its lock. The list is written before the token, so a crash in
  between is finished by the next refresh.
- The merged account keeps the token the refresh just proved.
- Only a 401/403 profile refusal stops the id lookup for the process; a
  network error is retried on the next refresh.
- A sign-in whose list entry vanished raises an actionable error instead
  of StopIteration.
…ate accounts

When an old account slot learned an id that a later sign-in already held,
the merge always kept the old slot's token, so a calendar grant added by
that later sign-in was lost. The proven token is now kept only when its
scopes cover the other slot's; otherwise the later sign-in survives and
takes the default flag.

A failure writing the account list during a refresh no longer fails the
refresh: the new token is saved without its id, and the next refresh
records it.
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

The new commits fix the legacy "default"-account duplicate and make merges race-safe. The three 🟡 findings from the last review are still open:

  • 🟡 Switching accounts still quietly keeps the old one. A plain gaia connectors connect google, or Reconnect in Settings, that signs in as a different address adds it as a second account. The old account stays the default, and the CLI still prints "Connected as new@…". Say that it was added and how to change the default, or keep replacing the account until the Settings PR lands.
  • 🟡 Settings Disconnect still removes every account without asking, and when the last one goes it clears agent grants too. The CLI refuses this case, but the UI/REST route doesn't. Make the route refuse the same way, or file a Follow-up: issue before merge.
  • 🟡 There is still no real-world proof. Paste output from a real two-account run of connect --add, list, disconnect --account and set-default.
🔍 Technical details
  • src/gaia/connectors/cli.py:579 _connected_message: with no --add and no --account, added=True still falls through to Connected as {email}. The suggested branch from the previous review still applies.
  • src/gaia/ui/routers/connectors.py:961 disconnect_connector: it still calls disconnect(connector_id) with no account, which removes all accounts. Mirror the CLI's AccountChoiceRequiredError when there are more than one, for example 409 plus choices unless ?all=true.

@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

The latest commits tighten when duplicate accounts get merged, but the three 🟡 findings from the earlier reviews are still open:

  • 🟡 Switching accounts still quietly keeps the old one. A plain gaia connectors connect google, or Reconnect in Settings, that signs in as a different address adds it as a second account. The old account stays the default, and the CLI still prints "Connected as new@…". Either say that the account was added and how to change the default, or keep replacing the account until the Settings PR lands.
  • 🟡 Settings Disconnect still removes every account without asking. When the last account goes, it clears agent grants too. The CLI refuses this case, but the UI/REST route doesn't. Make the route refuse the same way, or file a Follow-up: issue before merge.
  • 🟡 There is still no real-world proof. Paste the output of connect --add, list, disconnect --account and set-default from a real run with two accounts.
🔍 Technical details
  • src/gaia/connectors/cli.py:589: _connected_message still returns Connected as {email} when added=True and neither --add nor --account was passed. save_signed_in_account still adds an unmatched sign-in as a new slot whenever add_account=False.
  • src/gaia/ui/routers/connectors.py:965: disconnect_connector still calls disconnect(connector_id) without an account, so every account is removed. Mirror the CLI's AccountChoiceRequiredError check when more than one account is stored, for example return 409 with choices unless ?all=true.

@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

The account model underneath this PR is solid. Each provider now keeps a list of accounts, each in its own keyring slot and lock, and existing one-account installs keep their old slot. But the three findings from the earlier reviews are still open at this commit, and the device-code sign-in has a gap that can overwrite an existing account.

  • 🟡 Signing in as a different address adds a second account without saying so. A plain connect, or Reconnect in Settings, keeps the old account as the default, and the CLI still prints "Connected as new@…". Say that the account was added and how to make it the default.
  • 🟡 Settings Disconnect removes every account without asking, and when the last one goes it clears agent grants too. The CLI refuses a bare disconnect when there are several accounts; the Agent UI route doesn't. Make the route refuse the same way, or file a Follow-up: issue before merge.
  • 🟡 --add and --account do nothing with --device. The device-code sign-in never receives them. An old install whose only Microsoft account was saved without an address then has that account replaced by the new sign-in instead of keeping both. Pass the intent through to the device flow, or reject the flag combination.
  • 🟡 The account lookup during a token refresh can push it past its 30-second limit. The first refresh of every existing Microsoft account after upgrading looks up its profile inside the refresh, and that lookup has no overall deadline.
  • 🟡 There is still no real-world proof. Paste the output of connect --add, list, disconnect --account and set-default from a real run with two accounts.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review alone. The CLI, the REST routes and real Google/Microsoft sign-ins were not exercised here, and I couldn't run the unit tests locally because the runner has no pytest. CI's unit-test jobs were still pending when this review was written.

🔍 Technical details

🟡 Carried over (unchanged since the last review)

  • src/gaia/connectors/cli.py:591: _connected_message still returns Connected as {email} when added=True and neither --add nor --account was passed.
    if result.get("added"):
        return (f"Added {email} as another account; the default is unchanged "
                f"(`gaia connectors set-default {args.connector_id} {email}` to switch)")
  • src/gaia/ui/routers/connectors.py:961: disconnect_connector calls disconnect(connector_id) with no account, which takes the all_accounts=True path in oauth_pkce.disconnect. Mirror the CLI's AccountChoiceRequiredError check: return 409 with choices unless ?all=true.

🟡 Device flow drops the sign-in intent (src/gaia/connectors/cli.py:608)
_handle_connect_device calls start_device_flow(args.connector_id, scopes=scopes), and poll_device_flow calls _save_signed_in(...) without add_account. _signed_in_match (accounts.py:435) then treats a lone unidentified entry whose address is empty or "default" as the target of any non-add sign-in. Old builds saved exactly that when the Graph /me lookup failed, which is the Microsoft device-flow case, so connect microsoft --device --add overwrites that refresh token. Either thread add_account through start_device_flow/poll_device_flow into _save_signed_in, or make --device mutually exclusive with --add/--account in argparse.

🟡 No overall deadline on the profile lookup (src/gaia/connectors/flow.py:253, tokens.py:425)
_fetch_userinfo relies on httpx's timeout=10.0, which applies per phase, not as a total. During a refresh it runs after up to 15 s of lock wait plus up to 10 s of token POST, all inside get_or_refresh_sync's 30 s cap. A slow Graph response therefore fails the refresh even though the token was valid. Wrap it the way _refresh_token does:

resp = await asyncio.wait_for(_get(), _USERINFO_DEADLINE_SECONDS)

and/or skip the backfill when little of the refresh budget remains.

🟡 Real-world evidence: the PR description has a test plan but no CLI output. This is a new CLI and REST surface (--add, --account, --all, set-default, DELETE/PATCH /accounts/{id}), so it needs real command output.

Sibling-path check: no caller outside the diff passes the removed account_email= keyword to get_access_token*, get_or_refresh*, peek_connection, delete_connection or revoke_provider_token. The email agent, the calendar skill, email_tools and daemon/forward.py all use the default account, consistent with the PR's stated scope. Uninstall now removes every account's slot.

Docs drift: cli.mdx, connectors.mdx, google.mdx, microsoft.mdx and security/connectors.mdx were updated. I found no remaining "one account per provider" or "second sign-in replaces the first" claims in docs/, hub/** or the skills.

Strengths

  • The default slot is kept for the first account, and a legacy slot missing from the index is rebuilt from the keyring, so existing installs and older builds keep working without a migration step.
  • The locking is disciplined: provider lock, then account lock, then index lock. The merge path takes only try-locks, and the forward-recovery marker is now scoped to one account slot.
  • Sign-ins GAIA can't identify now fail loudly instead of being saved as "default", and errors carry the list of valid accounts (UnknownAccountError.choices → 404 unknown_account).

…p device sign-ins apart

Settings Disconnect removed every Google or Microsoft account at once, and a
device-code sign-in with --add could overwrite an old account saved without
an address. Both now keep accounts the user did not choose.

- A bare disconnect of an OAuth connector with several accounts refuses in
  one place (handler.disconnect), so the CLI, the Agent UI route and the
  email agent's route all ask. The routes answer 409
  account_choice_required with the choices; ?all=true removes them all.
- --add and --account now reach the device-code flow (start_device_flow
  returns the intent, poll_device_flow saves by it), in the CLI and the
  authorize-device route.
- A plain connect that signs in a different account says it was added,
  that the default is unchanged, and how to switch.
- The profile lookup has an overall 10 s deadline, and a refresh gives the
  identity backfill only what is left of its 30 s budget, so a slow Graph
  /me never fails a refresh whose token was valid.
@github-actions github-actions Bot added the agent::email Email agent changes label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes

The latest commit fixes four of the five findings from the last review. A plain connect that adds a second address now says so. Settings Disconnect asks before removing several accounts. Device-code sign-ins respect --add and --account. And a slow profile lookup no longer fails a token refresh. I found no new problems in the commit.

  • 🟡 There is still no real-world proof. The test plan's CLI items are unchecked and the description has no command output. Paste the output of connect --add, list, a bare disconnect (it should refuse), disconnect --account and set-default from a real run with two accounts.
🔍 Technical details

Checked against the previous review's items at bebb1041d:

  • cli.py _connected_message now returns the "Added … default is unchanged" message whenever added is true and is_default is false. _save_signed_in returns is_default, and both _emit_connected callers carry it.
  • handler.disconnect refuses with AccountChoiceRequiredError when there are several accounts and neither an account nor all_accounts was given. The Agent UI route and the email agent's route map that to 409 account_choice_required, and ?all=true removes them all.
  • start_device_flow now takes add_account/account and returns intent. poll_device_flow saves with intent.add_account. The CLI and authorize-device both pass it through, and intent is not added to the route's JSON response.
  • _fetch_userinfo is wrapped in asyncio.wait_for(..., 10s). _identify_for_backfill gets only the refresh budget that remains after a 3 s save reserve, and skips the lookup when less than 1 s is left.

One thing to keep in mind for the Settings follow-up PR: with several accounts, Settings Disconnect now gets a 409 and the web UI has no per-account or "remove all" control yet. Make sure that PR handles the 409.

@tylerbea tylerbea closed this Nov 17, 2026
@tylerbea tylerbea reopened this Nov 17, 2026
@tylerbea tylerbea closed this Nov 17, 2026
@tylerbea tylerbea reopened this Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

This PR lets GAIA keep several Google and Microsoft accounts per provider. A second sign-in is now added next to the first instead of silently replacing it. Accounts are told apart by the provider's stable account id, and disconnect, refresh, uninstall and forwarding now act on one account at a time. The account list, the locks and the upgrade path for existing installs all look sound. I found no correctness bug that would hit someone with one account.

Two things to handle before or soon after merge:

  • Follow-up: the Agent UI's Disconnect button leads nowhere once a second account exists. Someone who adds an account with gaia connectors connect google --add and then clicks Disconnect in Settings gets "google has 2 connected accounts (…). Choose one to disconnect, or disconnect them all". The screen gives them no way to do either. The plan puts the Settings screens in a later PR, so either open an issue for this now or have the button send ?all=true until then.
  • No real-world output on the PR. The test plan lists the CLI and REST checks to run, but the description shows none of their output. Paste the real output of gaia connectors list google with two accounts, plus a disconnect refusing and then --account removing one.

Real-world evidence

N/A: no evidence bundle was produced for this run. The verdict rests on static review alone. I also couldn't run the unit tests, because this runner has no Python test environment. The CLI (gaia connectors connect --add / list / disconnect --account / set-default) and the new REST routes (DELETE/PATCH /api/connectors/{id}/accounts/{account_id}, DELETE ?all=true) were not exercised here.

🔍 Technical details

🟡 Follow-up: Agent UI disconnect dead-ends with 2+ accounts (src/gaia/connectors/handler.py:276, src/gaia/apps/webui/src/services/connectorsApi.ts:77)
handler.disconnect now raises AccountChoiceRequiredError when there are several accounts and the caller passes neither account_id nor all_accounts. The router maps that to 409. disconnectConnector() still sends a bare DELETE /connectors/{id}, and ConnectorsSection.tsx:714 / ConnectorTileMenu.tsx:194 just show the message. The CLI --add path in this PR can reach this state. Suggested issue title: "Agent UI: choose which account to disconnect when a connector has several".

🟡 Missing real-world evidence for the CLI / REST surfaces
The PR adds CLI flags (--add, --account, --all, set-default) and three REST shapes. Its description has only an unchecked test plan. A pasted CLI transcript and one request/response pair for the 409 and the per-account DELETE would cover it.

🟢 Public SDK keyword rename (src/gaia/connectors/api.py:258)
get_access_token*(account_email=…) became account=…. No in-repo caller passes the old keyword, and it was a no-op before because there was one slot. An outside caller that passed it now gets a TypeError, though. Consider a one-line CHANGELOG note.

🟢 Refresh can overrun the sync budget during forward recovery (src/gaia/connectors/tokens.py:269)
recover_interrupted_forward waits up to the full LOCK_TIMEOUT_SECONDS for the provider lock. That happens before the refresh's own lock deadline is computed, so the provider wait, the account-lock wait and the POST can together exceed get_or_refresh_sync's 30 s. It only happens with a leftover forward marker, so it's rare. Passing the remaining budget would bound it.

Sibling paths checked: the email sidecar's DELETE /v1/email/connectors/{provider} (updated, with a test), the forwarded-connection revoke (now all_accounts=True), uninstall (credentials cleared before ~/.gaia is removed, so the index is still readable), the start screen, and list_stored_providers. No caller passes the old account_email= keyword to get_access_token, get_or_refresh or delete_connection. The TUI doesn't call connector disconnect. Docs drift: no stale "one account per provider" claim remains in docs/ or the hub agent docs.

Strengths

  • Upgrade safety is well handled. The first account keeps the <provider>:default keyring slot forever. A missing index rebuilds itself from that slot, and a legacy account learns its stable id on its next refresh without blocking it.
  • Locking is careful. Provider lock, then account lock, then index lock, and the one place that needs the reverse (_claim_identity) only tries the lock and never waits, so it can't deadlock. The index writes are atomic (mkstemp + fsync + os.replace).
  • It fails loudly where it used to fail silently. A sign-in GAIA can't identify used to be saved as "default". Now it's refused with a remedy, and the profile lookup has a deadline.

@kovtcharov-amd
kovtcharov-amd merged commit 1400c2f into amd:main Nov 18, 2026
96 of 98 checks passed
kovtcharov-amd added a commit that referenced this pull request Nov 18, 2026
People can now connect several Google and Microsoft accounts at once
(#8331), but the terminal UI showed only one account per connector and
had no way to add, remove or reconnect a single account. With this
change `/connectors` lists each account with its state and marks the
default. New commands manage one account at a time, and when you don't
say which account, GAIA lists the choices instead of guessing. A
calendar approval names the account the event lands on. Someone with one
account sees the same line as before.

Builds on #8331. Review only the two `tui` commits on top of it.

<table><tr><th>Before</th><th>After</th></tr><tr>
<td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/tui-before-connectors-list.png"
width="420"><br>Two Google accounts, one expired: only one shows.</td>
<td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/tui-connectors-list.png"
width="420"><br>Each account, the default, and the expired one's
fix.</td>
</tr><tr><td></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/tui-connectors-remove-done.png"
width="420"><br>Removing one of two accounts asks which, then removes
only that one.</td></tr></table>

New commands:
- `/connectors remove <id> [address]` signs a Google or Microsoft
account out of GAIA. With several accounts and none named, it lists
them.
- `/connectors add <id>` signs in another account through the browser.
- `/connectors reconnect <id> <address>` signs an expired account in
again.
- `/connectors default <id> <address>` picks the account GAIA uses when
none is named.
- `/connectors revoke` keeps its old meaning for tool servers (Slack,
Notion), and on Google or Microsoft it points to `remove`.

## Test plan
- [ ] `cd tui && go test ./...` passes
(`TestColdStartThroughTheRealGaiaDaemonStart` needs fastapi and uvicorn
in the local Python; it fails the same way on main without them)
- [ ] `cd tui && go test ./test/ -run
TestConnectorsShowsAndRemovesOneOfSeveralAccounts` drives the real TUI
against a stand-in CLI with two Google accounts and checks exactly one
disconnect, for the named account
- [ ] With two real Google accounts connected (`gaia connectors connect
google --add`), `/connectors` shows both lines and marks the default
- [ ] `/connectors remove google` lists both addresses and removes
nothing. `/connectors remove google <second address>` removes only that
one
- [ ] `/connectors add google` shows the sign-in link and reports "Added
…" when sign-in finishes

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
kovtcharov-amd added a commit that referenced this pull request Nov 18, 2026
People can now connect several Google and Microsoft accounts at once
(#8331), but the Agent UI still showed only the default address, and it
kept calling a dead sign-in "Connected". With this change Settings lists
every account with its own state: Reconnect when its sign-in expired,
Make default, and its own Disconnect, which names the address before
removing it. Chat cards offer to reconnect the exact account that failed
instead of connecting the provider again. Email approvals show the
sending account on its own translated row. Someone with one account sees
the same card plus an "Add another Google account" link.

Builds on #8331. Review only the two `webui` commits on top of it.
Kalin's #7577 and #8281 rewrite the Connectors page; the account list
lives in its own component so it can move into that layout when one of
them lands first.

<table>
<tr><th>Before</th><th>After</th></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-before-settings-three-accounts-en.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-settings-three-accounts-en.png"
width="420"></td></tr>
<tr><td colspan="2">Three Google accounts, one expired. Before: only the
default shows, as "Connected". After: each account, its state and its
actions.</td></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-before-settings-three-accounts-ar.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-settings-three-accounts-ar.png"
width="420"></td></tr>
<tr><td colspan="2">The same in Arabic.</td></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-before-settings-one-account-en.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-settings-one-account-en.png"
width="420"></td></tr>
<tr><td colspan="2">One account: unchanged except the "Add another
Google account" link.</td></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-before-approval-from-en.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-approval-from-en.png"
width="420"></td></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-before-approval-from-ar.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-approval-from-ar.png"
width="420"></td></tr>
<tr><td colspan="2">Email approval: the sending account gets its own
row, with labels in the UI language.</td></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-settings-disconnect-dialog-en.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-settings-disconnect-dialog-ar.png"
width="420"></td></tr>
<tr><td colspan="2">Disconnecting one account names it and says the
others keep working.</td></tr>
</table>

### Disconnecting several accounts at once

If a Disconnect would remove more than one account, GAIA now lists them
and asks first. Before, it showed a raw server error.

| Before | After | After (Arabic) |
|---|---|---|
| <img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/pr3/before-disconnect-all-en.png"
width="300"> | <img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/pr3/after-disconnect-all-en.png"
width="300"> | <img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/pr3/after-disconnect-all-ar.png"
width="300"> |

## Test plan
- [ ] `cd src/gaia/apps/webui && npm test`: the new account tests for
Settings, the chat Connect card, the email Connect button, the retry
banner and the approval card pass
- [ ] `npm run test:rtl`: the connector scenes (several accounts with
one expired and the dialog open; one account) and the approval From row
pass in English and Arabic
- [ ] `pytest tests/unit/agents/tools/test_connect_card.py` passes (the
card can now name the account that failed)
- [ ] With one Google account connected, Settings › Connectors › Google
looks as before plus "Add another Google account"
- [ ] Add a second Google account from that link: the tile says "2
accounts", each row has Make default and Disconnect, and disconnecting
one asks first and leaves the other working
- [ ] Revoke one account's access at myaccount.google.com and ask GAIA
to read mail: that row shows "Sign-in expired" with Reconnect, and
Reconnect brings it back

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
@kovtcharov-amd kovtcharov-amd mentioned this pull request Nov 19, 2026
kovtcharov-amd added a commit that referenced this pull request Nov 19, 2026
# GAIA v0.27.0 Release Notes

## Summary

- Connect more than one Google or Microsoft account, and manage each one
separately.
- GAIA desktop has a browser beside the chat that both you and GAIA can
use.
- Type `/` and a skill's name to run that skill on a request.
- New skills build and check Office files and triage logs.
- The standalone email agent is gone; the main GAIA agent handles mail.
- 8 contributors merged 87 PRs and closed 72 issues since v0.26.0.

## Breaking Changes

- **The standalone email agent is removed** — `gaia email`, the
`gaia-agent-email` and `@amd-gaia/agent-email` packages, the `/v1/email`
routes and the `email` setup profile are gone. Ask GAIA about your mail
in `gaia chat` or the Agent UI instead; it reads, drafts and sends
through the Google and Microsoft connectors, as the [Email
guide](/guides/email) describes. On upgrade the old install is removed,
and any email it had scheduled is named once, since it won't be sent.
(PR [#7108](#7108))
- **`gaia agent list` and `gaia eval benchmark` are removed** — GAIA
ships one agent, and `gaia agent list` now says what replaced it. (PR
[#7108](#7108))
- **`gaia.ui.email_sidecar` is renamed `gaia.ui.sidecar`** — update the
import. (PR [#7108](#7108))

## What's New

- **Several accounts per mail provider** — `gaia connectors connect
google --add` adds another account; Settings and the terminal UI list
each one with its own Reconnect, Make default and Disconnect. (PRs
[#8331](#8331),
[#8332](#8332),
[#8333](#8333))
- **Browser pane in GAIA desktop** — browse beside the chat while GAIA
reads and drives the same tab, and pick part of a page to ask about. (PR
[#5973](#5973))
- **Run a skill by name** — start a message with `/skill-name` in the
Agent UI, terminal UI, `gaia -p` or the API; typing `/` lists installed
skills. (PR [#8483](#8483))
- **Office documents** — the `office-docs` skill builds spreadsheets,
decks with editable charts and Word files; its `verify_workbook` tool
recalculates formulas to catch wrong cell references. (PR
[#5417](#5417))
- **Log triage** — the `log-triage` skill's `triage_logs` tool reads
every named log in one call and returns the anomalies, bursts and hosts
hit. (PR [#5465](#5465))
- **Skill auto-load, opt-in** — with `GAIA_SKILL_AUTOLOAD=1` a skill
that clearly matches the request loads before the turn. Off by default.
(PR [#5442](#5442))
- **Document reranking, opt-in** — `RAGConfig(enable_reranking=True)`
reorders retrieved passages with a downloaded Lemonade reranking model.
(PR [#6136](#6136))
- **Review saved folder answers** — `gaia trust` lists, adds, declines
and forgets GAIA's per-folder answers about project guidance files. (PR
[#8480](#8480))
- **Sign in to Gmail over SSH** — `gaia connectors connect google
--callback-port PORT` fixes the sign-in port so it can be forwarded. (PR
[#8474](#8474))
- **Settings reach open chats** — a model server, connector or skill
change applies on an open chat's next message, including in the terminal
UI. (PR [#8400](#8400))
- **Agent UI** — Ctrl+/ lists keyboard shortcuts, formulas render
instead of LaTeX source, the library shows which chats use each
document, a scheduled task can be edited in place with its past runs
listed, and connector setup is shown as numbered steps. (PRs
[#7504](#7504),
[#7499](#7499),
[#7514](#7514),
[#7527](#7527),
[#8281](#8281),
[#8279](#8279),
[#8280](#8280))
- **Scripted `gaia -p` runs** — `--disallowed-tools`, `--no-web` and
`--no-skills` withhold tools; the run uses the apps' model without
downloading one, uses its whole `--time-limit`, and the agent knows
nobody is there to answer questions. (PRs
[#8326](#8326),
[#7808](#7808),
[#8385](#8385),
[#8451](#8451))
- **Large tool results pass by handle** — a tool given an `output_…`
handle gets the full result without it entering the prompt. (PR
[#8121](#8121))

## Bug Fixes

- **A missing command-line program becomes a step to install it**, not a
dead end. (PR [#8251](#8251))
- **A reply that stalls partway is requested again.** (PR
[#8446](#8446))
- **A chat fails at once when the chosen model server is down**, instead
of waiting. (PR [#8436](#8436))
- **A failed turn stays marked failed in history.** (PR
[#8335](#8335))
- **A document is never reported attached when nothing was written.**
(PR [#8388](#8388))
- **Attached file names keep their spaces and non-Latin scripts.** (PR
[#8461](#8461))
- **The agent can read images GAIA generated.** (PR
[#8478](#8478))
- **A bare JSON answer ends the turn.** (PR
[#8462](#8462))
- **A reply that was all thinking is told to act**, and the next one
thinks less. (PRs [#8430](#8430),
[#8448](#8448))
- **A file shown whole with `cat` counts as read back.** (PR
[#8458](#8458))
- **`run_python` says when long output was cut**, and a script missing a
module is pointed at the system Python. (PRs
[#8450](#8450),
[#8426](#8426))
- **Time limits are respected** — the model is told the limit, a
command's timeout never outlasts it, and no test run is requested after
it. (PRs [#8429](#8429),
[#8424](#8424),
[#8452](#8452))
- **`gaia -p` streams its model calls**, so a long reply is not lost.
(PR [#8427](#8427))
- **Model SDKs load on first use**, and context checkpoints are limited.
(PR [#8459](#8459))
- **A shell result sent to the model leaves out what it already knows.**
(PR [#8428](#8428))
- **Outlook availability is no longer guessed** when a meeting's time
can't be read. (PR [#8267](#8267))
- **No local chat download is planned while chat runs on a cloud
model.** (PR [#8086](#8086))
- **Setup shows the same model size and name as Settings.** (PR
[#8431](#8431))
- **A reply cut short by a crash isn't continued.** (PR
[#8391](#8391))
- **An MCP connector shows Connected only after a check has started
it.** (PR [#8434](#8434))
- **The document library's install hint matches this build.** (PR
[#8327](#8327))
- **A document overlap of 0 repeats nothing between chunks.** (PR
[#8382](#8382))
- **Documents in Russian, Greek, Polish and other languages are split
into sentences**, so their chunks overlap like English ones instead of
being cut every 2,000 characters. (PR
[#8499](#8499))
- **Documents added while the model server was down are indexed once it
is back**, and show "Waiting", not "Failed". (PR
[#8353](#8353))
- **Setup retries and resumes a dropped assistant download** instead of
failing. (PR [#8490](#8490))
- **A failed model download stays reported after Settings closes**,
until you dismiss it. (PR
[#8468](#8468))
- **Impossible input gets a 4xx error, not a 500.** (PR
[#8291](#8291))
- **Agent UI layout** — popovers stay on screen in right-to-left layouts
at phone width, the Mac window buttons clear the folded sidebar, and
closing the resource strip says how to bring it back. (PRs
[#8455](#8455),
[#8476](#8476),
[#8432](#8432))
- **The "GAIA doesn't run this model server" line is translated in
Arabic.** (PR [#8435](#8435))
- **A release candidate names its own pre-release as the agent's
source.** (PR [#8433](#8433))

## Known Issues

- **Installed builds: `gaia -p` refuses `--time-limit`,
`--disallowed-tools`, `--no-web` and `--no-skills`**, because there the
agent runs through GAIA's background service — run without them, or from
a developer install that includes the agent package. Tracked in
[#8495](#8495).
- **NPU PCs: chat on the NPU profile returns an empty reply** — use the
GPU/CPU profile for now. Tracked in
[#6008](#6008).
- **Fedora 44: setup cannot reach any HTTPS site**, so it can neither
connect a cloud model nor download one — tracked in
[#7226](#7226).
- **Long sessions on Windows: Lemonade's bundled llama-server leaks
handles on every request** — restart the model server from time to time.
Tracked in [#8312](#8312).
- **Coding: editing a config, data or `SKILL.md` file does not mark an
earlier "tests pass" as stale** — re-run the tests after such an edit.
Tracked in [#8213](#8213).
- **Your own model server, stopped: the connection banner says it is
"not installed"** — start your server again. Tracked in
[#8313](#8313).
- **Summarizing a 1,000+ page document can time out** — ask about
sections or page ranges instead. Tracked in
[#8218](#8218).

## Contributors

Thanks to the community members who contributed to this release:

- [@tylerbea](https://github.com/tylerbea) — several accounts per
connector, the browser pane, `/skill-name` in chat, and Mac window
layout (PRs [#8331](#8331),
[#8332](#8332),
[#8333](#8333),
[#5973](#5973),
[#8483](#8483),
[#8476](#8476))
- [@akshat-lakhera](https://github.com/akshat-lakhera) — `gaia trust`
and the Gmail sign-in callback port (PRs
[#8480](#8480),
[#8474](#8474))
- [@rapuckett](https://github.com/rapuckett) — failed-turn history,
honest document attachment, right-to-left popovers, and test and tooling
fixes (PRs [#8335](#8335),
[#8388](#8388),
[#8455](#8455),
[#8453](#8453),
[#8454](#8454),
[#8471](#8471))
- [@eshitakundu](https://github.com/eshitakundu) — passing tool results
by handle, and measuring what MCP servers cost an agent (PRs
[#8121](#8121),
[#8294](#8294))
- [@bniladridas](https://github.com/bniladridas) — bare JSON answers,
attachment names, failed-download reporting, and installer and test CI
fixes (PRs [#8462](#8462),
[#8461](#8461),
[#8468](#8468),
[#8482](#8482),
[#8466](#8466),
[#8465](#8465),
[#8467](#8467),
[#8464](#8464),
[#8402](#8402))
- [@huong8373tt-beep](https://github.com/huong8373tt-beep) — optional
Lemonade reranking for document search (PR
[#6136](#6136))
- [@0z5a](https://github.com/0z5a) — sentence splitting for non-ASCII
languages (PR [#8499](#8499))

## Full Changelog

**87 commits** since v0.26.0. The PR links above are the changelog.

Full Changelog:
[v0.26.0...v0.27.0](v0.26.0...v0.27.0)
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
…ider (amd#8331)

People want GAIA to read and send from more than one mailbox, for
example a personal Gmail, a work Gmail and an Outlook account. Today
GAIA keeps one account per provider: a second Gmail sign-in silently
replaces the first, and a sign-in it can't identify is saved as
"default". With this change each provider keeps a list of accounts, told
apart by the provider's stable account id. Adding an account shows the
provider's account picker. Reconnecting names the account, and the same
account is updated in place while a different one is added as new.
Disconnect, refresh, expired sign-ins, uninstall and forwarded
connections all work per account. Anyone with one account sees no
change.

This is the first of four PRs from
`docs/plans/multi-account-mail-calendar.md`. The mail and calendar tools
still use the default account here. Making them use every account, plus
the Settings and TUI screens, comes in the follow-up PRs that build on
this branch.

## Test plan
- [ ] `pytest tests/unit/connectors
tests/unit/installer/test_uninstall_command.py
tests/unit/chat/ui/test_start_screen.py -n 8`
- [ ] `gaia connectors connect google`, then `gaia connectors connect
google --add` with a second Google account. `gaia connectors list
google` shows both, with the first marked default.
- [ ] `gaia connectors disconnect google` refuses and lists both
accounts. `--account <second>` removes only that one, and the first
still works (`gaia connectors test google`).
- [ ] `gaia connectors set-default google <address>` changes which
account `gaia connectors list` marks as default.
- [ ] An existing single-account install keeps working after the upgrade
without reconnecting.

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
People can now connect several Google and Microsoft accounts at once
(amd#8331), but the terminal UI showed only one account per connector and
had no way to add, remove or reconnect a single account. With this
change `/connectors` lists each account with its state and marks the
default. New commands manage one account at a time, and when you don't
say which account, GAIA lists the choices instead of guessing. A
calendar approval names the account the event lands on. Someone with one
account sees the same line as before.

Builds on amd#8331. Review only the two `tui` commits on top of it.

<table><tr><th>Before</th><th>After</th></tr><tr>
<td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/tui-before-connectors-list.png"
width="420"><br>Two Google accounts, one expired: only one shows.</td>
<td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/tui-connectors-list.png"
width="420"><br>Each account, the default, and the expired one's
fix.</td>
</tr><tr><td></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/tui-connectors-remove-done.png"
width="420"><br>Removing one of two accounts asks which, then removes
only that one.</td></tr></table>

New commands:
- `/connectors remove <id> [address]` signs a Google or Microsoft
account out of GAIA. With several accounts and none named, it lists
them.
- `/connectors add <id>` signs in another account through the browser.
- `/connectors reconnect <id> <address>` signs an expired account in
again.
- `/connectors default <id> <address>` picks the account GAIA uses when
none is named.
- `/connectors revoke` keeps its old meaning for tool servers (Slack,
Notion), and on Google or Microsoft it points to `remove`.

## Test plan
- [ ] `cd tui && go test ./...` passes
(`TestColdStartThroughTheRealGaiaDaemonStart` needs fastapi and uvicorn
in the local Python; it fails the same way on main without them)
- [ ] `cd tui && go test ./test/ -run
TestConnectorsShowsAndRemovesOneOfSeveralAccounts` drives the real TUI
against a stand-in CLI with two Google accounts and checks exactly one
disconnect, for the named account
- [ ] With two real Google accounts connected (`gaia connectors connect
google --add`), `/connectors` shows both lines and marks the default
- [ ] `/connectors remove google` lists both addresses and removes
nothing. `/connectors remove google <second address>` removes only that
one
- [ ] `/connectors add google` shows the sign-in link and reports "Added
…" when sign-in finishes

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
People can now connect several Google and Microsoft accounts at once
(amd#8331), but the Agent UI still showed only the default address, and it
kept calling a dead sign-in "Connected". With this change Settings lists
every account with its own state: Reconnect when its sign-in expired,
Make default, and its own Disconnect, which names the address before
removing it. Chat cards offer to reconnect the exact account that failed
instead of connecting the provider again. Email approvals show the
sending account on its own translated row. Someone with one account sees
the same card plus an "Add another Google account" link.

Builds on amd#8331. Review only the two `webui` commits on top of it.
Kalin's amd#7577 and amd#8281 rewrite the Connectors page; the account list
lives in its own component so it can move into that layout when one of
them lands first.

<table>
<tr><th>Before</th><th>After</th></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-before-settings-three-accounts-en.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-settings-three-accounts-en.png"
width="420"></td></tr>
<tr><td colspan="2">Three Google accounts, one expired. Before: only the
default shows, as "Connected". After: each account, its state and its
actions.</td></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-before-settings-three-accounts-ar.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-settings-three-accounts-ar.png"
width="420"></td></tr>
<tr><td colspan="2">The same in Arabic.</td></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-before-settings-one-account-en.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-settings-one-account-en.png"
width="420"></td></tr>
<tr><td colspan="2">One account: unchanged except the "Add another
Google account" link.</td></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-before-approval-from-en.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-approval-from-en.png"
width="420"></td></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-before-approval-from-ar.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-approval-from-ar.png"
width="420"></td></tr>
<tr><td colspan="2">Email approval: the sending account gets its own
row, with labels in the UI language.</td></tr>
<tr><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-settings-disconnect-dialog-en.png"
width="420"></td><td width="420"><img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/ui-after-settings-disconnect-dialog-ar.png"
width="420"></td></tr>
<tr><td colspan="2">Disconnecting one account names it and says the
others keep working.</td></tr>
</table>

### Disconnecting several accounts at once

If a Disconnect would remove more than one account, GAIA now lists them
and asks first. Before, it showed a raw server error.

| Before | After | After (Arabic) |
|---|---|---|
| <img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/pr3/before-disconnect-all-en.png"
width="300"> | <img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/pr3/after-disconnect-all-en.png"
width="300"> | <img
src="https://raw.githubusercontent.com/tylerbea/gaia/pr-assets-multi-account/pr3/after-disconnect-all-ar.png"
width="300"> |

## Test plan
- [ ] `cd src/gaia/apps/webui && npm test`: the new account tests for
Settings, the chat Connect card, the email Connect button, the retry
banner and the approval card pass
- [ ] `npm run test:rtl`: the connector scenes (several accounts with
one expired and the dialog open; one account) and the approval From row
pass in English and Arabic
- [ ] `pytest tests/unit/agents/tools/test_connect_card.py` passes (the
card can now name the account that failed)
- [ ] With one Google account connected, Settings › Connectors › Google
looks as before plus "Add another Google account"
- [ ] Add a second Google account from that link: the tile says "2
accounts", each row has Make default and Disconnect, and disconnecting
one asks first and leaves the other working
- [ ] Revoke one account's access at myaccount.google.com and ask GAIA
to read mail: that row shows "Sign-in expired" with Reconnect, and
Reconnect brings it back

---------

Co-authored-by: Kalin Ovtcharov <[email protected]>
rapuckett pushed a commit to rapuckett/gaia that referenced this pull request Nov 19, 2026
# GAIA v0.27.0 Release Notes

## Summary

- Connect more than one Google or Microsoft account, and manage each one
separately.
- GAIA desktop has a browser beside the chat that both you and GAIA can
use.
- Type `/` and a skill's name to run that skill on a request.
- New skills build and check Office files and triage logs.
- The standalone email agent is gone; the main GAIA agent handles mail.
- 8 contributors merged 87 PRs and closed 72 issues since v0.26.0.

## Breaking Changes

- **The standalone email agent is removed** — `gaia email`, the
`gaia-agent-email` and `@amd-gaia/agent-email` packages, the `/v1/email`
routes and the `email` setup profile are gone. Ask GAIA about your mail
in `gaia chat` or the Agent UI instead; it reads, drafts and sends
through the Google and Microsoft connectors, as the [Email
guide](/guides/email) describes. On upgrade the old install is removed,
and any email it had scheduled is named once, since it won't be sent.
(PR [amd#7108](amd#7108))
- **`gaia agent list` and `gaia eval benchmark` are removed** — GAIA
ships one agent, and `gaia agent list` now says what replaced it. (PR
[amd#7108](amd#7108))
- **`gaia.ui.email_sidecar` is renamed `gaia.ui.sidecar`** — update the
import. (PR [amd#7108](amd#7108))

## What's New

- **Several accounts per mail provider** — `gaia connectors connect
google --add` adds another account; Settings and the terminal UI list
each one with its own Reconnect, Make default and Disconnect. (PRs
[amd#8331](amd#8331),
[amd#8332](amd#8332),
[amd#8333](amd#8333))
- **Browser pane in GAIA desktop** — browse beside the chat while GAIA
reads and drives the same tab, and pick part of a page to ask about. (PR
[amd#5973](amd#5973))
- **Run a skill by name** — start a message with `/skill-name` in the
Agent UI, terminal UI, `gaia -p` or the API; typing `/` lists installed
skills. (PR [amd#8483](amd#8483))
- **Office documents** — the `office-docs` skill builds spreadsheets,
decks with editable charts and Word files; its `verify_workbook` tool
recalculates formulas to catch wrong cell references. (PR
[amd#5417](amd#5417))
- **Log triage** — the `log-triage` skill's `triage_logs` tool reads
every named log in one call and returns the anomalies, bursts and hosts
hit. (PR [amd#5465](amd#5465))
- **Skill auto-load, opt-in** — with `GAIA_SKILL_AUTOLOAD=1` a skill
that clearly matches the request loads before the turn. Off by default.
(PR [amd#5442](amd#5442))
- **Document reranking, opt-in** — `RAGConfig(enable_reranking=True)`
reorders retrieved passages with a downloaded Lemonade reranking model.
(PR [amd#6136](amd#6136))
- **Review saved folder answers** — `gaia trust` lists, adds, declines
and forgets GAIA's per-folder answers about project guidance files. (PR
[amd#8480](amd#8480))
- **Sign in to Gmail over SSH** — `gaia connectors connect google
--callback-port PORT` fixes the sign-in port so it can be forwarded. (PR
[amd#8474](amd#8474))
- **Settings reach open chats** — a model server, connector or skill
change applies on an open chat's next message, including in the terminal
UI. (PR [amd#8400](amd#8400))
- **Agent UI** — Ctrl+/ lists keyboard shortcuts, formulas render
instead of LaTeX source, the library shows which chats use each
document, a scheduled task can be edited in place with its past runs
listed, and connector setup is shown as numbered steps. (PRs
[amd#7504](amd#7504),
[amd#7499](amd#7499),
[amd#7514](amd#7514),
[amd#7527](amd#7527),
[amd#8281](amd#8281),
[amd#8279](amd#8279),
[amd#8280](amd#8280))
- **Scripted `gaia -p` runs** — `--disallowed-tools`, `--no-web` and
`--no-skills` withhold tools; the run uses the apps' model without
downloading one, uses its whole `--time-limit`, and the agent knows
nobody is there to answer questions. (PRs
[amd#8326](amd#8326),
[amd#7808](amd#7808),
[amd#8385](amd#8385),
[amd#8451](amd#8451))
- **Large tool results pass by handle** — a tool given an `output_…`
handle gets the full result without it entering the prompt. (PR
[amd#8121](amd#8121))

## Bug Fixes

- **A missing command-line program becomes a step to install it**, not a
dead end. (PR [amd#8251](amd#8251))
- **A reply that stalls partway is requested again.** (PR
[amd#8446](amd#8446))
- **A chat fails at once when the chosen model server is down**, instead
of waiting. (PR [amd#8436](amd#8436))
- **A failed turn stays marked failed in history.** (PR
[amd#8335](amd#8335))
- **A document is never reported attached when nothing was written.**
(PR [amd#8388](amd#8388))
- **Attached file names keep their spaces and non-Latin scripts.** (PR
[amd#8461](amd#8461))
- **The agent can read images GAIA generated.** (PR
[amd#8478](amd#8478))
- **A bare JSON answer ends the turn.** (PR
[amd#8462](amd#8462))
- **A reply that was all thinking is told to act**, and the next one
thinks less. (PRs [amd#8430](amd#8430),
[amd#8448](amd#8448))
- **A file shown whole with `cat` counts as read back.** (PR
[amd#8458](amd#8458))
- **`run_python` says when long output was cut**, and a script missing a
module is pointed at the system Python. (PRs
[amd#8450](amd#8450),
[amd#8426](amd#8426))
- **Time limits are respected** — the model is told the limit, a
command's timeout never outlasts it, and no test run is requested after
it. (PRs [amd#8429](amd#8429),
[amd#8424](amd#8424),
[amd#8452](amd#8452))
- **`gaia -p` streams its model calls**, so a long reply is not lost.
(PR [amd#8427](amd#8427))
- **Model SDKs load on first use**, and context checkpoints are limited.
(PR [amd#8459](amd#8459))
- **A shell result sent to the model leaves out what it already knows.**
(PR [amd#8428](amd#8428))
- **Outlook availability is no longer guessed** when a meeting's time
can't be read. (PR [amd#8267](amd#8267))
- **No local chat download is planned while chat runs on a cloud
model.** (PR [amd#8086](amd#8086))
- **Setup shows the same model size and name as Settings.** (PR
[amd#8431](amd#8431))
- **A reply cut short by a crash isn't continued.** (PR
[amd#8391](amd#8391))
- **An MCP connector shows Connected only after a check has started
it.** (PR [amd#8434](amd#8434))
- **The document library's install hint matches this build.** (PR
[amd#8327](amd#8327))
- **A document overlap of 0 repeats nothing between chunks.** (PR
[amd#8382](amd#8382))
- **Documents in Russian, Greek, Polish and other languages are split
into sentences**, so their chunks overlap like English ones instead of
being cut every 2,000 characters. (PR
[amd#8499](amd#8499))
- **Documents added while the model server was down are indexed once it
is back**, and show "Waiting", not "Failed". (PR
[amd#8353](amd#8353))
- **Setup retries and resumes a dropped assistant download** instead of
failing. (PR [amd#8490](amd#8490))
- **A failed model download stays reported after Settings closes**,
until you dismiss it. (PR
[amd#8468](amd#8468))
- **Impossible input gets a 4xx error, not a 500.** (PR
[amd#8291](amd#8291))
- **Agent UI layout** — popovers stay on screen in right-to-left layouts
at phone width, the Mac window buttons clear the folded sidebar, and
closing the resource strip says how to bring it back. (PRs
[amd#8455](amd#8455),
[amd#8476](amd#8476),
[amd#8432](amd#8432))
- **The "GAIA doesn't run this model server" line is translated in
Arabic.** (PR [amd#8435](amd#8435))
- **A release candidate names its own pre-release as the agent's
source.** (PR [amd#8433](amd#8433))

## Known Issues

- **Installed builds: `gaia -p` refuses `--time-limit`,
`--disallowed-tools`, `--no-web` and `--no-skills`**, because there the
agent runs through GAIA's background service — run without them, or from
a developer install that includes the agent package. Tracked in
[amd#8495](amd#8495).
- **NPU PCs: chat on the NPU profile returns an empty reply** — use the
GPU/CPU profile for now. Tracked in
[amd#6008](amd#6008).
- **Fedora 44: setup cannot reach any HTTPS site**, so it can neither
connect a cloud model nor download one — tracked in
[amd#7226](amd#7226).
- **Long sessions on Windows: Lemonade's bundled llama-server leaks
handles on every request** — restart the model server from time to time.
Tracked in [amd#8312](amd#8312).
- **Coding: editing a config, data or `SKILL.md` file does not mark an
earlier "tests pass" as stale** — re-run the tests after such an edit.
Tracked in [amd#8213](amd#8213).
- **Your own model server, stopped: the connection banner says it is
"not installed"** — start your server again. Tracked in
[amd#8313](amd#8313).
- **Summarizing a 1,000+ page document can time out** — ask about
sections or page ranges instead. Tracked in
[amd#8218](amd#8218).

## Contributors

Thanks to the community members who contributed to this release:

- [@tylerbea](https://github.com/tylerbea) — several accounts per
connector, the browser pane, `/skill-name` in chat, and Mac window
layout (PRs [amd#8331](amd#8331),
[amd#8332](amd#8332),
[amd#8333](amd#8333),
[amd#5973](amd#5973),
[amd#8483](amd#8483),
[amd#8476](amd#8476))
- [@akshat-lakhera](https://github.com/akshat-lakhera) — `gaia trust`
and the Gmail sign-in callback port (PRs
[amd#8480](amd#8480),
[amd#8474](amd#8474))
- [@rapuckett](https://github.com/rapuckett) — failed-turn history,
honest document attachment, right-to-left popovers, and test and tooling
fixes (PRs [amd#8335](amd#8335),
[amd#8388](amd#8388),
[amd#8455](amd#8455),
[amd#8453](amd#8453),
[amd#8454](amd#8454),
[amd#8471](amd#8471))
- [@eshitakundu](https://github.com/eshitakundu) — passing tool results
by handle, and measuring what MCP servers cost an agent (PRs
[amd#8121](amd#8121),
[amd#8294](amd#8294))
- [@bniladridas](https://github.com/bniladridas) — bare JSON answers,
attachment names, failed-download reporting, and installer and test CI
fixes (PRs [amd#8462](amd#8462),
[amd#8461](amd#8461),
[amd#8468](amd#8468),
[amd#8482](amd#8482),
[amd#8466](amd#8466),
[amd#8465](amd#8465),
[amd#8467](amd#8467),
[amd#8464](amd#8464),
[amd#8402](amd#8402))
- [@huong8373tt-beep](https://github.com/huong8373tt-beep) — optional
Lemonade reranking for document search (PR
[amd#6136](amd#6136))
- [@0z5a](https://github.com/0z5a) — sentence splitting for non-ASCII
languages (PR [amd#8499](amd#8499))

## Full Changelog

**87 commits** since v0.26.0. The PR links above are the changelog.

Full Changelog:
[v0.26.0...v0.27.0](amd/gaia@v0.26.0...v0.27.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent::email Email agent changes cli CLI changes documentation Documentation changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants