mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
Plumb compaction counts to TUI clients
This commit is contained in:
@@ -5115,6 +5115,13 @@
|
||||
},
|
||||
"turnId": {
|
||||
"type": "string"
|
||||
},
|
||||
"windowNumber": {
|
||||
"default": 0,
|
||||
"description": "Current context-window generation. This starts at zero and advances after compaction.",
|
||||
"format": "uint64",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
+7
@@ -19821,6 +19821,13 @@
|
||||
},
|
||||
"turnId": {
|
||||
"type": "string"
|
||||
},
|
||||
"windowNumber": {
|
||||
"default": 0,
|
||||
"description": "Current context-window generation. This starts at zero and advances after compaction.",
|
||||
"format": "uint64",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
+7
@@ -17600,6 +17600,13 @@
|
||||
},
|
||||
"turnId": {
|
||||
"type": "string"
|
||||
},
|
||||
"windowNumber": {
|
||||
"default": 0,
|
||||
"description": "Current context-window generation. This starts at zero and advances after compaction.",
|
||||
"format": "uint64",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
+7
@@ -65,6 +65,13 @@
|
||||
},
|
||||
"turnId": {
|
||||
"type": "string"
|
||||
},
|
||||
"windowNumber": {
|
||||
"default": 0,
|
||||
"description": "Current context-window generation. This starts at zero and advances after compaction.",
|
||||
"format": "uint64",
|
||||
"minimum": 0.0,
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
+5
-1
@@ -3,4 +3,8 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ThreadTokenUsage } from "./ThreadTokenUsage";
|
||||
|
||||
export type ThreadTokenUsageUpdatedNotification = { threadId: string, turnId: string, tokenUsage: ThreadTokenUsage, };
|
||||
export type ThreadTokenUsageUpdatedNotification = { threadId: string, turnId: string, tokenUsage: ThreadTokenUsage,
|
||||
/**
|
||||
* Current context-window generation. This starts at zero and advances after compaction.
|
||||
*/
|
||||
windowNumber: number, };
|
||||
|
||||
@@ -1373,6 +1373,10 @@ pub struct ThreadTokenUsageUpdatedNotification {
|
||||
pub thread_id: String,
|
||||
pub turn_id: String,
|
||||
pub token_usage: ThreadTokenUsage,
|
||||
/// Current context-window generation. This starts at zero and advances after compaction.
|
||||
#[serde(default)]
|
||||
#[ts(type = "number")]
|
||||
pub window_number: u64,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]
|
||||
|
||||
Reference in New Issue
Block a user