Skip to content

Keep tunnel desired state isolated between explicit stack roots #1912

Closed

Description

@integry

Reproduction

On a host that previously used stack root A, the CLI config had the desired
tunnel state enabled even though root A no longer had a configured/running
connector. With public ProPR 0.8.15, run guided setup for a new explicit root B:

  1. Run propr setup --root /path/to/root-b --no-tui --no-skill with an isolated
    PROPR_STACK and free ports.
  2. Complete scaffold, image pull, agent selection, Connect enrollment, and
    intake selection.
  3. Accept "Start the stack now?".

Setup refuses to start root B because it inherits the global desired tunnel
state from root A, while root B correctly has no tunnel token, instance id, or
public URL yet. Running propr tunnel off --root /path/to/root-b makes the same
setup pass, demonstrating cross-root state contamination.

Expected behavior

An explicit new stack root must start in its own local/default tunnel state.
Tunnel intent from a different root must not silently enable tunnel validation
for the new root, and operating on root B must not alter root A.

Acceptance criteria

  • Reproduce with two stack roots and an explicit --root on the second setup.
  • Make desired tunnel state root-specific, or otherwise ensure root B cannot
    inherit root A's tunnel-enabled intent.
  • Preserve existing single-root tunnel setup/on/off/verify behavior and define
    a safe migration for existing CLI config.
  • Add focused regression tests covering two roots and the setup/start preflight.
  • Do not log or copy connector tokens or other secrets.
  • Keep the change limited to CLI tunnel/config/root isolation; no backend,
    routing-service, or production mutation.

This was independently reproduced during post-publication 0.8.15 qualification.
It did not affect a fresh CLI config, and the release validation continued with
a byte-for-byte config backup/restore around the isolated workaround.

Activity

  1. propr-dev commented on Aug 15, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 1912/gpt-5.6-sol-keep-tunnel-desired-state-20260815-0134-ozu
    • Base Branch: main
    • Worktree: issue-1912-20260815-0134-gpt-5.6-sol-ozu

    🔍 Track Task Execution

  2. added a commit that references this issue on Aug 15, 2026
  3. added a commit that references this issue on Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions