Remove temporary terminal debug instrumentation

This commit is contained in:
Mohamed Boudra
2026-02-15 19:10:40 +07:00
parent 0103b4da96
commit b980abb7af
3 changed files with 0 additions and 58 deletions
@@ -494,14 +494,6 @@ export function TerminalPane({ serverId, cwd }: TerminalPaneProps) {
}
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) {
if (entry.type === "data") {
@@ -549,17 +541,6 @@ export function TerminalPane({ serverId, cwd }: TerminalPaneProps) {
): boolean => {
const currentStreamId = getCurrentActiveStreamId();
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({
type: "key",
input: {
@@ -639,14 +620,6 @@ export function TerminalPane({ serverId, cwd }: TerminalPaneProps) {
}
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({
type: "data",
data,
@@ -458,14 +458,6 @@ export class TerminalEmulatorRuntime {
},
});
this.inFlightOutputOperationTimeout = setTimeout(() => {
terminalDebugLog({
scope: "emulator-runtime",
event: "output:flush-timeout",
details: {
length: text.length,
preview: summarizeTerminalText({ text, maxChars: 96 }),
},
});
finalizeOperation(operation);
}, OUTPUT_OPERATION_TIMEOUT_MS);
@@ -451,18 +451,6 @@ export class TerminalStreamController {
chunkOffset <= catchUpEndOffset;
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;
} else {
this.recoverFromStreamGap({
@@ -532,17 +520,6 @@ export class TerminalStreamController {
return;
}
terminalDebugLog({
scope: "stream-controller",
event: "stream:gap-reconnect",
details: {
terminalId: input.terminalId,
streamId: input.streamId,
expectedOffset: input.expectedOffset,
observedOffset: input.observedOffset,
},
});
updateTerminalResumeOffset({
terminalId: input.terminalId,
offset: input.expectedOffset,