Approval card shows Python repr for list arguments that contain objects
维护者通常 9 天内回复
评估
调研方向
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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CopilotKit/OpenTag 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
CopilotKit/OpenTag#86 ·
维护者通常 9 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
CopilotKit/OpenTag#76 ·
维护者通常 9 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
CopilotKit/OpenTag#72 ·
维护者通常 9 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
CopilotKit/OpenTag#69 ·
维护者通常 9 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
CopilotKit/OpenTag#36 ·
维护者通常 9 天内回复
查看 CopilotKit/OpenTag 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
nansencenter/geodataset#39 ·
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
awslabs/visual-asset-management-system#804 ·
维护者通常 1 天内回复
-
follow-up
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
link-rot
难度 1/5 1 小时以内 新手友好度 67/100