add session source to telemetry

This commit is contained in:
Roy Han
2026-03-19 17:56:55 -07:00
parent 659d21f146
commit 678f52a33b
33 changed files with 1264 additions and 83 deletions

View File

@@ -7012,6 +7012,16 @@
"null"
]
},
"metadata": {
"anyOf": [
{
"$ref": "#/definitions/ResponseItemMetadata"
},
{
"type": "null"
}
]
},
"summary": {
"items": {
"$ref": "#/definitions/ReasoningItemReasoningSummary"
@@ -7152,6 +7162,16 @@
],
"writeOnly": true
},
"metadata": {
"anyOf": [
{
"$ref": "#/definitions/ResponseItemMetadata"
},
{
"type": "null"
}
]
},
"status": {
"type": [
"string",
@@ -7179,6 +7199,16 @@
"call_id": {
"type": "string"
},
"metadata": {
"anyOf": [
{
"$ref": "#/definitions/ResponseItemMetadata"
},
{
"type": "null"
}
]
},
"output": {
"$ref": "#/definitions/FunctionCallOutputBody"
},
@@ -7254,6 +7284,16 @@
"call_id": {
"type": "string"
},
"metadata": {
"anyOf": [
{
"$ref": "#/definitions/ResponseItemMetadata"
},
{
"type": "null"
}
]
},
"name": {
"type": [
"string",
@@ -7290,6 +7330,16 @@
"execution": {
"type": "string"
},
"metadata": {
"anyOf": [
{
"$ref": "#/definitions/ResponseItemMetadata"
},
{
"type": "null"
}
]
},
"status": {
"type": "string"
},
@@ -7333,6 +7383,16 @@
],
"writeOnly": true
},
"metadata": {
"anyOf": [
{
"$ref": "#/definitions/ResponseItemMetadata"
},
{
"type": "null"
}
]
},
"status": {
"type": [
"string",
@@ -7358,6 +7418,16 @@
"id": {
"type": "string"
},
"metadata": {
"anyOf": [
{
"$ref": "#/definitions/ResponseItemMetadata"
},
{
"type": "null"
}
]
},
"result": {
"type": "string"
},
@@ -7392,6 +7462,16 @@
"ghost_commit": {
"$ref": "#/definitions/GhostCommit"
},
"metadata": {
"anyOf": [
{
"$ref": "#/definitions/ResponseItemMetadata"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"ghost_snapshot"
@@ -7412,6 +7492,16 @@
"encrypted_content": {
"type": "string"
},
"metadata": {
"anyOf": [
{
"$ref": "#/definitions/ResponseItemMetadata"
},
{
"type": "null"
}
]
},
"type": {
"enum": [
"compaction"
@@ -7473,6 +7563,16 @@
}
]
},
"session_source": {
"anyOf": [
{
"$ref": "#/definitions/SessionSourceMetadata"
},
{
"type": "null"
}
]
},
"user_message_type": {
"anyOf": [
{
@@ -8946,6 +9046,21 @@
}
]
},
"SessionSourceMetadata": {
"enum": [
"cli",
"vscode",
"exec",
"mcp",
"subagent_review",
"subagent_compact",
"subagent_memory_consolidation",
"subagent_thread_spawn",
"subagent_other",
"unknown"
],
"type": "string"
},
"Settings": {
"description": "Settings for a collaboration mode.",
"properties": {