Skip to content

fix(site): show a subagent the root chat's project plugin packs - #245

Merged
ibetitsmike merged 3 commits into
mainfrom
mike/plugin-pack-subagent-root-project
Nov 12, 2026
Merged

ibetitsmike merged 3 commits into
mainfrom
mike/plugin-pack-subagent-root-project

Conversation

@ibetitsmike

Copy link
Copy Markdown
Owner

Xum opened this PR on behalf of Mike.

A subagent chat has no project_id of its own, so its plugin packs pill showed no project packs and could not turn off the root chat's project pack. The pill now loads the root chat (through root_chat_id) when the chat has no project and is not its own root. It waits for the root chat and then passes the root chat's project_id to the pack toggles.

Follow-up to #243 (Codex P1 on subagent root project).

Validation (container, pnpm on Linux):

  • tsc, oxlint --deny-warnings, lint:compiler: pass
  • vitest ForkComposerSlot.test.tsx: 19/19 pass, including the new test "turns off the root chat's project pack for a subagent"
  • Negative control: without ?? rootChatQuery.data?.project_id, only the new test fails
  • biome check printed one formatting change (one JSX prop collapsed to a single line). I applied that exact change by hand in the last commit, and the fork-ci site job runs Biome again.

@ibetitsmike

Copy link
Copy Markdown
Owner Author

@codex review

Xum requested this review on behalf of @ibetitsmike.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 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-12T14:52:21.643978Z a416af4 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: a416af48bc

ℹ️ 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 fcbfd67 into main Nov 12, 2026
10 checks passed
@ibetitsmike
ibetitsmike deleted the mike/plugin-pack-subagent-root-project branch November 12, 2026 15:00
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum merged this PR on behalf of @ibetitsmike.

I checked these on head a416af4: all check runs passed (fork-ci 43240615698, including the site job), the branch is 0 commits behind main, and 0 review threads are unresolved. Codex review 5876520415 raised 3 P2 findings, all declined (only normal-path P1s are fixed). The ops validation passed tsc, oxlint, lint:compiler and vitest (19/19). Biome failed on one formatter line, which a416af4 fixed. The negative control turned red as intended: removing the root project fallback fails only the new subagent test.

No live UAT. This is a 3-file site fix to the toggle that #243's UAT covered (5/5), and the new unit test exercises the subagent path.

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