Skip to content

[1912 by GPT-5.6 Sol] Keep tunnel desired state isolated between explicit stack roots - #1913

Merged
integry merged 1 commit into
mainfrom
1912/gpt-5.6-sol-keep-tunnel-desired-state-20260815-0134-ozu
Aug 15, 2026
Merged

integry merged 1 commit into
mainfrom
1912/gpt-5.6-sol-keep-tunnel-desired-state-20260815-0134-ozu

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #1912

Branch: 1912/gpt-5.6-sol-keep-tunnel-desired-state-20260815-0134-ozu
Commits: ✅ Changes committed (db69ee5)


AI Processing Completed

Execution Details:

Summary:
Implemented GitHub issue #1912.

  • Tunnel desired state is now stored per normalized stack root.
  • Legacy global tunnelEnabled migrates safely to its recorded stackRoot.
  • All tunnel setup/on/off rollback paths now update only the selected root.
  • Setup enrollment and start preflight resolve tunnel intent for the active root.
  • Added two-root migration, isolation, and real start-preflight regression tests.

Validation passed:

  • CLI build, typecheck, and lint
  • Full CLI suite: 315 passed, 1 platform-specific skip
  • External ConfigManager suite: 24 passed

Detailed Logs:

  • Conversation: 70 messages
  • Session: 01a0030e-fb97-7972-9555-744b7b629641

Log files stored at:

  • conversation: /tmp/claude-logs/issue-1912-2026-08-15T01-42-17-318Z-conversation.json
  • output: /tmp/claude-logs/issue-1912-2026-08-15T01-42-17-318Z-output.txt
Latest Conversation Messages

This PR was created automatically by ProPR after processing issue #1912.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…ween explici

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.
@integry

integry commented Aug 15, 2026

Copy link
Copy Markdown
Owner

/review llm-codex-gpt56-sol

@propr-dev

propr-dev Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex-gpt56-sol

Overall Evaluation

This PR correctly isolates tunnel desired state by normalized stack root and safely migrates the legacy global setting. It is ready to merge; all current checks pass.

✅ Complete root-aware flow — Setup, start preflight, tunnel setup, toggles, and rollback consistently read or write state using the resolved root.

✅ Safe legacy migration — ConfigManager associates the old global value only with its recorded stack root and preserves an existing root-specific value.

✅ Strong regression coverage — Tests verify migration, two-root isolation, persistence, rollback behavior, and the real start-preflight path.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Expand migration edge-case coverage

A follow-up test in packages/cli/src/config/ConfigManager.test.ts could cover migration of false and a config containing both legacy and root-specific values. The implementation handles both cases correctly, but explicit coverage would preserve the intended precedence during future schema changes. This is optional because the current boolean logic is straightforward and existing tests exercise both persisted states elsewhere.

Score

The implementation fulfills the objective without a verified regression, includes well-targeted tests, and has a fully passing current check suite.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 58s
  • Tokens: 54,305 (52,240 in / 2,065 out)
  • Cost: $0.28

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry

integry commented Aug 15, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=10 llm-codex-gpt56-sol

@propr-dev propr-dev Bot added the ultrafix label Aug 15, 2026
@propr-dev

propr-dev Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

The PR correctly replaces global tunnel intent with absolute-root-keyed state and updates setup, startup, tunnel toggles, and rollback paths consistently. It is ready to merge.

✅ Correct root isolation — getHostConfig, guided setup, and tunnel commands all read and write tunnel intent using the resolved stack root.

✅ Safe legacy migration — The old global flag is associated only with its recorded root and removed on the next save, preventing leakage to a new explicit root.

✅ Strong regression coverage — Tests cover migration, independent toggles, rollback, and the actual start-preflight path; all current checks pass.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Document root-scoped overrides

The tunnel documentation currently describes persisted on|off choices without explicitly stating that they are scoped to the selected stack root. Clarifying this would make the new user-visible behavior easier to understand, but the existing wording is not incorrect and does not block merge.

Score

The implementation satisfies the issue, preserves legacy intent where safely attributable, and has focused coverage with a fully passing current check suite.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 1m 32s
  • Tokens: 55,077 (51,205 in / 3,872 out)
  • Cost: $0.32

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Aug 15, 2026
@integry
integry merged commit 9a5bc93 into main Aug 15, 2026
33 checks passed
@integry
integry deleted the 1912/gpt-5.6-sol-keep-tunnel-desired-state-20260815-0134-ozu branch September 1, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep tunnel desired state isolated between explicit stack roots

1 participant