Repository navigation
feat(plugins): expose durable project enumeration - #1998
Merged
Merged
Conversation
Let plugins build project pickers independently of the selected session. Use durable project ids and primary-first roots while keeping workspace selection and filesystem permissions unchanged. Cover the process and panel APIs, fallback behavior, and a real Host restart path, and run the Host/process scenario in integration CI. closes #1996
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugins can now build project pickers even when the selected session has no project.
pi.projects.list()and the panel bridge return one entry per durable project row, most recently opened first, with stable decimal database ids and non-empty primary-first roots. Missing group metadata falls back to a single root; an unavailable project Host returns[].The change keeps workspace selection, session bindings, and filesystem permissions unchanged. Primary group rows use the group's display name and registered roots; secondary-folder rows retain their own durable identity and primary path. The SDK, manifest/API reference, ADR, E2E scenario, and shipped-locale release notes document the contract. Integration CI now runs the real Host/plugin-process scenario.
Validation:
pnpm build:js, Desktop typecheck,pnpm lint,pnpm docs:check, release-doc check, and architecture check passed.pi.projectswas absent.libnode.147.dylib. Desktop initially lacked an Electron binary; after reusing the primary checkout's Electron, 14 affected user-path files passed and the unrelated deep-file-search fixture still failed. Full Linux integration CI remains the landing gate.Task candidate:
pnpm test:e2e:plugin-projects— PASSCloses #1996.