René's URL Explorer Experiment


Title: `ng add @angular/fire` stops with `Cannot read properties of undefined (reading 'email')` when firebase-tools 15.26+ detects an AI agent · Issue #3768 · angular/angularfire · GitHub

Open Graph Title: `ng add @angular/fire` stops with `Cannot read properties of undefined (reading 'email')` when firebase-tools 15.26+ detects an AI agent · Issue #3768 · angular/angularfire

X Title: `ng add @angular/fire` stops with `Cannot read properties of undefined (reading 'email')` when firebase-tools 15.26+ detects an AI agent · Issue #3768 · angular/angularfire

Description: ng add @angular/fire stops during setup when firebase-tools 15.26.0 or later runs non-interactively. Running ng add yourself in an ordinary terminal is not affected. Reproduction In an Angular 21 application with firebase-tools 15.28.1, ...

Open Graph Description: ng add @angular/fire stops during setup when firebase-tools 15.26.0 or later runs non-interactively. Running ng add yourself in an ordinary terminal is not affected. Reproduction In an Angular 21 a...

X Description: ng add @angular/fire stops during setup when firebase-tools 15.26.0 or later runs non-interactively. Running ng add yourself in an ordinary terminal is not affected. Reproduction In an Angular 21 a...

Opengraph URL: https://github.com/angular/angularfire/issues/3768

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ng add @angular/fire` stops with `Cannot read properties of undefined (reading 'email')` when firebase-tools 15.26+ detects an AI agent","articleBody":"`ng add @angular/fire` stops during setup when firebase-tools 15.26.0 or later runs non-interactively. Running `ng add` yourself in an ordinary terminal is not affected.\n\n### Reproduction\n\nIn an Angular 21 application with firebase-tools 15.28.1, run `ng add @angular/fire@next` from a terminal where `AI_AGENT` or `CLAUDECODE` is set, for example one driven by Claude Code, and pick any feature. Setup prints:\n\n```\nUsing firebase-tools version 15.28.1\nCannot read properties of undefined (reading 'email')\n```\n\nThe same run with those variables unset reaches the account, project and app questions.\n\n### Cause\n\nfirebase-tools 15.26.0 turns on non-interactive mode when it detects an AI agent ([firebase/firebase-tools#10856](https://github.com/firebase/firebase-tools/pull/10856)). In that mode `login()` now starts a remote sign-in and returns `undefined` instead of the signed-in account ([firebase/firebase-tools#10777](https://github.com/firebase/firebase-tools/pull/10777)). Earlier versions threw an error in that mode instead.\n- `userPrompt` in `src/schematics/setup/prompts.ts:110` reads `defaultUser.email` from that return value, which is the error above.\n- `src/schematics/setup/index.ts:94` gets `undefined` the same way. With line 110 fixed alone, setup then calls `login.use` for an account that is already in use, which fails with `Already using account ... for this project directory.`\n- `ng deploy` reads `user.email` from `login()` in `src/schematics/deploy/actions.ts:560`.\n\n### Who is affected\n\nfirebase-tools runs non-interactively when stdin is not a terminal, or when it finds one of a list of variables, such as `AI_AGENT`, `CLAUDECODE`, `CURSOR_AGENT` or `COPILOT_GITHUB_TOKEN`, in the environment.\n- An AI coding tool that runs `ng add` or `ng deploy` for you.\n- A terminal that inherited one of those variables, for example an editor started from inside an agent session, or a shell profile that exports `COPILOT_GITHUB_TOKEN` for the Copilot CLI.\n- Every published AngularFire release has the crashing code, including `latest` (20.1.0) and `next` (21.0.0-rc.1).\n- Current Cursor (3.22.7) and VS Code (1.138.0) set them only in the terminals their agents use, not in the terminals you type in.\n- firebase-tools 15.25.1 and earlier, including 14.x, return the account in a terminal.\n\n### Directions for a fix\n\n`login()` returns the signed-in account in agent mode when it is passed `interactive: true`, an option firebase-tools applies after its agent check. Where no account may be signed in yet, an `undefined` return should mean \"no account\" rather than be read from.\n\n","author":{"url":"https://github.com/armando-navarro","@type":"Person","name":"armando-navarro"},"datePublished":"2026-09-23T01:59:08Z","url":"https://github.com/angular/angularfire/issues/3768"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:93919b39-a479-cbbe-910c-e84a8d7ecad8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCDEA:2BE4CA:23994AA:2F14F59:6B036735
html-safe-nonce4960e9d7359a3f2c46277dd67bafef8a7f33acac3806c94d473ee554f0a4ef10
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREVBOjJCRTRDQToyMzk5NEFBOjJGMTRGNTk6NkIwMzY3MzUiLCJ2aXNpdG9yX2lkIjoiNzI5NjU2ODU4NjMyMjI3NDEwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc00fbf3fcbb7076ae7daee9067fb693a8e6fe1adfd4546b1abb40e0db8aaeba4
hovercard-subject-tagissue:5547655257
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/3768/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e80a43de89cb44c4f0e7dc07ad7ddffc0fd8d63905c956bc75fc1b4c5585c7ec/angular/angularfire/issues/3768
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e80a43de89cb44c4f0e7dc07ad7ddffc0fd8d63905c956bc75fc1b4c5585c7ec/angular/angularfire/issues/3768
og:image:altng add @angular/fire stops during setup when firebase-tools 15.26.0 or later runs non-interactively. Running ng add yourself in an ordinary terminal is not affected. Reproduction In an Angular 21 a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearmando-navarro
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/angular/angularfire git https://github.com/angular/angularfire.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id49453413
octolytics-dimension-repository_nwoangular/angularfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49453413
octolytics-dimension-repository_network_root_nwoangular/angularfire
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angularfire/issues/3768#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F3768
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F3768
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangularfire
Reloadhttps://github.com/angular/angularfire/issues/3768
Reloadhttps://github.com/angular/angularfire/issues/3768
Reloadhttps://github.com/angular/angularfire/issues/3768
angularhttps://github.com/angular
angularfirehttps://github.com/angular/angularfire
Codehttps://github.com/angular/angularfire
Issues162 (162)https://github.com/angular/angularfire/issues
Pull requests5 (5)https://github.com/angular/angularfire/pulls
Discussionshttps://github.com/angular/angularfire/discussions
Actionshttps://github.com/angular/angularfire/actions
Projectshttps://github.com/angular/angularfire/projects
Security and qualityhttps://github.com/angular/angularfire/security
Insightshttps://github.com/angular/angularfire/insights
https://github.com/angular/angularfire
New issuehttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3768
New issuehttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3768
#3769https://github.com/angular/angularfire/pull/3769
ng add @angular/fire stops with Cannot read properties of undefined (reading 'email') when firebase-tools 15.26+ detects an AI agenthttps://github.com/angular/angularfire/issues/3768#top
#3769https://github.com/angular/angularfire/pull/3769
comp: schematicsng add / deploy schematics (src/schematics).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22comp%3A%20schematics%22
type: bugDefect: expected behavior doesn't happen.https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
version: current (v17+)Targets the current modular API (v17+).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22version%3A%20current%20(v17%2B)%22
21.0.0-rc.2https://github.com/angular/angularfire/milestone/30
https://github.com/armando-navarro
armando-navarrohttps://github.com/armando-navarro
on Sep 23, 2026https://github.com/angular/angularfire/issues/3768#issue-5547655257
firebase/firebase-tools#10856https://github.com/firebase/firebase-tools/pull/10856
firebase/firebase-tools#10777https://github.com/firebase/firebase-tools/pull/10777
armando-navarrohttps://github.com/armando-navarro
on Sep 23, 2026https://github.com/angular/angularfire/issues/3768#event-31644922003
docs(quickstart): say to install firebase-tools 14 before ng addhttps://github.com/armando-navarro/angularfire/commit/7294c1722048e586b5eeb48ca402083f8cc9d44a
7294c17https://github.com/armando-navarro/angularfire/commit/7294c1722048e586b5eeb48ca402083f8cc9d44a
armando-navarrohttps://github.com/armando-navarro
comp: schematicsng add / deploy schematics (src/schematics).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22comp%3A%20schematics%22
type: bugDefect: expected behavior doesn't happen.https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
version: current (v17+)Targets the current modular API (v17+).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22version%3A%20current%20(v17%2B)%22
on Sep 23, 2026https://github.com/angular/angularfire/issues/3768#event-31644929436
armando-navarrohttps://github.com/armando-navarro
on Sep 24, 2026https://github.com/angular/angularfire/issues/3768#event-31787315338
docs: correct the install and upgrade commands for 21.0.0-rc.1 (#3765)https://github.com/angular/angularfire/commit/1c8f0f367d3c28627e43c283156afe9a36f4a682
#3765https://github.com/angular/angularfire/pull/3765
1c8f0f3https://github.com/angular/angularfire/commit/1c8f0f367d3c28627e43c283156afe9a36f4a682
armando-navarrohttps://github.com/armando-navarro
on Sep 25, 2026https://github.com/angular/angularfire/issues/3768#event-31806252675
https://github.com/armando-navarro
armando-navarrohttps://github.com/armando-navarro
on Sep 25, 2026https://github.com/angular/angularfire/issues/3768#issuecomment-5825937680
#3765https://github.com/angular/angularfire/pull/3765
armando-navarrohttps://github.com/armando-navarro
completedhttps://github.com/angular/angularfire/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3769https://github.com/angular/angularfire/pull/3769
on Sep 27, 2026https://github.com/angular/angularfire/issues/3768#event-31952069903
armando-navarrohttps://github.com/armando-navarro
on Sep 27, 2026https://github.com/angular/angularfire/issues/3768#event-31952763812
fix(schematics): read the signed-in account on firebase-tools 15.26+ (a…https://github.com/armando-navarro/angularfire/commit/38dfc3f42d1e299543aefcebe00dc9eb8811e62d
a…https://github.com/angular/angularfire/pull/3769
https://docs.github.com/articles/closing-issues-via-commit-messages
38dfc3fhttps://github.com/armando-navarro/angularfire/commit/38dfc3f42d1e299543aefcebe00dc9eb8811e62d
armando-navarrohttps://github.com/armando-navarro
21.0.0-rc.2https://github.com/angular/angularfire/milestone/30
on Oct 1, 2026https://github.com/angular/angularfire/issues/3768#event-32219559050
armando-navarrohttps://github.com/armando-navarro
on Oct 10, 2026https://github.com/angular/angularfire/issues/3768#event-32922636356
fix(schematics): read the signed-in account on firebase-tools 15.26+ (#…https://github.com/angular/angularfire/commit/490b68c2133cb88a61a2cbbc85d8913c50905c15
#…https://github.com/angular/angularfire/pull/3769
https://docs.github.com/articles/closing-issues-via-commit-messages
490b68chttps://github.com/angular/angularfire/commit/490b68c2133cb88a61a2cbbc85d8913c50905c15
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angularfire/issues/3768
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3768
comp: schematicsng add / deploy schematics (src/schematics).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22comp%3A%20schematics%22
type: bugDefect: expected behavior doesn't happen.https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
version: current (v17+)Targets the current modular API (v17+).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22version%3A%20current%20(v17%2B)%22
21.0.0-rc.2https://github.com/angular/angularfire/milestone/30
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.