Skip to content

Linked environments: a revoked link stays 'reachable' and re-linking reuses it #959

Closed

Description

@scuttletoby

What happened: a linked machine was updated and its old link was revoked there. t3_environment_links still showed it as reachable, with lastError "The linked environment no longer accepts this link". Every read returned capability_denied.

  • Calling t3_environment_link with that environmentId returned status: linked and showed no card.
  • Calling it again with only a hint showed a card, and the user approved it. The old record stayed: same expiresAt, still capability_denied.
  • Only t3_environment_unlink followed by a new link card helped.

Expected:

  1. A link whose last call was capability_denied (revoked there) is not reported as reachable/linked.
  2. t3_environment_link on such a link starts a fresh pairing and replaces the stored credential when the user approves.
  3. An approved card never leaves the old credential in place.

Test: a link whose remote revokes the session, then t3_environment_link (with and without environmentId) leads to a new pairing, and the stored link works after approval.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions