ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / src / vs / sessions / common / sessionsTelemetry.ts 437 строк · изменён 14 нояб., 04:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
import { isCancellationError } from '../../base/common/errors.js' ;
import { StringSHA1 } from '../../base/common/hash.js' ;
import { RemoteAgentHostConnectionStatus } from '../../platform/agentHost/common/remoteAgentHostService.js' ;
import { isSSHHostKeyDeniedError } from '../../platform/agentHost/common/sshRemoteAgentHost.js' ;
import { PROTOCOL_VERSION } from '../../platform/agentHost/common/state/protocol/version/registry.js' ;
import { ITelemetryService } from '../../platform/telemetry/common/telemetry.js' ;
import { LOCAL_AGENT_HOST_PROVIDER_ID , REMOTE_AGENT_HOST_PROVIDER_PREFIX }
providerId SessionsTelemetryProviderId
providerId providerId
providerId
providerId providerId
sessionId
sha1
sha1 sessionId
sha1
button
source
owner
comment
button classification purpose comment
source classification purpose comment
telemetryService ITelemetryService button SessionsInteractionButton source SessionsInteractionSource
telemetryService source button source button
visible
owner
comment
visible classification purpose comment
telemetryService ITelemetryService visible
telemetryService visible
mode
owner
comment
mode classification purpose comment
telemetryService ITelemetryService mode
telemetryService mode
changeType
owner
comment
changeType classification purpose comment
telemetryService ITelemetryService changeType
telemetryService changeType
mode
owner
comment
mode classification purpose comment
telemetryService ITelemetryService mode
telemetryService mode
folderCount
gitFolderCount
nonGitFolderCount
isMultiRoot
folderCount gitFolderCount ISessionWorkspaceTopology
folderCount folderCount
gitFolderCount
nonGitFolderCount folderCount gitFolderCount
isMultiRoot folderCount
trigger
totalFound
withActiveHost
cachedBefore
autoConnectEnabled
hostsEnabled
success
owner
comment
trigger classification purpose comment
totalFound classification purpose isMeasurement comment
withActiveHost classification purpose isMeasurement comment
cachedBefore classification purpose isMeasurement comment
autoConnectEnabled classification purpose comment
hostsEnabled classification purpose comment
success classification purpose comment
telemetryService ITelemetryService
data
trigger TunnelDiscoveryTrigger
totalFound
withActiveHost
cachedBefore
autoConnectEnabled
hostsEnabled
success
telemetryService
trigger data trigger
totalFound data totalFound
withActiveHost data withActiveHost
cachedBefore data cachedBefore
autoConnectEnabled data autoConnectEnabled
hostsEnabled data hostsEnabled
success data success
isReconnect
attempt
durationMs
success
errorCategory
owner
comment
isReconnect classification purpose comment
attempt classification purpose isMeasurement comment
durationMs classification purpose isMeasurement comment
success classification purpose comment
errorCategory classification purpose comment
telemetryService ITelemetryService data isReconnect attempt durationMs success errorCategory TunnelConnectErrorCategory
telemetryService
isReconnect data isReconnect
attempt data attempt
durationMs data durationMs
success data success
errorCategory data errorCategory
isReconnect
totalAttempts
totalDurationMs
success
failureReason
owner
comment
isReconnect classification purpose comment
totalAttempts classification purpose isMeasurement comment
totalDurationMs classification purpose isMeasurement comment
success classification purpose comment
failureReason classification purpose comment
telemetryService ITelemetryService data isReconnect totalAttempts totalDurationMs success failureReason TunnelConnectFailureReason
telemetryService
isReconnect data isReconnect
totalAttempts data totalAttempts
totalDurationMs data totalDurationMs
success data success
failureReason data failureReason
err SSHConnectErrorCategory
err
err
RemoteAgentHostConnectionStatus err
message err err message err
message
message
operation
userInitiated
attempt
durationMs
success
willRetry
errorCategory
owner
comment
operation classification purpose comment
userInitiated classification purpose comment
attempt classification purpose isMeasurement comment
durationMs classification purpose isMeasurement comment
success classification purpose comment
willRetry classification purpose comment
errorCategory classification purpose comment
telemetryService ITelemetryService data
operation
userInitiated
attempt
durationMs
success
willRetry
errorCategory SSHConnectErrorCategory
telemetryService
data
errorCategory data errorCategory
closeCode
wasClean
lifetimeMs
messagesSent
messagesReceived
messagesDropped
trigger
owner
comment
closeCode classification purpose isMeasurement comment
wasClean classification purpose comment
lifetimeMs classification purpose isMeasurement comment
messagesSent classification purpose isMeasurement comment
messagesReceived classification purpose isMeasurement comment
messagesDropped classification purpose isMeasurement comment
trigger classification purpose comment
telemetryService ITelemetryService data closeCode wasClean lifetimeMs messagesSent messagesReceived messagesDropped trigger SocketCloseTrigger
telemetryService data
readyState
timeSinceLastReceiveMs
timeSinceLastSendMs
owner
comment
readyState classification purpose comment
timeSinceLastReceiveMs classification purpose isMeasurement comment
timeSinceLastSendMs classification purpose isMeasurement comment
telemetryService ITelemetryService data readyState timeSinceLastReceiveMs timeSinceLastSendMs
telemetryService data
hiddenDurationMs
socketAlive
forceClosed
owner
comment
hiddenDurationMs classification purpose isMeasurement comment
socketAlive classification purpose comment
forceClosed classification purpose comment
telemetryService ITelemetryService data hiddenDurationMs socketAlive forceClosed
telemetryService data
recoveredCount
totalCount
owner
comment
recoveredCount classification purpose isMeasurement comment
totalCount classification purpose isMeasurement comment
telemetryService ITelemetryService data recoveredCount totalCount
telemetryService data
from
'./agentHostSessionsProvider.js'
;
export
type
SessionsTelemetryProviderId
=
'default-copilot'
|
'local-agent-host'
|
'remote-agent-host'
|
'other'
;
export
function
getSessionsTelemetryProviderId
(
:
string
)
:
{
if
(
===
'default-copilot'
||
===
LOCAL_AGENT_HOST_PROVIDER_ID
)
{
return
;
}
if
(
===
'remote-agent-host'
||
.
startsWith
(
REMOTE_AGENT_HOST_PROVIDER_PREFIX
)
)
{
return
'remote-agent-host'
;
}
return
'other'
;
}
export
function
hashSessionIdForTelemetry
(
:
string
)
:
string
{
const
=
new
StringSHA1
(
)
;
.
update
(
)
;
return
.
digest
(
)
;
}
export
type
SessionsInteractionButton
=
|
'newSession'
|
'runPrimaryTask'
|
'addTask'
|
'generateNewTask'
|
'openTerminal'
|
'openInVSCode'
;
export
type
SessionsInteractionSource
=
'menu'
|
'actionWidget'
|
'titleBar'
|
'sidebar'
;
type
SessionsInteractionEvent
=
{
:
string
;
?
:
string
;
}
;
type
SessionsInteractionClassification
=
{
:
'osortega'
;
:
'Tracks user interactions with buttons in the Agents window'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The identifier of the button that was clicked'
}
;
?
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The UI surface that triggered the interaction (menu, actionWidget, titleBar or sidebar)'
}
;
}
;
export
function
logSessionsInteraction
(
:
,
:
,
?
:
)
:
void
{
.
publicLog2 < SessionsInteractionEvent, SessionsInteractionClassification>
(
'vscodeAgents.interaction'
,
?
{
,
}
:
{
}
)
;
}
type
SidePanelToggleEvent
=
{
:
boolean
;
}
;
type
SidePanelToggleClassification
=
{
:
'sandy081'
;
:
'Tracks when the user toggles the Agents window side panel (editor area + auxiliary bar) open or closed.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether the side panel is now visible.'
}
;
}
;
export
function
logSidePanelToggle
(
:
,
:
boolean
)
:
void
{
.
publicLog2 < SidePanelToggleEvent, SidePanelToggleClassification>
(
'vscodeAgents.layout/toggleSidePanel'
,
{
}
)
;
}
type
ChangesViewVersionModeChangeEvent
=
{
:
string
;
}
;
type
ChangesViewVersionModeChangeClassification
=
{
:
'osortega'
;
:
'Tracks when the user switches the version mode in the Changes panel (Branch Changes, Session Changes, Last Turn).'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The version mode selected by the user.'
}
;
}
;
export
function
logChangesViewVersionModeChange
(
:
,
:
string
)
:
void
{
.
publicLog2 < ChangesViewVersionModeChangeEvent, ChangesViewVersionModeChangeClassification>
(
'vscodeAgents.changesView/versionModeChange'
,
{
}
)
;
}
type
ChangesViewFileSelectEvent
=
{
:
string
;
}
;
type
ChangesViewFileSelectClassification
=
{
:
'osortega'
;
:
'Tracks when the user selects a changed file in the Changes panel.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The type of change (added, modified, deleted).'
}
;
}
;
export
function
logChangesViewFileSelect
(
:
,
:
string
)
:
void
{
.
publicLog2 < ChangesViewFileSelectEvent, ChangesViewFileSelectClassification>
(
'vscodeAgents.changesView/fileSelect'
,
{
}
)
;
}
type
ChangesViewViewModeChangeEvent
=
{
:
string
;
}
;
type
ChangesViewViewModeChangeClassification
=
{
:
'osortega'
;
:
'Tracks when the user switches between list and tree view modes in the Changes panel.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'The view mode selected by the user (list or tree).'
}
;
}
;
export
function
logChangesViewViewModeChange
(
:
,
:
string
)
:
void
{
.
publicLog2 < ChangesViewViewModeChangeEvent, ChangesViewViewModeChangeClassification>
(
'vscodeAgents.changesView/viewModeChange'
,
{
}
)
;
}
export
interface
ISessionWorkspaceTopology
{
readonly
:
number
;
readonly
:
number
;
readonly
:
number
;
readonly
:
boolean
;
}
export
function
classifySessionWorkspaceTopology
(
:
number
,
:
number
)
:
{
return
{
:
,
,
:
-
,
:
>
1
,
}
;
}
export
type
TunnelDiscoveryTrigger
=
|
'startup'
|
'rediscover'
|
'sessionChange'
;
type
TunnelDiscoveryResultEvent
=
{
:
string
;
:
number
;
:
number
;
:
number
;
:
boolean
;
:
boolean
;
:
boolean
;
}
;
type
TunnelDiscoveryResultClassification
=
{
:
'osortega'
;
:
'Tracks the outcome of agent-host tunnel discovery so we can diagnose stuck-after-discovery scenarios where tunnels are found but no providers ever appear.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'What initiated the discovery (startup, rediscover, sessionChange).'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
true
;
:
'Number of tunnels returned by the embedder after the protocol-version filter.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
true
;
:
'Number of discovered tunnels that have a host process currently connected (hostConnectionCount > 0).'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
true
;
:
'Number of tunnels in the local recent-tunnels cache before this discovery run.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether chat.remoteAgentHostsAutoConnect is enabled.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether chat.remoteAgentHostsEnabled is enabled.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Whether the discovery call itself completed (false when listTunnels threw).'
}
;
}
;
export
function
logTunnelDiscoveryResult
(
:
,
:
{
:
;
:
number
;
:
number
;
:
number
;
:
boolean
;
:
boolean
;
:
boolean
;
}
,
)
:
void
{
.
publicLog2 < TunnelDiscoveryResultEvent, TunnelDiscoveryResultClassification>
(
'vscodeAgents.tunnelDiscovery/result'
,
{
:
.
,
:
.
,
:
.
,
:
.
,
:
.
,
:
.
,
:
.
,
}
)
;
}
export
type
TunnelConnectErrorCategory
=
|
'relayConnectionFailed'
|
'auth'
|
'authExpired'
|
'network'
|
'other'
;
export
type
TunnelConnectFailureReason
=
|
'hostOffline'
|
'maxAttemptsReached'
|
'auth'
|
'authExpired'
;
type
TunnelConnectAttemptEvent
=
{
:
boolean
;
:
number
;
:
number
;
:
boolean
;
:
string
;
}
;
type
TunnelConnectAttemptClassification
=
{
:
'osortega'
;
:
'Tracks individual agent-host tunnel connect attempts for performance and reliability.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether this attempt was part of a reconnect cycle (true) or an initial connect (false).'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Attempt number within the current connect session (1-based).'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Duration of this individual attempt in milliseconds.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Whether this individual attempt succeeded.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Category of error when the attempt failed (relayConnectionFailed, auth, authExpired, network, other); empty on success.'
}
;
}
;
export
function
logTunnelConnectAttempt
(
:
,
:
{
:
boolean
;
:
number
;
:
number
;
:
boolean
;
?
:
}
)
:
void
{
.
publicLog2 < TunnelConnectAttemptEvent, TunnelConnectAttemptClassification>
(
'vscodeAgents.tunnelConnect/attempt'
,
{
:
.
,
:
.
,
:
.
,
:
.
,
:
.
??
''
,
}
)
;
}
type
TunnelConnectResolvedEvent
=
{
:
boolean
;
:
number
;
:
number
;
:
boolean
;
:
string
;
}
;
type
TunnelConnectResolvedClassification
=
{
:
'osortega'
;
:
'Tracks overall agent-host tunnel connect session outcomes for reliability.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether the resolved session was a reconnect cycle (true) or an initial connect (false).'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Total number of attempts made before resolution.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Total elapsed time from session start to resolution in milliseconds.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Whether the connect session ultimately succeeded.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Reason the session terminated without connecting (hostOffline, maxAttemptsReached, auth, authExpired); empty on success.'
}
;
}
;
export
function
logTunnelConnectResolved
(
:
,
:
{
:
boolean
;
:
number
;
:
number
;
:
boolean
;
?
:
}
)
:
void
{
.
publicLog2 < TunnelConnectResolvedEvent, TunnelConnectResolvedClassification>
(
'vscodeAgents.tunnelConnect/resolved'
,
{
:
.
,
:
.
,
:
.
,
:
.
,
:
.
??
''
,
}
)
;
}
export
type
SSHConnectErrorCategory
=
|
'authentication'
|
'cancelled'
|
'hostKeyDenied'
|
'incompatible'
|
'network'
|
'other'
;
export
function
categorizeSSHConnectError
(
:
unknown
)
:
{
if
(
isCancellationError
(
)
)
{
return
'cancelled'
;
}
if
(
isSSHHostKeyDeniedError
(
)
)
{
return
'hostKeyDenied'
;
}
if
(
.
fromConnectError
(
,
[
PROTOCOL_VERSION
]
)
)
{
return
'incompatible'
;
}
const
=
instanceof
Error
?
.
:
String
(
)
;
if
(
/ authenticat| permission denied| no supported authentication methods| all configured authentication methods failed / i
.
test
(
)
)
{
return
'authentication'
;
}
if
(
/ ECONN| ENETUNREACH| EHOSTUNREACH| ENOTFOUND| ETIMEDOUT| network| handshake. * timed out| closed before the handshake completed / i
.
test
(
)
)
{
return
'network'
;
}
return
'other'
;
}
type
SSHConnectAttemptEvent
=
{
:
string
;
:
boolean
;
:
number
;
:
number
;
:
boolean
;
:
boolean
;
:
string
;
}
;
type
SSHConnectAttemptClassification
=
{
:
'roblourens'
;
:
'Tracks SSH agent-host connection attempts so connection and reconnection reliability can be measured.'
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether this was an explicit connection or a reconnect using a stored SSH config host.'
}
;
:
{
:
'SystemMetaData'
;
:
'FeatureInsight'
;
:
'Whether the attempt was initiated by an explicit user action rather than automatic connection or reconnection.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Attempt number within the current connection cycle, starting at one.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Duration of the complete SSH and Agent Host protocol connection attempt in milliseconds.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Whether the connection completed through Agent Host protocol initialization.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Whether another automatic retry was scheduled after this failed attempt.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Bounded failure category (authentication, cancelled, hostKeyDenied, incompatible, network, or other); empty on success.'
}
;
}
;
export
function
logSSHConnectAttempt
(
:
,
:
{
:
'connect'
|
'reconnect'
;
:
boolean
;
:
number
;
:
number
;
:
boolean
;
:
boolean
;
?
:
;
}
)
:
void
{
.
publicLog2 < SSHConnectAttemptEvent, SSHConnectAttemptClassification>
(
'vscodeAgents.sshConnect/attempt'
,
{
...
,
:
.
??
''
,
}
)
;
}
export
type
SocketCloseTrigger
=
|
'server'
|
'sendOnDeadSocket'
|
'visibility'
|
'offline'
|
'malformedFrames'
|
'disposed'
|
'error'
;
type
SocketCloseEvent
=
{
:
number
;
:
boolean
;
:
number
;
:
number
;
:
number
;
:
number
;
:
string
;
}
;
type
SocketCloseClassification
=
{
:
'osortega'
;
:
'Tracks WebSocket close events for agent host connections to measure connection reliability.'
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'WebSocket close code.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Whether the close was clean.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'How long the socket was alive in milliseconds.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Total messages sent.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Total messages received.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Total messages dropped due to non-OPEN socket.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'What triggered the close (server, sendOnDeadSocket, visibility, offline, malformedFrames, disposed, error).'
}
;
}
;
export
function
logSocketClose
(
:
,
:
{
:
number
;
:
boolean
;
:
number
;
:
number
;
:
number
;
:
number
;
:
}
)
:
void
{
.
publicLog2 < SocketCloseEvent, SocketCloseClassification>
(
'vscodeAgents.socket/close'
,
)
;
}
type
SendDroppedEvent
=
{
:
number
;
:
number
;
:
number
;
}
;
type
SendDroppedClassification
=
{
:
'osortega'
;
:
'Tracks when a message is silently dropped due to a non-OPEN WebSocket, indicating a zombie socket.'
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'WebSocket readyState at drop time (0=CONNECTING, 1=OPEN, 2=CLOSING, 3=CLOSED).'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Milliseconds since last received message.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Milliseconds since last sent message.'
}
;
}
;
export
function
logSendDropped
(
:
,
:
{
:
number
;
:
number
;
:
number
}
)
:
void
{
.
publicLog2 < SendDroppedEvent, SendDroppedClassification>
(
'vscodeAgents.socket/sendDropped'
,
)
;
}
type
VisibilityResumedEvent
=
{
:
number
;
:
boolean
;
:
boolean
;
}
;
type
VisibilityResumedClassification
=
{
:
'osortega'
;
:
'Tracks tab visibility resume events to measure zombie socket detection effectiveness.'
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'How long the tab was hidden in milliseconds.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Whether the socket was alive after zombie detection check.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
'Whether the socket was force-closed on resume.'
}
;
}
;
export
function
logVisibilityResumed
(
:
,
:
{
:
number
;
:
boolean
;
:
boolean
}
)
:
void
{
.
publicLog2 < VisibilityResumedEvent, VisibilityResumedClassification>
(
'vscodeAgents.socket/visibilityResumed'
,
)
;
}
type
TerminalRecoveryEvent
=
{
:
number
;
:
number
;
}
;
type
TerminalRecoveryClassification
=
{
:
'osortega'
;
:
'Tracks terminal reconnection outcomes after agent host disconnect.'
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Number of terminals successfully reconnected.'
}
;
:
{
:
'SystemMetaData'
;
:
'PerformanceAndHealth'
;
:
true
;
:
'Total number of active terminals at reconnect time.'
}
;
}
;
export
function
logTerminalRecovery
(
:
,
:
{
:
number
;
:
number
}
)
:
void
{
.
publicLog2 < TerminalRecoveryEvent, TerminalRecoveryClassification>
(
'vscodeAgents.terminal/recovery'
,
)
;
}