Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

CodeGate chat commands don't work with file in context, or clients that prefix messages #1149

@danbarr

Description

@danbarr

Describe the issue

Copilot automatically includes the file that's active in the VS Code editor as context. When this happens, codegate version commands are not correctly handled.

Possibly related to issues I used to see with the task-oriented tools like Cline/Kodu, codegate commands where they only worked if they are the first prompt in the task? This seems to have been fixed at least for Cline.

Also maybe related to the avante.nvim issue stacklok/codegate-ui#346

Steps to Reproduce

Open a file in VS Code. In the Copilot chat, see that it's currently included in the current file context. Enter codegate version into the chat and observe the results.

Image

Operating System

MacOS (Arm)

IDE and Version

VS Code 1.97.2

Extension and Version

Copilot 1.272.0

Provider

GitHub Copilot

Model

Claude 3.5 Sonnet

Codegate version

v0.1.24

Logs

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions