[BUG] INCIDENT: Claude removed critical path filter during collectionGroup optimization (Firebase)

Resolved 💬 3 comments Opened Oct 20, 2025 by nscar Closed Jan 8, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Issue: Claude didn't maintain the startsWith('$startCollection/') filter, which was essential for differentiating between production and test databases
Suggestion: Claude should be more conservative when optimizing code that controls data paths

What Should Happen?

Issue: Claude didn't maintain the startsWith('$startCollection/') filter, which was essential for differentiating between production and test databases
Suggestion: Claude should be more conservative when optimizing code that controls data paths

Error Messages/Logs

Steps to Reproduce

...

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.24 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗