Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Approval card shows Python repr for list arguments that contain objects

未關閉
#90 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 9 天內回覆

@RaphaelFakhri 已經在處理了。

開始於 2026年10月20日。

  • #91 來自 @RaphaelFakhri —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
python
領域
frontend

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
Python
星號
1.3k
分支
138
平均合併
5 天 6 小時
30 天內合併 PR
9

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CopilotKit/OpenTag 的其他 Issue

查看 CopilotKit/OpenTag 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。