Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Approval card shows Python repr for list arguments that contain objects

Đang mở
#90 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 9 ngày

@RaphaelFakhri đang làm issue này rồi.

Từ ngày 20/10/2026.

  • #91 của @RaphaelFakhri — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
frontend

Hướng nghiên cứu

Start with agent/write_confirmation.py and the summarize_args function, then run the provided summarize_args reproduction with list arguments containing objects and booleans. Update the list-item formatting so object items use compact JSON and boolean items use Yes/No, matching the expected card output. The issue already has an open linked pull request, so a newcomer should confirm the current implementation and avoid duplicating work already underway.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The confirm_write approval card renders each tool argument through summarize_args in agent/write_confirmation.py. A top-level object becomes compact JSON and a top-level boolean becomes Yes or No, but items inside a list go through str(). A list of objects therefore shows Python's repr on the card.

Steps to reproduce

from write_confirmation import summarize_args

summarize_args({"pages": [{"title": "Q3 plan"}], "flags": [True, False]})

Expected result

[{'label': 'Pages', 'value': '{"title": "Q3 plan"}'}, {'label': 'Flags', 'value': 'Yes, No'}]

Actual result

[{'label': 'Pages', 'value': "{'title': 'Q3 plan'}"}, {'label': 'Flags', 'value': 'True, False'}]

This affects any write whose arguments include a list of objects, for example the pages argument when creating Notion pages or the links of a Linear issue. The approver sees Python syntax where the rest of the card uses JSON and Yes/No.

Ngôn ngữ chính
Python
Star
1.3k
Fork
138
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CopilotKit/OpenTag

Tất cả issue của CopilotKit/OpenTag

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.