-
Notifications
You must be signed in to change notification settings - Fork 267
Bug: onboarding Back rewinds Companion UI but not Gateway wizard session #1172
Copy link
Copy link
Open
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateThis issue is about session, memory, transcript, context, or agent state drift.This issue is about session, memory, transcript, context, or agent state drift.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.User-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.Exempts this issue from stale automation.
Description
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateThis issue is about session, memory, transcript, context, or agent state drift.This issue is about session, memory, transcript, context, or agent state drift.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.User-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.Exempts this issue from stale automation.
Type
Fields
Priority
None yet
Projects
StatusShow more project fields
Backlog
Summary
The Windows Companion onboarding wizard exposes a Back action, but it only rewinds a client-local payload history. The active Gateway wizard session is not rewound because the Companion does not send a corresponding rewind operation.
This can leave the Companion showing an earlier question while the Gateway still expects a later answer. Submitting the displayed step again can cause repeated steps, stale-session errors, connection loss, or a full wizard restart.
Steps to reproduce
Expected behaviour
Back should either:
The UI and Gateway must never disagree about the active step.
Actual behaviour
The Companion pops and re-renders a client-local payload history entry, but does not send a corresponding rewind operation to the Gateway wizard session.
This is visible in
WizardPage.xaml.cs: the page pushes payloads into_stepHistorybefore rendering (ApplyPayloadAsync), whileWizardBack_Clickonly pops and re-applies a previous payload. The current Core wizard RPC contract documentswizard.start,wizard.next,wizard.cancel, andwizard.status; there is nowizard.backoperation.Why this matters
The user can be shown a step that the Gateway no longer considers current. A subsequent answer can therefore be rejected as stale, repeat the flow, or force recovery to start the wizard again. This is particularly disruptive during provider or authentication setup.
Related issues
Environment
2026.8.19f5776e071d15924d491(local build; not claimed as an upstream release)Evidence and proof gap
The source-level mismatch is confirmed. A runtime repro with the real Back action should additionally capture the
sessionIdandstepIdbefore and after Back, plus the Gateway response when the displayed earlier step is submitted. No Tailscale cause is claimed here.Proposed direction
Choose one authoritative design:
The Companion should not silently render stale protocol state as if it were current.