Skip to content

docs: map the definition isolation default, definition editor, wake-ups pill and cards, and secret wording in the pstack adapter - #166

Merged
ibetitsmike merged 12 commits into
mainfrom
mike/pstack-adapter-batch-isolation-default
Nov 11, 2026
Merged

ibetitsmike merged 12 commits into
mainfrom
mike/pstack-adapter-batch-isolation-default

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Part of #13 and #8.

Updates docs/fork/pstack-adapter.md for #151 (the agent definition isolation default), #162 (the secret question wording), #102 (the agent definition editor), #146 (the wake-ups composer pill), #149 (the wake-up tool cards), #158 (the agent definition query refactor), and #159 (hiding definition actions without access). The page now says what fork main at 73f9bfa12e does.

  • Definition isolation default (feat: let agent definitions set the default subagent isolation #151). Custom agent types says that with fork-subagent-isolation a definition can set isolation to shared, worktree, or workspace, that a spawn without isolation uses it, that an explicit isolation, shared included, wins, that a spawn ignores it without the experiment, and that any other value makes the definition invalid even without the experiment. Worktree isolation now says shared is the default only without such a definition. The repo_path error carries its real create child chat: prefix in both isolation sections, and the Worktree line says a definition with isolation: worktree also allows repo_path and base_branch.
  • Secret question wording (fix(coderd/x/chatd): tell parent agents never to ask for a secret answer in chat #162). The message_agent error and the wait_agent note quote the new text, which names the question panel above the root chat's input and tells the agent never to ask for the value in chat.
  • Definition editor (feat(site): create and edit personal agent definitions #102). The personal definitions page gains New agent definition, the dialog fields, Import file keeping other front matter such as tools and isolation, Edit with a read-only name, the refused save over a change or delete that the page already shows, the missing version check for other changes, and the server errors the dialog shows.
  • Wake-ups pill (feat(site/src): list, pause and cancel chat wake-ups in the composer #146). The Wake-ups section describes the composer pill: its count, the rows with Pause or Resume and Cancel, the reason shown only for automatic pauses, the 30 second refresh, and the warning pill. "No tool or page lists or changes a wake-up" becomes "No tool", and a paused wake-up can be resumed through the API or the pill.
  • Wake-up tool cards (feat(site/src): show the wake-up tools as chat tool cards #149). The Wake-ups section describes the schedule_wakeup, wait_for_events, and notify_user cards: their titles, what each lists, the notify_user title only when the call sets one, the failed titles, and the generic card for a result a card can't read.
  • Evidence and citations. New entries cite fork_isolation.go, fork_agent_definitions.go, the editor dialog and hook, ForkChatWakeupsPill.tsx, forkChatWakeups.ts, forkToolRenderers.tsx, and the three card files. refactor(site/src): scope agent definition queries to a user or organization tier #158 and feat(site/src/pages/AgentsPage/AgentSettingsPage/ForkAgentDefinitionsPage): hide agent definition actions the user cannot take #159 change nothing on the personal page, which keeps full access, but they moved the editor hook, page, and table code, so those ranges are re-pinned, and so are the other ranges that moved on main, such as those in fork_subagents.go, ForkSearchChatsTool.tsx, and forkToolRenderers.tsx. The header names 73f9bfa12e.

Validation

  • The per-line citation audit reports no moved or changed range on the committed page.
  • markdownlint-cli2 0.16.0 and markdown-table-formatter 1.6.1 on the page: 0 errors, no changes. The added lines have no em dashes, en dashes, spaced double hyphens, or semicolons outside   and quoted error text.
  • UAT on the isolated 3100 server, v2.39.1-devel+383933339b with fork-agent-definitions, fork-subagent-isolation, fork-nested-subagents, and fork-chat-wakeups: pass for the isolation default, the shared override, the repo_path error text, the 400 for an invalid isolation, the editor import, duplicate, and edit, the pill pause, resume, and cancel, and the worktree removal at archive (gate comment). feat(site/src): show the wake-up tools as chat tool cards #149 merged after that server build, so its cards are checked against the code and feat(site/src): show the wake-up tools as chat tool cards #149's own UAT.

Xum opened this PR on behalf of @ibetitsmike.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 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-11T02:02:26.021650Z 4057120 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.

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for Mike on this comment.

3100 gate for #166: PASS

Server v2.39.1-devel+383933339b, experiments chat-virtual-desktop, mcp-server-http, fork-chat-todos, fork-nested-subagents, fork-agent-definitions, plugins, fork-subagent-isolation, and fork-chat-wakeups, read from /api/v2/experiments at 01:41 UTC. Member account, workspace uat3100-smoke, one root chat with two children, in an ops window from 01:41 to 01:46 UTC.

Definition isolation default (#151).

Step Result
Create a personal definition with isolation: bogus 400 Invalid agent definition content., detail front-matter field "isolation" must be one of shared, worktree, workspace, got "bogus"
Create w7wt with isolation: worktree 201
spawn_agent type w7wt with repo_path, no isolation isolation worktree, branch agent/w7-g151-def-8a1373ee, a worktree under ~/.coder/worktrees/w7-g151-repo/
spawn_agent type w7wt with isolation: "shared" no isolation, branch, or worktree in the result
spawn_agent type general with repo_path, no isolation create child chat: repo_path and base_branch need isolation worktree
wait_agent on the worktree child report ok, isolation worktree, an empty diff_summary
git worktree list before and 30 s after archiving the root the child's worktree and branch, then only main

Definition editor (#102). In a browser, New agent definition opened Create agent definition with Name, Description, Model, and Body. Import file with a file that set tools: [ read_file, execute ] and isolation: worktree sent both keys in the create request (201), and the stored content kept them. A second create with the same name returned 409, and the dialog stayed open with An agent definition with this name already exists. Edit on w7wt opened Edit agent definition with a read-only Name, and the save (200) kept isolation: worktree.

Wake-ups pill (#146). After schedule_wakeup (delay 3600 s, max_runs 1, prompt "w7 pill"), the composer showed a pill labeled "Wake-ups, 1 open". Its popover listed Once, the prompt, "Next run in an hour, 0 runs of 1", and Pause and Cancel. Pause sent PATCH ... {"status":"paused"} (200) and showed "Paused, 0 runs of 1" with Resume. Resume sent active (200), and Cancel sent canceled (200), after which the popover said "No open wake-ups." and the pill went away. The API then reported canceled with canceled_by_user.

Not gated. #162's wording needs a secret question in a child, which the ops window didn't cover, so it is checked against the code. #149's cards merged after this server build, so they are checked against the code and #149's own UAT. #158 changes no behavior.

The chats were archived, the wake-up ended canceled, w7wt and the imported definition were deleted, and uat3100-smoke was stopped.

@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: 5cb0eaf8f5

ℹ️ 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
Comment thread docs/fork/pstack-adapter.md Resolved
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. Nice work!

Reviewed commit: 405712085e

ℹ️ 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 ce90b5b into main Nov 11, 2026
9 checks passed
@ibetitsmike
ibetitsmike deleted the mike/pstack-adapter-batch-isolation-default branch November 11, 2026 02:16
@ibetitsmike

Copy link
Copy Markdown
Owner Author

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

Merge evidence for head 405712085ef5a96e753c3b3d14a83d0d0c619a74, docs only (docs/fork/pstack-adapter.md):

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