Skip to content

feat(site): turn off a project's plugin pack for one chat - #243

Merged
ibetitsmike merged 13 commits into
mainfrom
mike/chat-plugin-pack-disable-ui
Nov 12, 2026
Merged

ibetitsmike merged 13 commits into
mainfrom
mike/chat-plugin-pack-disable-ui

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Xum opened this PR on behalf of Mike.

This adds the composer UI for the chat plugin pack exclusions from #241. In a chat's plugin pack popover, a pack that the chat's project enables now shows a "Project" label and a switch that is on. Turning the switch off turns the pack off for that chat and its subagents only. Turning it back on removes the exclusion.

  • api/forkPluginPackEnablement.ts: getExcludedPluginPacks and setPluginPackExcluded for the new excluded-plugin-packs routes. They share a putOrDelete helper with the existing enable call.
  • api/queries/forkPluginPackEnablement.ts: projectPluginPacks and excludedPluginPacks queries (each uses skipToken when it has no ID). pluginPackToggle turns a pack's current state into the right write. Turning off a pack the project enables adds an exclusion. Turning off a pack only the chat enables deletes that enablement. Turning a pack on removes any exclusion, and adds a chat enablement only when neither the chat nor the project already enables it.
  • ForkPluginPackToggles.tsx: a switch is on when the pack is enabled directly or by the project and is not excluded. The "Project" label is linked to the switch with aria-describedby.
  • ForkPluginPacksPill.tsx passes the chat's project ID, and the help text says what turning off a project pack does. The project dialog says a chat can turn a project pack off for itself.
  • ForkComposerSlot.test.tsx mocks the new exclusions request.

Known gaps: in a subagent chat, the switches do not account for packs that an ancestor chat enables or turns off. The server still applies them, and the help text says so. When a chat and its project both enable a pack and the chat turns it off, the pill count still includes the chat's own row.

Validation on feb7fd2 (the same site diff before the main merge), in a node container: pnpm install, biome check, tsc, vitest (9/9), oxlint and lint:compiler all pass. Two negative controls each fail "turns a project pack off for a chat and back on": writing direct: false instead of an exclusion, and switches that ignore exclusions.

@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-12T13:42:07.130217Z 6b3e8fc 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: 1f67970d35

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

Copy link
Copy Markdown
Owner Author

@codex review

Xum requested this review on behalf of @ibetitsmike.

@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: bf533dde2f

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

Copy link
Copy Markdown
Owner Author

@codex review

Xum requested this review on behalf of @ibetitsmike.

@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: 0dd6334ed0

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

Copy link
Copy Markdown
Owner Author

@codex review

Xum requested this review on behalf of @ibetitsmike.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 6b3e8fc534

ℹ️ 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 048baf5 into main Nov 12, 2026
9 checks passed
@ibetitsmike
ibetitsmike deleted the mike/chat-plugin-pack-disable-ui branch November 12, 2026 14:08
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum merged this PR on behalf of @ibetitsmike.

Merge gates verified on head 6b3e8fc: all check runs green (fork-ci 43229353490), Codex review completed on this head with no unresolved findings, 0 unresolved threads, 0 commits behind main. UAT-243 passed 5/5 on :3100: turning a pack off removes its skills and agents from the next turn, turning it back on restores them, and the state survives a reload.

Follow-ups: subagent chats show the root's project packs as off (they need root_chat_id resolution), and the pill count ignores exclusions.

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