Gemini CLi crashed while trying to search for usages of a method

### What happened?

Gemini CLi crashed while trying to search for usages of a method:


```
 Okay, SpanEndpoint is updated. Now to find and fix all .Build() calls on SpanEndpoint::Builder. I'll search for .Build() and filter for relevant files.
 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ ⊷  SearchText 'Build()'                                                                                                                                              │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

⠦ Identifying Build() Locations (esc to cancel, 22s)



~/connectedhomeip (codedriven_data_model_provider*)                              no sandbox (see /docs)                                gemini-2.5-pro (99% context left)


<--- Last few GCs --->

[3193947:0x15653000]   269259 ms: Scavenge (reduce) (interleaved) 4074.7 (4113.3) -> 4074.7 (4082.3) MB, pooled: 0 MB, 3.27 / 0.00 ms  (average mu = 0.871, current mu = 0.729) allocation failure; 
[3193947:0x15653000]   269334 ms: Mark-Compact (reduce) 4208.7 (4215.5) -> 4208.4 (4214.7) MB, pooled: 0 MB, 30.88 / 0.00 ms  (+ 0.5 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 78 ms) (average mu = 0.818, cur

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 0xe13fde node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]
 2: 0x11d5070 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
 3: 0x11d5347 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
 4: 0x1402c05  [node]
 5: 0x141c499 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 6: 0x13f0b48 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 7: 0x13f1a75 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 8: 0x13ca74e v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
 9: 0x182bd6c v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
10: 0x7f290366c476 
Aborted (core dumped)
```

### What did you expect to happen?

Not crash

### Client information

<details>

```console
$ gemini /about
│ About Gemini CLI                                                          │
│                                                                           │
│ CLI Version              0.1.0-a3c46c0.0                                  │
│ Git Commit               a3c46c0                                          │
│ Model                    gemini-2.5-pro                                   │
│ Sandbox                  no sandbox                                       │
│ OS                       linux 
```

</details>


### Login information

API key

### Anything else we need to know?

_No response_

Labels: priority/p1, area/core, area/platform
State: closed