comfyui-mcp 0.50.105 → 0.50.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7836,6 +7836,34 @@ export function buildPanelToolDefs() {
|
|
|
7836
7836
|
return ok(`🔒 Token saved to MCP server "${server}" (${args.target_kind} "${args.key}"). Call panel_reload to load it.`);
|
|
7837
7837
|
}
|
|
7838
7838
|
catch (err) {
|
|
7839
|
+
// #1352 — A TIMED-OUT SECRET CARD IS NOT A FROZEN TAB.
|
|
7840
|
+
//
|
|
7841
|
+
// The bridge's generic no-reply message ("the ComfyUI tab may be backgrounded
|
|
7842
|
+
// or frozen") is right for every other command and wrong here. This card
|
|
7843
|
+
// blocks up to 300s on a MASKED INPUT, and the overwhelmingly likely reason it
|
|
7844
|
+
// went unanswered is that a human is still typing — off finding the key in a
|
|
7845
|
+
// password manager or a billing console. Nothing is wrong with the tab, and
|
|
7846
|
+
// sending someone to fix one is the #1332 defect in a new place.
|
|
7847
|
+
//
|
|
7848
|
+
// It also has to say what happens to a value entered LATE, because that is the
|
|
7849
|
+
// question the caller will actually have. MEASURED: this card is sent as a raw
|
|
7850
|
+
// `request_secret` command with NO ask_id, and the late-reply buffer
|
|
7851
|
+
// (takeLateAskReply) is keyed BY ask id — so a value typed after the timeout
|
|
7852
|
+
// has no path back to this call. It is discarded, and the tool must be called
|
|
7853
|
+
// again. "It may still arrive" would be a guess, and an expensive one: the
|
|
7854
|
+
// user would wait for a save that cannot happen.
|
|
7855
|
+
if (isReplyTimeoutError(err)) {
|
|
7856
|
+
return fail(`The secret card was not answered within 300s, so NOTHING was saved and no ` +
|
|
7857
|
+
`credential was read. That is very likely just time — the card asks for a ` +
|
|
7858
|
+
`token, and finding one in a password manager or a billing console can take ` +
|
|
7859
|
+
`longer than that. It does NOT mean the tab is frozen, and it does NOT mean ` +
|
|
7860
|
+
`the user declined.\n\n` +
|
|
7861
|
+
`A value typed into that card NOW cannot reach this call: it carries no id ` +
|
|
7862
|
+
`this reply could be matched to, so a late answer is discarded rather than ` +
|
|
7863
|
+
`saved. Ask whether they still want to set it and call panel_request_secret ` +
|
|
7864
|
+
`again when they are ready to paste — the value goes straight from the masked ` +
|
|
7865
|
+
`field into storage, and must never be typed into the conversation.`);
|
|
7866
|
+
}
|
|
7839
7867
|
return fail(err);
|
|
7840
7868
|
}
|
|
7841
7869
|
}),
|