# Extract a \`Session\` struct to hold state about a given thread's scripting session \(\#26282\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/efde5aa2bb3bd1a34ef4d8d6c3554b7e5e554419)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: efde5aa2bb3bd1a34ef4d8d6c3554b7e5e554419

Requested commit: efde5aa2bb3bd1a34ef4d8d6c3554b7e5e554419

Commit: efde5aa2bb3bd1a34ef4d8d6c3554b7e5e554419

Tree: 6d33d0fb4645409965657e50a0de41a9734a271f

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Extract a `Session` struct to hold state about a given thread's scripting session (#26282)

We're still recreating a session for every tool call, but the idea is to
have a long-lived `Session` per assistant thread.

Release Notes:

- N/A

---------

Co-authored-by: Agus Zubiaga <hi@aguz.me>
```

## Parents

- [fcc5e27455d6f27725584ddea6d62209486fe829](https://git.cafe/gitcafe/zed/commit/fcc5e27455d6f27725584ddea6d62209486fe829?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/efde5aa2bb3bd1a34ef4d8d6c3554b7e5e554419?format=markdown)
