You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 01c2463
Browse filesBrowse the repository at this point in the historyBrowse files
Make connection guidance safe for CLI-first release
Reuse safe copy and lost-handover tests from Rob Zolkos’s CLI #900 at 7ba7e96 (2765820 through 7ba7e96), without its unconditional adds promises. Approval may add or replace until personal-agent adds are enabled, and shared agents still replace. Apply Jeremy Daer’s review: name the refused profile and both causes, warn overlap at guided project selection, keep live credential files, distinguish the newest lost connection from Disconnect all, and contract-test the skill stop fragment.
hinted.Hint="Disconnect the agent in Basecamp and run the connect command again; the secret this connection was handed is gone."
386
+
hinted.Hint="Disconnect the newest connection in Basecamp (last in the list, where connections are listed), not Disconnect all, and run the connect command again; its secret is gone, so cleanup can wait."
388
387
return&hinted
389
388
}
390
389
391
390
// warnHandoverLost says what a failure after the handover costs, in the
392
391
// one line an operator has to act on.
393
392
funcwarnHandoverLost(logfunc(string)) {
394
-
log("warning: the connection was approved and the agent's client secret was handed over once, but keeping it failed. Disconnect the agent in Basecamp and connect again.")
393
+
log("warning: the connection was approved and its client secret was handed over once, but keeping it failed. Disconnect the newest connection in Basecamp (last in the list, where connections are listed), not Disconnect all, and connect again; its secret is gone, so cleanup can wait.")
395
394
}
396
395
397
396
// spentHandoverError marks an error raised once the poll had already been
e:=output.ErrAuth(who+" was disconnected in Basecamp, or connected on another computer")
567
+
e:=output.ErrAuth(fmt.Sprintf("Profile %q's connection to %s was disconnected in Basecamp, or replaced by a newer connection", richtext.SanitizeSingleLine(profile), who))
0 commit comments