chore(protocol): stabilize thread project roots

This commit is contained in:
Eva Wong
2026-05-05 10:23:25 -07:00
parent d9024bcffb
commit acbb2f1222
11 changed files with 81 additions and 9 deletions
@@ -3940,6 +3940,15 @@
}
]
},
"projectRoots": {
"items": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"type": [
"array",
"null"
]
},
"sandbox": {
"anyOf": [
{
@@ -4123,6 +4132,15 @@
}
]
},
"projectRoots": {
"items": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"type": [
"array",
"null"
]
},
"sandbox": {
"anyOf": [
{
@@ -6040,4 +6040,4 @@
}
],
"title": "ServerNotification"
}
}
@@ -16877,6 +16877,15 @@
}
]
},
"projectRoots": {
"items": {
"$ref": "#/definitions/v2/AbsolutePathBuf"
},
"type": [
"array",
"null"
]
},
"sandbox": {
"anyOf": [
{
@@ -17171,6 +17180,15 @@
}
]
},
"projectRoots": {
"items": {
"$ref": "#/definitions/v2/AbsolutePathBuf"
},
"type": [
"array",
"null"
]
},
"sandbox": {
"anyOf": [
{
@@ -18458,4 +18476,4 @@
},
"title": "CodexAppServerProtocol",
"type": "object"
}
}
@@ -14763,6 +14763,15 @@
}
]
},
"projectRoots": {
"items": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"type": [
"array",
"null"
]
},
"sandbox": {
"anyOf": [
{
@@ -15057,6 +15066,15 @@
}
]
},
"projectRoots": {
"items": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"type": [
"array",
"null"
]
},
"sandbox": {
"anyOf": [
{
@@ -16343,4 +16361,4 @@
},
"title": "CodexAppServerProtocolV2",
"type": "object"
}
}
@@ -1393,4 +1393,4 @@
],
"title": "ItemCompletedNotification",
"type": "object"
}
}
@@ -1393,4 +1393,4 @@
],
"title": "ItemStartedNotification",
"type": "object"
}
}
@@ -1090,6 +1090,15 @@
}
]
},
"projectRoots": {
"items": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"type": [
"array",
"null"
]
},
"sandbox": {
"anyOf": [
{
@@ -270,6 +270,15 @@
}
]
},
"projectRoots": {
"items": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"type": [
"array",
"null"
]
},
"sandbox": {
"anyOf": [
{
@@ -1,6 +1,7 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { AbsolutePathBuf } from "../AbsolutePathBuf";
import type { Personality } from "../Personality";
import type { ServiceTier } from "../ServiceTier";
import type { JsonValue } from "../serde_json/JsonValue";
@@ -22,7 +23,7 @@ import type { SandboxMode } from "./SandboxMode";
export type ThreadResumeParams = {threadId: string, /**
* Configuration overrides for the resumed thread, if any.
*/
model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier | null | null, cwd?: string | null, approvalPolicy?: AskForApproval | null, /**
model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier | null | null, cwd?: string | null, projectRoots?: Array<AbsolutePathBuf> | null, approvalPolicy?: AskForApproval | null, /**
* Override where approval requests are routed for review on this thread
* and subsequent turns.
*/
@@ -1,6 +1,7 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { AbsolutePathBuf } from "../AbsolutePathBuf";
import type { Personality } from "../Personality";
import type { ServiceTier } from "../ServiceTier";
import type { JsonValue } from "../serde_json/JsonValue";
@@ -9,7 +10,7 @@ import type { AskForApproval } from "./AskForApproval";
import type { SandboxMode } from "./SandboxMode";
import type { ThreadStartSource } from "./ThreadStartSource";
export type ThreadStartParams = {model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier | null | null, cwd?: string | null, approvalPolicy?: AskForApproval | null, /**
export type ThreadStartParams = {model?: string | null, modelProvider?: string | null, serviceTier?: ServiceTier | null | null, cwd?: string | null, projectRoots?: Array<AbsolutePathBuf> | null, approvalPolicy?: AskForApproval | null, /**
* Override where approval requests are routed for review on this thread
* and subsequent turns.
*/
@@ -3790,7 +3790,6 @@ pub struct ThreadStartParams {
pub service_tier: Option<Option<ServiceTier>>,
#[ts(optional = nullable)]
pub cwd: Option<String>,
#[experimental("thread/start.projectRoots")]
#[ts(optional = nullable)]
pub project_roots: Option<Vec<AbsolutePathBuf>>,
#[experimental(nested)]
@@ -3947,7 +3946,6 @@ pub struct ThreadResumeParams {
pub service_tier: Option<Option<ServiceTier>>,
#[ts(optional = nullable)]
pub cwd: Option<String>,
#[experimental("thread/resume.projectRoots")]
#[ts(optional = nullable)]
pub project_roots: Option<Vec<AbsolutePathBuf>>,
#[experimental(nested)]