fix(hub,cli): keep inactive file previews available through runner (#1727)

* fix(hub,cli): keep inactive file previews available through runner

* fix(cli): bound runner workspace file reads

* fix(cli): constrain runner git fallback pathspecs

* fix(cli): allow dot-prefixed workspace paths
This commit is contained in:
Ananovo
2026-10-28 12:07:18 +08:00
committed by GitHub
parent ea12ff98c6
commit 5d7e13fc5d
16 changed files with 1078 additions and 13 deletions
+43
View File
@@ -780,6 +780,49 @@ export type PathExistsResponse = {
export type MachinePathsExistsResponse = PathExistsResponse
/** Requests served by the long-lived runner for archived-session file access. */
export type WorkspaceReadFileRequest = {
cwd: string
path: string
}
export type WorkspaceListDirectoryRequest = {
cwd: string
path?: string
}
export type WorkspaceStatFilesRequest = {
cwd: string
paths: string[]
}
export type WorkspaceGitStatusRequest = {
cwd: string
timeout?: number
}
export type WorkspaceGitDiffNumstatRequest = {
cwd: string
staged?: boolean
timeout?: number
}
export type WorkspaceGitDiffFileRequest = {
cwd: string
filePath: string
staged?: boolean
timeout?: number
}
export type WorkspaceRipgrepRequest = {
cwd: string
args: string[]
fileSearch?: {
query: string
limit: number
}
}
export type CodexModelSummary = {
id: string
displayName: string