mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
Restore streaming read chunk limit
This commit is contained in:
+1
-1
@@ -916,7 +916,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"maxBytes": {
|
||||
"description": "Requested upper bound. Values above the server limit are capped.",
|
||||
"description": "Requested upper bound. Values above `maxChunkBytes` are capped.",
|
||||
"format": "uint32",
|
||||
"minimum": 0.0,
|
||||
"type": [
|
||||
|
||||
+12
-1
@@ -9640,6 +9640,17 @@
|
||||
"FsReadFileOpenResponse": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"description": "Successful response for `fs/readFile/open`.",
|
||||
"properties": {
|
||||
"maxChunkBytes": {
|
||||
"description": "Maximum decoded bytes returned by one read.\n\nClients may use this value to size reusable read buffers.",
|
||||
"format": "uint32",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"maxChunkBytes"
|
||||
],
|
||||
"title": "FsReadFileOpenResponse",
|
||||
"type": "object"
|
||||
},
|
||||
@@ -9670,7 +9681,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"maxBytes": {
|
||||
"description": "Requested upper bound. Values above the server limit are capped.",
|
||||
"description": "Requested upper bound. Values above `maxChunkBytes` are capped.",
|
||||
"format": "uint32",
|
||||
"minimum": 0.0,
|
||||
"type": [
|
||||
|
||||
+12
-1
@@ -5982,6 +5982,17 @@
|
||||
"FsReadFileOpenResponse": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"description": "Successful response for `fs/readFile/open`.",
|
||||
"properties": {
|
||||
"maxChunkBytes": {
|
||||
"description": "Maximum decoded bytes returned by one read.\n\nClients may use this value to size reusable read buffers.",
|
||||
"format": "uint32",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"maxChunkBytes"
|
||||
],
|
||||
"title": "FsReadFileOpenResponse",
|
||||
"type": "object"
|
||||
},
|
||||
@@ -6012,7 +6023,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"maxBytes": {
|
||||
"description": "Requested upper bound. Values above the server limit are capped.",
|
||||
"description": "Requested upper bound. Values above `maxChunkBytes` are capped.",
|
||||
"format": "uint32",
|
||||
"minimum": 0.0,
|
||||
"type": [
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"description": "Successful response for `fs/readFile/open`.",
|
||||
"properties": {
|
||||
"maxChunkBytes": {
|
||||
"description": "Maximum decoded bytes returned by one read.\n\nClients may use this value to size reusable read buffers.",
|
||||
"format": "uint32",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"maxChunkBytes"
|
||||
],
|
||||
"title": "FsReadFileOpenResponse",
|
||||
"type": "object"
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"maxBytes": {
|
||||
"description": "Requested upper bound. Values above the server limit are capped.",
|
||||
"description": "Requested upper bound. Values above `maxChunkBytes` are capped.",
|
||||
"format": "uint32",
|
||||
"minimum": 0.0,
|
||||
"type": [
|
||||
|
||||
+7
-1
@@ -5,4 +5,10 @@
|
||||
/**
|
||||
* Successful response for `fs/readFile/open`.
|
||||
*/
|
||||
export type FsReadFileOpenResponse = Record<string, never>;
|
||||
export type FsReadFileOpenResponse = {
|
||||
/**
|
||||
* Maximum decoded bytes returned by one read.
|
||||
*
|
||||
* Clients may use this value to size reusable read buffers.
|
||||
*/
|
||||
maxChunkBytes: number, };
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
*/
|
||||
export type FsReadFileReadParams = { handleId: string, offset: number,
|
||||
/**
|
||||
* Requested upper bound. Values above the server limit are capped.
|
||||
* Requested upper bound. Values above `maxChunkBytes` are capped.
|
||||
*/
|
||||
maxBytes?: number | null, };
|
||||
|
||||
Reference in New Issue
Block a user