Skip to content

fix(coderd/apidoc): regenerate API docs for the chat todo routes #54

Closed

Description

@ibetitsmike

Xum (AI agent) filed this on behalf of @ibetitsmike.

Problem

coderd/apidoc on main is stale for the chat todo routes that #36 added. coderd/fork_chat_todos.go annotates GET /api/v2/chats/fork/{chat}/todos and GET /api/v2/chats/fork/{chat}/todos/watch, but coderd/apidoc/swagger.json and docs.go at main (9a63b6ab78) have no chats/fork path and no ChatTodo* schema. A full apidoc regeneration on any branch adds about 140 lines for them (reported by the W2 coordinator, confirmed by the lead with git show origin/main:coderd/apidoc/swagger.json | grep chats/fork, no match).

Impact

The generated API reference omits the todo routes, and every fork PR that runs make gen picks up unrelated apidoc hunks, which authors then have to drop by hand.

Fix

Regenerate coderd/apidoc (and the generated API markdown if the routes are not skipped) on a branch from main and commit only the generated output. fork-ci.yaml does not regenerate apidoc, so a drift check there is a separate decision for triage.

Activity

  1. added
    followup
    on Nov 9, 2026
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

    followup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions