mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
perf(ui): keep cancel capability within startup budget
This commit is contained in:
@@ -173,11 +173,11 @@ export class CustodianSessionStore {
|
||||
}
|
||||
|
||||
get wizardCancelAvailable(): boolean {
|
||||
const snapshot = this.context?.gateway.snapshot;
|
||||
return (
|
||||
snapshot !== undefined &&
|
||||
isGatewayCapabilityAdvertised(snapshot, GATEWAY_SERVER_CAPS.SYSTEM_AGENT_WIZARD_CANCEL) ===
|
||||
true
|
||||
isGatewayCapabilityAdvertised(
|
||||
this.context?.gateway.snapshot ?? {},
|
||||
GATEWAY_SERVER_CAPS.SYSTEM_AGENT_WIZARD_CANCEL,
|
||||
) ?? false
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user