Add cwd as an optional field to thread/list (#11651)

Add's the ability to filter app-server thread/list by cwd
This commit is contained in:
acrognale-oai
2026-02-12 21:05:04 -05:00
committed by GitHub
parent 537102e657
commit ebe359b876
10 changed files with 148 additions and 14 deletions

View File

@@ -1708,6 +1708,10 @@ pub struct ThreadListParams {
/// If false or null, only non-archived threads are returned.
#[ts(optional = nullable)]
pub archived: Option<bool>,
/// Optional cwd filter; when set, only threads whose session cwd exactly
/// matches this path are returned.
#[ts(optional = nullable)]
pub cwd: Option<String>,
}
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]