Repository navigation
Conversation
AcpConnectorFiles.workspace is optional. Left out (or empty), the chat reads no connectors file of the folder it starts in: the connectors are the known ones on the PATH and the user's file, whatever directory loadAcpConnectors is asked for. watchAcpConnectorChoice then watches the user's file alone, and a connector that is not known is said with the user's file alone. Why: a product that opens files from anywhere, such as a viewer, has the chat's working folder at an opened file's own folder when the file lies outside the workspace's folders. The connectors file at that folder's project root is read last, and a [connectors.opencode] there replaces the built-in, so an opened file's folder could choose the program the chat starts. With the member required, no value kept that file out and left the "not known" sentence true. A declaration that names both files reads both, as before; the existing tests pass unchanged. The member only became optional, and the API version is unchanged. Checked by six new unit tests on a made project root (with the previous acp-connectors.ts five of them fail), the package's typecheck, the neutrality gate and the unit suite (extension-core 887 to 893 tests). Not seen in a live VS Code. Claude-Session: https://claude.ai/code/session_011UYzzTnHNcFEGtvi2Cq19P
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.
What.
AcpConnectorFiles.workspaceis optional. Left out (or empty), the chat reads no connectors file of the folder it starts in:loadAcpConnectorsgives the known connectors and the user's file, whatever directory it is asked for;watchAcpConnectorChoicewatches the user's file alone;The resolver, the listing and the resume template follow from
loadAcpConnectors. The test-onlyworkspaceFileoverride stands for the declared file, so it is not read when none is declared.Why. A product that opens files from anywhere, such as a viewer, has the chat's working folder at an opened file's own folder when the file lies outside the workspace's folders. The platform then reads the connectors file at that folder's project root last, and a
[connectors.opencode]there replaces the built-in: an opened file's folder could choose the program the chat starts. Such a product needs to name the user's file alone. Withworkspacerequired, no value keeps that file out and leaves the "not known" sentence true.What does not change. A declaration that names both files reads both, and the existing tests pass unchanged. No trust check, nothing new posted to the pages, no new dependency.
How it was checked. Six tests in
acp-connectors.test.tsuse a made project root whose file redefinesopencodeand declares one more connector. With no workspace file named: the built-inopencode, the other name not known, noworkspacesource in the listing, the built-in resume template, the user's file alone in the rejection, one watcher. The same root is read when the declaration names its file. With the previousacp-connectors.ts, five of the six fail. The package's typecheck,check:neutralityand the unit tests pass (extension-core 887 to 893). Not seen in a live VS Code.For the reviewer to decide.
DIALOGRAM_API_VERSIONis not bumped: the member only became optional, so existing products are unaffected. The changelog entry is under[Unreleased], Added. Say if this should carry a version bump.https://claude.ai/code/session_011UYzzTnHNcFEGtvi2Cq19P