# fix\(web\): recreate terminal allocators when any allocation source changes · stienswout/t3code

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

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

Visibility: public

Requested revision: bba62118ec3838530d3c58b96af3aefa6beb22d2

Requested commit: bba62118ec3838530d3c58b96af3aefa6beb22d2

Commit: bba62118ec3838530d3c58b96af3aefa6beb22d2

Tree: b009c26b79ea0d2d7c4325f42e3eec34002636ad

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(web): recreate terminal allocators when any allocation source changes

The allocation-seed swap left several useCallback dependency arrays on
the old sources, so a callback could close over a stale allocatable set
when only a panel terminal or a not-yet-server-known id changed — and
mint a duplicate id anyway. All seven allocator callbacks now depend on
the allocatable memo itself (the script-run callback additionally keeps
its direct activeKnownTerminalIds use).

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

```

## Parents

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

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