Fix WebCRT Quick Connect stuck on authenticating.

New-session path filled wsUrl after mount, remounting the terminal and dropping the connect wait WS. Mint tickets from sessionId only and ignore late wsUrl changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-02 19:17:36 +08:00
parent fb3da4dfc7
commit e684339511
2 changed files with 10 additions and 9 deletions

View file

@ -715,8 +715,10 @@ export const WebTerminal = forwardRef<WebTerminalHandle, Props>(function WebTerm
termRef.current = null;
fitRef.current = null;
};
// Fresh ticket per mount when sessionId is set; wsUrl is fallback only.
}, [wsUrl, sessionId]);
// Fresh ticket per mount when sessionId is set. Do not re-run when a late
// parent wsUrl fill-in arrives — that remount dropped the wait-loop WS and
// left Quick Connect stuck on "authenticating".
}, [sessionId || wsUrl]);
const pasteFromClipboard = async () => {
try {