# Deduplicate workspace index builds and stabilize prompt replacement · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/2743e45dbed2895e47aed18bbabb36e8dae54247)

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

Visibility: public

Requested revision: 2743e45dbed2895e47aed18bbabb36e8dae54247

Requested commit: 2743e45dbed2895e47aed18bbabb36e8dae54247

Commit: 2743e45dbed2895e47aed18bbabb36e8dae54247

Tree: e6637b6e825a2aa48fecf040eec5e4681fcb9b8f

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Deduplicate workspace index builds and stabilize prompt replacement

- Reuse in-flight workspace index builds per cwd and cap `readdir` scan concurrency at 32
- Add server tests for build deduplication and directory read concurrency limits
- Track composer text in a ref so prompt replacements use current text after send/reset

```

## Parents

- [1b409c39468298a2a0c01d988fc2d90340877f13](https://git.cafe/pingdotgg/t3code/commit/1b409c39468298a2a0c01d988fc2d90340877f13?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/2743e45dbed2895e47aed18bbabb36e8dae54247?format=markdown)
