# Handle stale pending requests and reused Claude text block indices · flambo/t3code

[View on GitCafe](https://git.cafe/flambo/t3code/commit/754efdbebe49d7cd46beecdadd4aa8b5968b18d2)

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

Visibility: public

Requested revision: 754efdbebe49d7cd46beecdadd4aa8b5968b18d2

Requested commit: 754efdbebe49d7cd46beecdadd4aa8b5968b18d2

Commit: 754efdbebe49d7cd46beecdadd4aa8b5968b18d2

Tree: 35a18aa1cf008a6fde85116fb98195cd75deb129

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Handle stale pending requests and reused Claude text block indices

- Map unknown pending approval/user-input errors to explicit stale-request details
- Clear stale pending approvals and user-input prompts in session derivation logic
- Treat reused Claude text block indexes as new assistant messages to avoid item ID reuse
- Persist latest runtime metadata before provider stop-all and expand regression coverage

```

## Parents

- [ef843d400ebcf5b3cd8ccdd5953cf0ce397d56fe](https://git.cafe/flambo/t3code/commit/ef843d400ebcf5b3cd8ccdd5953cf0ce397d56fe?format=markdown)

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