fix(composer): show project skills in menus #7909
Closed
t3-code-bot[bot](GitHub profile, opens in a new tab)wants to merge 23 commits into
main fromfix/project-skills-menus·opened View on GitHubShowing 32 changed files with 22 additions and 5 deletions (loading 29).
x
5 additions and 0 deletions+5-0.macroscope/check-run-agents/effect-service-conventions.mdModifiedView file
@@ -81,6 +81,11 @@
+- 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.
@@ -79,6 +79,7 @@
+- 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.
16 additions and 5 deletions+16-5apps/mobile/src/features/threads/ThreadComposer.tsxModifiedView file
@@ -64,6 +64,10 @@