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 15:44:36 +00:00
committed by GitHub
co-authored by Agus Zubiaga
parent fcc5e27455
commit efde5aa2bb
4 changed files with 769 additions and 829 deletions
Generated
+2 -1
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",
]