# fix\(pi\): skip dotfile entries in extension discovery · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/5792645c570306fe27f715e9282340e7ac7e0c85)

Repository: [stienswout/t3code](https://git.cafe/stienswout/t3code)

Visibility: public

Requested revision: 5792645c570306fe27f715e9282340e7ac7e0c85

Requested commit: 5792645c570306fe27f715e9282340e7ac7e0c85

Commit: 5792645c570306fe27f715e9282340e7ac7e0c85

Tree: 792b0dd37a63da6b83b170635d8ae69b531d29a4

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(pi): skip dotfile entries in extension discovery

discoverPiUserExtensions passed any *.ts/*.js directory entry as an
explicit --extension path, including macOS AppleDouble sidecars like
"._name.ts". Pi treats a parse failure on an explicit extension path as
fatal, so one stale sidecar in ~/.pi/agent/extensions killed every Pi
turn with an opaque "pi process closed stdout" error while interactive
pi kept working. Skip dot entries, matching pi's own loader.

Reported by @astarktc in #7211.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [64dd8d16b9ad2fafb6b51933a005d61a683bb015](https://git.cafe/stienswout/t3code/commit/64dd8d16b9ad2fafb6b51933a005d61a683bb015?format=markdown)

[Source at this commit](https://git.cafe/stienswout/t3code/tree/5792645c570306fe27f715e9282340e7ac7e0c85?format=markdown)
