Skip to content

fix(ui): a shared lane's links open a forward to it - #182

Merged
7schmiede merged 1 commit into
mainfrom
fix/shared-lane-links
Oct 21, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/shared-lane-links

Conversation

@7schmiede

Copy link
Copy Markdown
Member

Problem

Viewing a lane someone shares with you (read only, ADR-0040), the port links of its services and containers point at http://localhost:<port>, which is the lane's port on its node. Nothing on your machine listens there unless you ran devstack open first, so the link fails.

Fix

  • useStack().followLink(e, url): on a shared lane, a click (or middle-click) on a link finds the shared service whose port the link names, then opens the hub's forward through usePool().openShared (POST /hub/pool/shared/{lease}/open). It keeps the link's path, query and hash, so the URL works even when the forward lands on another local port. If the lane does not share that port, nothing opens and a toast says so. Links of your own stacks are followed unchanged.
  • Wired into ServiceRow, ContainerRow (port links and extra URLs), ServiceDetailView and ContainerDetailView.
  • openShared takes an optional path.
  • CHANGELOG and docs/pool.md updated.

Tests

  • npm run typecheck
  • vitest run: 46 pass, two of them new. They cover the forward with a moved port and a kept path, an unshared port, and your own stack's link left alone.

🤖 Generated with Claude Code

Viewing a lane shared with this machine (ADR-0040), its services' and
containers' links named `localhost:<port>` of the lane's node, where
nothing here listens. A click on one now finds the shared service on that
port and opens the hub's forward to it (ADR-0035), as Open in the pool
area does, the link's path kept. A port the lane does not share opens
nothing and says so. Links of one's own stacks are followed as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 21a58cc into main Oct 21, 2026
@7schmiede
7schmiede deleted the fix/shared-lane-links branch October 21, 2026 15:30
7schmiede added a commit that referenced this pull request Oct 21, 2026
* feat(hub): open a tree in GitHub Desktop

The path's menu in the stack header lists GitHub Desktop when it is
installed (Windows), in a group of its own for Git clients (`kind: "git"`,
between the editors and the agents). Its `x-github-client` scheme only
clones from a remote, so the hub starts the launcher in its install folder
with `--cli-open=<path>`, as GitHub Desktop's own `github` command does.

ADR-0046 is amended. The changelog entry of #182 moves out of the
released 0.16.0 into Unreleased.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(adr): the index names ADR-0046's amendments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede 7schmiede mentioned this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant