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>
This commit is contained in:
Antonio Scandurra 2025-03-07 16:44:36 +01:00 committed by GitHub
parent fcc5e27455
commit efde5aa2bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 769 additions and 829 deletions

3
Cargo.lock generated
View file

@ -11916,6 +11916,7 @@ version = "0.1.0"
dependencies = [
"anyhow",
"assistant_tool",
"collections",
"futures 0.3.31",
"gpui",
"mlua",
@ -11925,7 +11926,7 @@ dependencies = [
"schemars",
"serde",
"serde_json",
"smol",
"settings",
"util",
"workspace",
]