Skip to content

docs(codersdk): match ForkChatFamilyCapacity.LiveSubagents comment to the query - #429

Merged
ibetitsmike merged 2 commits into
mainfrom
mike/issue-424-livesubagents-doc
Nov 23, 2026
Merged

ibetitsmike merged 2 commits into
mainfrom
mike/issue-424-livesubagents-doc

Conversation

@ibetitsmike

Copy link
Copy Markdown
Owner

Coder Agents opened this PR on behalf of @ibetitsmike.

Closes #424

What changed and why

Since #380, CountLiveSubagentsInFamily exempts workflow step children whose step is reported, unless a user message arrives after the report. The doc comment of codersdk.ForkChatFamilyCapacity.LiveSubagents still described only the status filter. This PR rewrites the comment to state exactly what the query counts, including the reported workflow step exemption and the user message that makes the child count again. No behavior change.

Generated outputs

The comment flows through generation, so this PR also carries the regenerated copies:

  • coderd/apidoc/docs.go and coderd/apidoc/swagger.json (Swagger description)
  • site/src/api/typesGenerated.ts (TypeScript doc comment)
  • docs/reference/api/schemas.md (API schema table)

git diff --stat after make gen showed only these five files, no unrelated drift.

How it was tested

  • make gen: ran clean, and its only output is the comment change above.
  • go build ./codersdk/... ./coderd/apidoc/...: passed.
  • make lint: findings exist, but all are pre-existing on main in files this PR does not touch. No finding points at a changed file.

Not exercised

No runtime or UI behavior changed, so no tests were added or run beyond the build, lint and generation checks above.

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Coder Agents acted on behalf of @ibetitsmike.

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T04:52:17.466607Z 537c6ea Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 954688bf8f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codersdk/fork_chat_todos.go Resolved
…eSubagents comment

The previous commit carried pre-modified copies of seven fork files
(canceled spelling swaps, errors.New to xerrors.New) that make gen did
not produce and that desynced the generated ChatTodoStatus expectation
from the committed coderd/apidoc. Restore them to origin/main and keep
only the doc comment change and its generated outputs.
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Coder Agents acted on behalf of @ibetitsmike.

@codex review

New head 537c6ea. The first commit carried unintended pre-modified fork files that made the generated API docs drift. This commit restores them to main and keeps only the LiveSubagents comment change and its generated outputs.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 537c6ea499

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike
ibetitsmike merged commit 3e7b522 into main Nov 23, 2026
9 checks passed
@ibetitsmike
ibetitsmike deleted the mike/issue-424-livesubagents-doc branch November 23, 2026 05:25
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Coder Agents acted on behalf of @ibetitsmike.

Merged at head 537c6ea499c8de61409f77b23dca80b75b93fc0e as 3e7b522, on main ebfcb410ec35679682d07d1ea5a5f93ed7bdd53e, with the server running that main.

Gates on this exact head:

  1. The head matched the SHA I verified (--match-head-commit).
  2. Every check run passed. fork-ci run 45114187525 passed on this head, including "Check API docs for drift".
  3. Codex receipt for this head: docs(codersdk): match ForkChatFamilyCapacity.LiveSubagents comment to the query #429 (comment) ("Didn't find any major issues", Reviewed commit 537c6ea499).
  4. No unresolved review thread. Two P1 threads were about a cancelled to canceled rename in an earlier head; the final diff does not touch those files, and I resolved them with a reply each.
  5. 0 commits behind main.
  6. No runtime behavior changes: the PR changes a doc comment and its generated outputs (apidoc, schemas.md, typesGenerated.ts). I checked the new comment against CountLiveSubagentsInFamily in coderd/database/forkdb/queries/chat_capacity.sql; it matches.

Closes #424.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codersdk: LiveSubagents doc comment is stale after #380

1 participant