Repository navigation
fix(claude-connect): the bridge stops at the first project boundary instead of walking past it - #270
Merged
Merged
Conversation
…iv directory The generated bridge kept climbing past an ancestor .conciv directory that had no mcp-endpoint.json, so a nested project with no running dev server silently bridged to a parent project's server - the wrong-project bridging #243 was fixing. The walk now stops at the first ancestor .conciv directory it finds: use its endpoint if valid, otherwise fail naming that directory. Also drops the mutable accumulator loop for a direct walk-and-resolve. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Stops Claude Connect from crossing the first .conciv project boundary.
Changes:
- Resolves endpoints directly at the nearest boundary.
- Adds nested-project integration coverage.
- Adds a patch changeset.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
packages/claude-connect/src/bridge.ts |
Stops endpoint lookup at the nearest .conciv boundary. |
packages/claude-connect/test/bridge.it.test.ts |
Tests nested projects with and without endpoints. |
.changeset/nested-project-bridge-boundary.md |
Documents the patch release. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
|
|
||
| function noEndpointAt(dir) { | ||
| return {url: null, reason: \`no \${stateDirName}/\${endpointFileName} at or above \${dir}\`} |
…not ancestor search The bridge walk stops at the first ancestor containing .conciv, but the error message claimed no endpoint exists "at or above" the start directory even when a boundary was found and only its endpoint file was missing or stale. Split noEndpointAt into two cases: a found boundary with no endpoint says so and names the expected file path; no boundary found at all says no .conciv project directory was found walking up from the start directory. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Merged
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.
Post-merge fix for PR #266's Copilot findings (the real one plus the style one).
Gates: claude-connect 26/26 (typecheck+build+test), lint/format clean, fallow 0 introduced. One unrelated flake in the wide fan-out (core turn-detach stream timing) reran green standalone; two parallel-build races likewise verified clean standalone.
🤖 Generated with Claude Code