Repository navigation
feat(site): turn off a project's plugin pack for one chat - #243
Conversation
|
@codex review
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
|
@codex review
|
There was a problem hiding this comment.
💡 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".
|
@codex review
|
There was a problem hiding this comment.
💡 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".
|
@codex review
|
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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. |
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:getExcludedPluginPacksandsetPluginPackExcludedfor the newexcluded-plugin-packsroutes. They share aputOrDeletehelper with the existing enable call.api/queries/forkPluginPackEnablement.ts:projectPluginPacksandexcludedPluginPacksqueries (each usesskipTokenwhen it has no ID).pluginPackToggleturns 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 witharia-describedby.ForkPluginPacksPill.tsxpasses 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.tsxmocks 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),oxlintandlint:compilerall pass. Two negative controls each fail "turns a project pack off for a chat and back on": writingdirect: falseinstead of an exclusion, and switches that ignore exclusions.