GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||
GeezerVison is showing github.com — Fix/project scoped provider skills by GenKerensky · Pull Request #6661 · pingdotgg/t3code Conversation
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Effect Service Conventions review: one finding — a new service capability is declared as an optional interface member and feature-detected at runtime, with a production fallback that exists only for partial test doubles. Everything else (namespace imports from effect/* subpaths, environment-based dependency acquisition in the drivers, no ManagedRuntime/runPromise in service code, Layer.succeed limited to test seams, error mapping reusing the existing typed persistence errors) matches the conventions.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Effect Service Conventions review: one finding — a new service capability is declared as an optional interface member and feature-detected at runtime, with a production fallback that exists only for partial test doubles. Everything else (namespace imports from effect/* subpaths, environment-based dependency acquisition in the drivers, no ManagedRuntime/runPromise in service code, Layer.succeed limited to test seams, error mapping reusing the existing typed persistence errors) matches the conventions.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Skipped Macroscope did not run approvability analysis for this PR. Macroscope could not determine whether this PR modifies its approvability configuration, so the PR was not approved automatically. A PR that may change the rules that govern approval is never approved automatically. Not approved because:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
abc0ffe to
9233756
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
One finding: two ProjectionSnapshotQuery test doubles added for skill workspace resolution still implement only getShellSnapshot, which is no longer the method the production path calls.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
39abc3f to
5447a24
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
One finding: the new Grok inspect helper puts bare Error values in an Effect failure channel instead of a Schema.TaggedErrorClass with structured attributes. Everything else in scope (new SkillDiscovery / SkillWorkspaceCwds / OpenCodeCommands modules, driver wiring, contract additions, and the updated ProjectionSnapshotQuery shape/test doubles) follows the service, import, and dependency-acquisition conventions.
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
One finding: the / composer menu still builds its skill: entries from the unfiltered provider inventory, so the cross-workspace leak this PR fixes for $ remains on the slash path (and that read is no longer covered by the memo deps).
Posted via Macroscope — UI Consistency
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
- Add shared skill discovery for Codex, Grok, and OpenCode - Include project hierarchy, compatibility roots, and collision precedence - Expose discovered skills in provider snapshots with focused tests
- discover provider skills across registered projects and worktrees - add Cursor support and align Grok and OpenCode roots with their harnesses - use a lightweight workspace projection query and cover multi-workspace behavior
Macroscope flagged four issues on the skill discovery work: - `getActiveWorkspaceCwds` was an optional service member, so `resolveSkillWorkspaceCwds` feature-detected it and otherwise fell back to the full shell hydration the method exists to avoid. It is now a required member; the fallback and the test-side non-null assertion are gone, and the projection test doubles declare it. - `normalizePosixSkillWorkspacePath` rewrote every backslash to `/`, so `/projects/foo\bar` and `/projects/foo/bar` shared a skill bag. A backslash is a legal POSIX filename character and now stays in the segment; Windows forms are already routed to the Windows normalizer. - `normalizeWindowsSkillWorkspacePath` let `..` pop the drive letter or UNC share root, so `C:\..\project` normalized to `project` and never matched the server's `sourceCwd`. The root is now a floor. - `discoverClaudeSkills` resolved a relative `CLAUDE_CONFIG_DIR` against the first workspace only, hiding later workspaces' user skills. Each workspace now contributes its resolved config root, deduplicated. Model: Claude Opus 5, harness: Claude Code. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Follow-up review found two problems with the previous commit. Macroscope: the `emptySkillProjectionLayer` doubles in `ProviderRegistry.test.ts` and `ProviderInstanceRegistryLive.test.ts` still stubbed only `getShellSnapshot`, so once the fallback was removed the probes called an undefined method and `Effect.ignoreCause` swallowed the defect — the path was silently dead. Both now stub `getActiveWorkspaceCwds`, as does the `Layer.mock` in `server.test.ts`. Bugbot: resolving a relative `CLAUDE_CONFIG_DIR` per workspace added 每 workspace's config dir as an untagged user root, and user skills are the baseline for every chat — so one project's config skills leaked into another's picker, and same-named entries collapsed under the shared user inventory key. A single shared config dir (the common case) stays untagged and global; when workspaces resolve to different dirs, each root is tagged with the cwd whose CLI would actually load it. Model: Claude Opus 5, harness: Claude Code. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Grok's $ and / pickers only scanned filesystem skill roots, so bundled skills and harness features never appeared. Query grok inspect --json for the skill inventory and capture ACP available_commands_update for the live slash menu, with filesystem fallback when inspect is missing. Made-with: Grok 4.6 (grok-build)
74a51cb to
9100794
Compare
There was an error while loading. Please reload this page.
|
|
||
| const adoptPendingAvailableCommands = (sessionId: string) => | ||
| Effect.gen(function* () { | ||
| const pending = yield* Ref.getAndSet(pendingAvailableCommandsRef, new Map()); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium acp/AcpSessionRuntime.ts:385
getAvailableCommands can remain stale after startup: an available_commands_update received between Ref.getAndSet(pendingAvailableCommandsRef, new Map()) and setting startStateRef to Started is buffered after the drain and is never adopted. Coordinate the pending-map drain with the startup-state transition atomically, or perform a second drain after transitioning to Started.
In file @apps/server/src/provider/acp/AcpSessionRuntime.ts around line 385:
`getAvailableCommands` can remain stale after startup: an `available_commands_update` received between `Ref.getAndSet(pendingAvailableCommandsRef, new Map())` and setting `startStateRef` to `Started` is buffered after the drain and is never adopted. Coordinate the pending-map drain with the startup-state transition atomically, or perform a second drain after transitioning to `Started`.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 536153c. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const next = new Map(pending); | ||
| next.set(notification.sessionId, commands); | ||
| return next; | ||
| }); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Medium Severity
Fresh-start available_commands_update handling buffers into pendingAvailableCommandsRef while status is still Starting, and start() drains that map once via getAndSet before flipping to Started. A matching update that lands after the drain but before Started is written goes back into the pending map and is never adopted, so availableCommandsRef can keep a stale or empty menu. That regresses the old path, which wrote straight into availableCommandsRef during startup.
Reviewed by Cursor Bugbot for commit 536153c. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note 🤖 GPT-5.6 Sol responding on behalf of Theo Closing this PR after an automated pass over open pull requests. Broad project-skills rewrite duplicates trusted implementations #7909 and #5335. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.