Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(composer): show project skills in menus #7909

Closedt3-code-bot[bot](GitHub profile, opens in a new tab)wants to merge 23 commits intomain fromfix/project-skills-menusopened View on GitHub

Showing 32 changed files with 22 additions and 5 deletions (loading 29).

x
0 of 32 viewed, 32 left
5 additions and 0 deletions.macroscope/check-run-agents/effect-service-conventions.mdModified
View file
@@ -81,6 +81,11 @@
​
## Change discipline
​
+- Keep provider capability discovery provider-owned. Project/worktree catalogs must be cached by provider instance plus cwd, preserve the machine snapshot as the pre-session fallback, and never overwrite one project's menus with another cwd's snapshot. Flag generic filesystem reimplementations of provider discovery when the driver can probe from the active session cwd.
+- Keep cwd catalog refreshes narrow: query only skills and slash commands needed by the menu. Do not reuse full provider health/model inventory probes for a post-session catalog refresh, because unrelated model/auth commands can block the catalog indefinitely.
+- Apply the same bounded-output policy to every CLI path that reads a catalog. A narrow cwd probe must not bypass the output cap used by the machine inventory probe.
+- Treat provider-instance rebuilds as cache-generation changes: clear and publish volatile cwd catalogs, reject results from stale instance objects, and attach scoped data to the current machine snapshot inside one atomic `Ref.modify` so concurrent status refreshes cannot be rolled back.
+- Admit cwd catalogs only after both the registry machine snapshot and the scoped probe's base snapshot are authoritative, and single-flight probes by provider-instance generation plus cwd. A pending snapshot from either source must remain a fallback, and overlapping turns must not spawn duplicate provider processes.
- Preserve useful comments, invariants, and specification documentation while moving code.
- Do not add large tests solely to prove a mechanical refactor. Update existing tests and imports as needed.
- If backend behavior changes, require focused tests. Use test implementations/layers for external services only; do not mock out core business logic.
1 addition and 0 deletions.macroscope/check-run-agents/ui-consistency.mdModified
View file
@@ -79,6 +79,7 @@
​
## Change discipline
​
+- When a provider skill catalog becomes workspace-scoped, trace every renderer that resolves `$skill` tokens, including existing-thread composers, new-task drafts, and sent-message timelines on web and mobile. Drafts must use the cwd where their selected mode will actually execute: an explicit worktree path only for local/current-checkout mode, otherwise the project root until a new worktree exists. The same token must not render as a chip on one surface and raw text on another.
- Review the pull request's changed scope and directly affected consumers. Do not turn a focused PR into a demand for unrelated legacy cleanup.
- Prefer the smallest durable contract over a component-specific workaround or a broad abstraction with one consumer.
- Preserve intentional exceptions and comments that explain browser, virtualizer, theme, or Electron constraints.
16 additions and 5 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -64,6 +64,10 @@
normalizeSearchQuery,