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 摘要。