This is an automated email from the ASF dual-hosted git repository. voidmatcha pushed a commit to branch pr5339-rebase in repository https://gitbox.apache.org/repos/asf/zeppelin.git
commit 2316f54538b5e9284861de7a09a7d32ce4e1685a Author: YONGJAE LEE <[email protected]> AuthorDate: Sun Aug 23 15:52:43 2026 +0900 Support hash query for inline completion flag --- .../src/app/services/inline-completion.service.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zeppelin-web-angular/src/app/services/inline-completion.service.ts b/zeppelin-web-angular/src/app/services/inline-completion.service.ts index 62f92b4ded..a1295d614c 100644 --- a/zeppelin-web-angular/src/app/services/inline-completion.service.ts +++ b/zeppelin-web-angular/src/app/services/inline-completion.service.ts @@ -62,7 +62,15 @@ export class InlineCompletionService { private isEnabled(): boolean { try { - return new URLSearchParams(window.location.search).get('aiInlineComplete') === 'true'; + const searchParams = new URLSearchParams(window.location.search); + const hashQuery = window.location.hash.split('?')[1] ?? ''; + const hashParams = new URLSearchParams(hashQuery); + const isEnabled = (params: URLSearchParams) => { + const value = params.get('aiInlineComplete'); + return value === 'true' || value === ''; + }; + + return isEnabled(searchParams) || isEnabled(hashParams); } catch { return false; }
