mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
docs(signal): clarify link completion boundary
This commit is contained in:
@@ -239,7 +239,7 @@ describe("linkSignalCliAccount", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("preserves a successful link when QR presentation cancels the settling process", async () => {
|
||||
it("trusts the terminal account marker when presentation cancels process exit", async () => {
|
||||
const command = createDeferredCommand();
|
||||
let rejectPresentation!: (error: Error) => void;
|
||||
const presentation = new Promise<void>((_resolve, reject) => {
|
||||
|
||||
@@ -160,8 +160,8 @@ export async function linkSignalCliAccount(params: {
|
||||
await displayPromise;
|
||||
|
||||
if (associatedAccount) {
|
||||
// signal-cli prints the account only after finishDeviceLink succeeds. A late client
|
||||
// cancellation must not turn that durable success into a second linking attempt.
|
||||
// signal-cli emits this marker only after finishDeviceLink returns. The linked account is
|
||||
// therefore durable even when a late presentation failure terminates the settling process.
|
||||
return { ok: true, associatedAccount };
|
||||
}
|
||||
if (result.code === 0 && result.termination === "exit") {
|
||||
|
||||
Reference in New Issue
Block a user