Skip to content

docs: map nested subagent trees and descendant questions in the pstack adapter - #117

Merged
ibetitsmike merged 3 commits into
mainfrom
mike/pstack-adapter-batch-nested-tree
Nov 10, 2026
Merged

ibetitsmike merged 3 commits into
mainfrom
mike/pstack-adapter-batch-nested-tree

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Part of #13, #8, and #73.

Updates docs/fork/pstack-adapter.md for #104 and #99, which show every nested subagent in the Agents sidebar, and for #86, which gives descendant chats a blocking ask_user_question, all behind fork-nested-subagents. The page now says what fork main at 5decda1a92 does.

  • Nested subagents. With the experiment, the chat list and a root chat's GET include every descendant in the root's children list, with parent_chat_id naming each one's parent. The Agents sidebar shows each worker under its coordinator, and each descendant opens its own /agents/:id page.
  • Questions. A child that isn't an explore child has ask_user_question outside plan mode. The call ends its turn, and the answer is its next user message. wait_agent returns needs_input: true with the questions, and if the question is unanswered when it is called, it waits for the answer first. The root chat doesn't show the question yet, so the parent shows the user the questions, ends its turn, and passes on the answer with message_agent. The user can also answer in the child's chat, which resumes only the child, so the parent continues at the user's next message. The AskQuestion row now names children.
  • Evidence. New entries cite the descendant embedding, the sidebar tree, and the descendant question tool, its stop-after hook, its pending query, and the wait_agent wrapper. feat(coderd): let descendant chats ask the user blocking questions behind fork-nested-subagents #86 moved the fork_tools.go lines that four entries cite, and an earlier change moved the coderd/exp_chats.go context-resources cite, so those entries now cite the new lines. The header names 5decda1a92.

Validation

Xum opened this PR on behalf of @ibetitsmike.

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for Mike on this comment.

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 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-10T07:02:51.494819Z 9181440 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: bfde8a7984

ℹ️ 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 docs/fork/pstack-adapter.md Resolved
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for Mike on this comment.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: fd99f51165

ℹ️ 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".

…atch-nested-tree

# Conflicts:
#	docs/fork/pstack-adapter.md
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for Mike on this comment.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 91814403d1

ℹ️ 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 175f2a7 into main Nov 10, 2026
10 checks passed
@ibetitsmike
ibetitsmike deleted the mike/pstack-adapter-batch-nested-tree branch November 10, 2026 07:18
@ibetitsmike

Copy link
Copy Markdown
Owner Author

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

Merge evidence for head 91814403d1de62b48221cca9b870852f1a1bf50b:

  • fork-ci pull_request run 42772204949 passed on this head, which merged main 5decda1a92. Docs only (docs/fork/pstack-adapter.md).
  • Codex on this exact head: no major issues (comment 6761234806). 0 unresolved review threads; the one Codex P2 on bfde8a7984 (relay vs child-chat answer) was fixed in fd99f51165 and resolved.
  • Gate on 3100 for the nested subagent tree at 26c1e0271e: root, coordinator and worker each nest one level and each opens /agents/:id; the root GET and the chat list embed the worker with the coordinator as parent, and the coordinator GET embeds none.
  • Gate on 3100 for descendant questions at 6ae89b1c7f: wait_agent returned needs_input: true with the questions; the root page shows no question card; a form answer on the child page resumed the child and the root's next wait_agent returned the answer; a message_agent answer worked too; and a wait_agent started while the question was open returned 39 s after the UI answer.
  • The page pins its line citations to 5decda1a92, range-checked from 6ae89b1c7f. feat(coderd): list a chat family's pending descendant questions #114 (ee693ddf2a) merged after the CI run; git merge-tree of this head with current main is clean, and feat(coderd): list a chat family's pending descendant questions #114 only appends after the cited chat_descendant_questions.sql:10-23.
  • Gate on 3100 at 5decda1a92 for feat: show a child chat's agent type behind fork-agent-definitions #112's agent type row: a member root spawned an explore and a general child; the root GET and the chat list report explore and general on the children and none on the root; the sidebar shows an explore badge on the explore row and none on the general row, and the explore child's top bar shows the badge.

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.

1 participant