open_canvas: Invalid input error when 'scope' field is missing from editor canvas
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 2.1k
- Fork
- 153
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Short summary
`open_canvas` for the `editor` canvas type returns an invalid input error when the `scope` field is not provided, even though it is not documented as required.
### Affected version or release
1.0.64-0
### Installation context
GitHub Copilot CLI chat session (general chat, not tied to a project session)
### What happened?
When calling `open_canvas` with `canvasId: "editor"` and a valid `path` in the input, the tool returned:
```
dDe: Invalid input for canvas "editor" open input: (root): "scope" is a required property. Inspect the canvas declaration for the expected input schema.
```
The canvas did not open. No `scope` field is listed or described in the canvas documentation or tool description.
### Steps to reproduce
1. From a general chat session (not a project session), call `open_canvas` with:
```json
{
"canvasId": "editor",
"instanceId": "my-canvas-instance",
"input": {
"path": "C:\\Users\\\\.copilot\\session-state\\\\files\\example.md"
}
}
```
2. Observe the error response.
### Expected behavior
The editor canvas should open with the specified file, or the error message should clearly indicate that `scope` is a required field and document valid values (e.g., `user`, `project`, `session`).
### Additional context
- The `list_canvas_capabilities` tool would reveal the schema, but the error message itself gives no hint.
- The `open_canvas` tool description does not mention a required `scope` field for the `editor` canvas.
- Surfacing required fields in the error message or tool description would prevent this confusion.
Hướng dẫn đóng góp
Hướng nghiên cứu
Tái hiện vấn đề trong một cuộc trò chuyện GitHub Copilot CLI thông thường bằng cách sử dụng open_canvas với canvasId "editor" và một đường dẫn hợp lệ, nhưng không có scope. Kiểm tra list_canvas_capabilities và mô tả công cụ open_canvas để so sánh schema được khai báo với các đầu vào được ghi trong tài liệu. Được xem là hoàn tất nếu editor mở mà không cần scope hoặc nếu trường bắt buộc và các giá trị hợp lệ được hiển thị rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- github
- Lĩnh vực
- cli, tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100