Skip to content

Remove the copied code comments from the app and listeners across subprojects #346

Backlog

Description

@zimeg

Each subproject's AGENTS.md says "No code comments. Make the code explain itself with clear names, tests, or types." The app and listener files in claude-agent-sdk/, openai-agents-sdk/, pydantic-ai/ and vercel-ai-sdk/ still carry comments that were copied between them, and the files are kept in lockstep, so they should change together:

  • The comments in app.py (and app_vercel.py), such as the note on ignoring_self_events_enabled=False.
  • The step comments inside the listeners, such as those in listeners/events/message.py and listeners/events/app_mentioned.py.
  • The TODO(agent-dm-messages-tab): handle app_context_changed once Bolt supports it in listeners/events/app_home_opened.py. Move it to its own issue and drop the comment.
  • The _only_error docstring in vercel-ai-sdk/agent/casey.py. A name like _unwrap_single_exception_groups can carry its meaning instead. bolt-python-starter-agent has the same helper in vercel-ai-sdk/agent/agent.py, so rename both together.

Where a comment explains behavior that isn't obvious, like bot-posted issue submissions reaching the message handler, a test that an issue submission reaches handle_message can say it instead.

Raised in review of #343.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions