Remove temporary terminal debug instrumentation
This commit is contained in:
@@ -494,14 +494,6 @@ export function TerminalPane({ serverId, cwd }: TerminalPaneProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const pending = queue.splice(0, queue.length);
|
const pending = queue.splice(0, queue.length);
|
||||||
terminalDebugLog({
|
|
||||||
scope: "terminal-pane",
|
|
||||||
event: "input:queue:flush",
|
|
||||||
details: {
|
|
||||||
activeStreamId: currentStreamId,
|
|
||||||
count: pending.length,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
for (const entry of pending) {
|
for (const entry of pending) {
|
||||||
if (entry.type === "data") {
|
if (entry.type === "data") {
|
||||||
@@ -549,17 +541,6 @@ export function TerminalPane({ serverId, cwd }: TerminalPaneProps) {
|
|||||||
): boolean => {
|
): boolean => {
|
||||||
const currentStreamId = getCurrentActiveStreamId();
|
const currentStreamId = getCurrentActiveStreamId();
|
||||||
if (!client || currentStreamId === null) {
|
if (!client || currentStreamId === null) {
|
||||||
terminalDebugLog({
|
|
||||||
scope: "terminal-pane",
|
|
||||||
event: "input:key:queue-no-stream",
|
|
||||||
details: {
|
|
||||||
key: input.key,
|
|
||||||
ctrl: input.ctrl,
|
|
||||||
shift: input.shift,
|
|
||||||
alt: input.alt,
|
|
||||||
activeStreamId: currentStreamId,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
enqueuePendingTerminalInput({
|
enqueuePendingTerminalInput({
|
||||||
type: "key",
|
type: "key",
|
||||||
input: {
|
input: {
|
||||||
@@ -639,14 +620,6 @@ export function TerminalPane({ serverId, cwd }: TerminalPaneProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!client || currentStreamId === null) {
|
if (!client || currentStreamId === null) {
|
||||||
terminalDebugLog({
|
|
||||||
scope: "terminal-pane",
|
|
||||||
event: "input:data:queue-no-stream",
|
|
||||||
details: {
|
|
||||||
length: data.length,
|
|
||||||
preview: summarizeTerminalText({ text: data, maxChars: 80 }),
|
|
||||||
},
|
|
||||||
});
|
|
||||||
enqueuePendingTerminalInput({
|
enqueuePendingTerminalInput({
|
||||||
type: "data",
|
type: "data",
|
||||||
data,
|
data,
|
||||||
|
|||||||
@@ -458,14 +458,6 @@ export class TerminalEmulatorRuntime {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
this.inFlightOutputOperationTimeout = setTimeout(() => {
|
this.inFlightOutputOperationTimeout = setTimeout(() => {
|
||||||
terminalDebugLog({
|
|
||||||
scope: "emulator-runtime",
|
|
||||||
event: "output:flush-timeout",
|
|
||||||
details: {
|
|
||||||
length: text.length,
|
|
||||||
preview: summarizeTerminalText({ text, maxChars: 96 }),
|
|
||||||
},
|
|
||||||
});
|
|
||||||
finalizeOperation(operation);
|
finalizeOperation(operation);
|
||||||
}, OUTPUT_OPERATION_TIMEOUT_MS);
|
}, OUTPUT_OPERATION_TIMEOUT_MS);
|
||||||
|
|
||||||
|
|||||||
@@ -451,18 +451,6 @@ export class TerminalStreamController {
|
|||||||
chunkOffset <= catchUpEndOffset;
|
chunkOffset <= catchUpEndOffset;
|
||||||
|
|
||||||
if (canSkipReplayGap) {
|
if (canSkipReplayGap) {
|
||||||
terminalDebugLog({
|
|
||||||
scope: "stream-controller",
|
|
||||||
event: "stream:replay-gap-skip",
|
|
||||||
details: {
|
|
||||||
terminalId: input.terminalId,
|
|
||||||
streamId: input.streamId,
|
|
||||||
expectedOffset,
|
|
||||||
observedOffset: chunkOffset,
|
|
||||||
catchUpEndOffset,
|
|
||||||
replay: Boolean(input.chunk.replay),
|
|
||||||
},
|
|
||||||
});
|
|
||||||
activeStream.nextExpectedOffset = chunkOffset;
|
activeStream.nextExpectedOffset = chunkOffset;
|
||||||
} else {
|
} else {
|
||||||
this.recoverFromStreamGap({
|
this.recoverFromStreamGap({
|
||||||
@@ -532,17 +520,6 @@ export class TerminalStreamController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
terminalDebugLog({
|
|
||||||
scope: "stream-controller",
|
|
||||||
event: "stream:gap-reconnect",
|
|
||||||
details: {
|
|
||||||
terminalId: input.terminalId,
|
|
||||||
streamId: input.streamId,
|
|
||||||
expectedOffset: input.expectedOffset,
|
|
||||||
observedOffset: input.observedOffset,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
updateTerminalResumeOffset({
|
updateTerminalResumeOffset({
|
||||||
terminalId: input.terminalId,
|
terminalId: input.terminalId,
|
||||||
offset: input.expectedOffset,
|
offset: input.expectedOffset,
|
||||||
|
|||||||
Reference in New Issue
Block a user