Skip to content

test(coderd/x/chatd): cover user invocation of hidden plugin pack skills - #207

Merged
ibetitsmike merged 2 commits into
mainfrom
mike/plugin-packs-7-invoke-hidden
Nov 11, 2026
Merged

ibetitsmike merged 2 commits into
mainfrom
mike/plugin-packs-7-invoke-hidden

Conversation

@ibetitsmike

Copy link
Copy Markdown
Owner

Xum opened this PR on behalf of @ibetitsmike.

Part of #4 (W6, PRD 6.7 acceptance). Adds a chatd test for the slash-command entry point of plugin pack skills. 57 of pstack's 58 skills set disable-model-invocation: true, so in the chat UI a user's /workspace/<name> pick is the only way to run them.

The test pins a hidden architect skill from an installed pstack pack on two chats that share a workspace, then checks three things:

  • the skill is left out of the model's skill index (workspaceSkillsForResolution);
  • a skill-invocation part from the chat that has the pack enabled loads the skill body and directory;
  • the same invocation from the chat without the pack enabled returns SkillInvocationUnavailableError, because filterPackResources drops the pinned row.

This is a test-only change; no production code changed.

Validation: in a container on ef8b3d61d7, go vet ./coderd/x/chatd/ passed, and go test -count=3 -run 'TestInvokeHiddenPackSkill|TestResolveSkillInvocations|TestFilterPackResources' ./coderd/x/chatd/ passed.

@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-11T20:09:28.851756Z ef8b3d6 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

@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. Bravo.

Reviewed commit: ef8b3d61d7

ℹ️ 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 fed0208 into main Nov 11, 2026
9 checks passed
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum merged this PR on behalf of @ibetitsmike.

Merged by the pstack parity lead. CI passed (9/9) on head d7ef036, which only merges main into ef8b3d6, and the file diff is the same. The Codex receipt on ef8b3d6 is clean, and 0 threads are unresolved. This PR only adds a test, so it had no live UAT. Part of #4 / #12.

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