Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/provider-copilot/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const runCopilotAgent = async function* (
const messageQueue: AgentMessage[] = [];
let resolveWait: (() => void) | null = null;
let processEnded = false;
let capturedCopilotSessionId: string | undefined;

const enqueueMessage = (message: AgentMessage) => {
messageQueue.push(message);
Expand All @@ -87,9 +88,9 @@ const runCopilotAgent = async function* (
activeProcesses.delete(sessionId);
}

if (sessionId && !childProcess.killed) {
copilotSessionMap.set(sessionId, sessionId);
lastCopilotSessionId = sessionId;
if (sessionId && !childProcess.killed && capturedCopilotSessionId) {
copilotSessionMap.set(sessionId, capturedCopilotSessionId);
lastCopilotSessionId = capturedCopilotSessionId;
}

processEnded = true;
Expand Down
8 changes: 4 additions & 4 deletions packages/react-grab/src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ export const init = (rawOptions?: Options): ReactGrabAPI => {
if (wasDragging) {
document.body.style.userSelect = "";
}
if (keydownSpamTimerId) window.clearTimeout(keydownSpamTimerId);
if (keydownSpamTimerId !== null) window.clearTimeout(keydownSpamTimerId);
autoScroller.stop();
if (
previousFocused instanceof HTMLElement &&
Expand Down Expand Up @@ -3106,9 +3106,9 @@ export const init = (rawOptions?: Options): ReactGrabAPI => {
if (dragPreviewDebounceTimerId !== null) {
window.clearTimeout(dragPreviewDebounceTimerId);
}
if (keydownSpamTimerId) window.clearTimeout(keydownSpamTimerId);
if (toggleFeedbackTimerId) window.clearTimeout(toggleFeedbackTimerId);
if (actionCycleIdleTimeoutId) {
if (keydownSpamTimerId !== null) window.clearTimeout(keydownSpamTimerId);
if (toggleFeedbackTimerId !== null) window.clearTimeout(toggleFeedbackTimerId);
if (actionCycleIdleTimeoutId !== null) {
window.clearTimeout(actionCycleIdleTimeoutId);
}
if (dropdownTrackingFrameId !== null) {
Expand Down
16 changes: 0 additions & 16 deletions packages/react-grab/src/utils/create-text-node-bounds.ts

This file was deleted.

38 changes: 0 additions & 38 deletions packages/react-grab/src/utils/get-text-node-at-position.ts

This file was deleted.

Loading