Skip to content

This fix correctly filters out non-user-invocable agents during cached mode deserialization, matching the behavior in refreshCustomPromptModes (lines 161-163). However, there's no test coverage for this scenario. Consider adding a test in chatModeService.test.ts that verifies custom agents with userInvocable: false are not loaded from cache. #123

@dkingfarhan88

Description

@dkingfarhan88

This fix correctly filters out non-user-invocable agents during cached mode deserialization, matching the behavior in refreshCustomPromptModes (lines 161-163). However, there's no test coverage for this scenario. Consider adding a test in chatModeService.test.ts that verifies custom agents with userInvocable: false are not loaded from cache.

Originally posted by @Copilot in microsoft/vscode#296127 (comment)

def advanced_preprocess(image_path):
img = cv2.imread(image_path)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
blur = cv2.GaussianBlur(gray, (5,5), 0)
thresh = cv2.adaptiveThreshold(
blur, 255,
cv2.ADAPTIVE_THRESH_GAUSSIAN_C,
cv2.THRESH_BINARY,
11, 2
)

text = pytesseract.image_to_string(thresh)
return {"clean_text": text}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions