Skip to content

Comments

fix: adapt to new AI Studio login flow#77

Merged
bbbugg merged 18 commits intomainfrom
fix/new-ais-login
Feb 21, 2026
Merged

fix: adapt to new AI Studio login flow#77
bbbugg merged 18 commits intomainfrom
fix/new-ais-login

Conversation

@bbbugg
Copy link
Member

@bbbugg bbbugg commented Feb 20, 2026

中文:
由于近期 AIStudio 更新,本分支已调整原有账号登录逻辑,取消了在 blank app 中启动代理的方式(该方式已不支持编辑)。现改为使用开发者预先创建的 app。因此不再支持 WS_PORT 环境变量,端口固定为 9998。

English:
Due to recent AIStudio updates, this branch has modified the original account login logic. The previous approach of starting the proxy within a blank app (which is no longer editable) has been removed. It now uses a pre-created app provided by the developer. As a result, the WS_PORT environment variable is no longer supported, and the port is fixed at 9998.

bbbugg and others added 6 commits February 20, 2026 20:03
- Update target URL to new AI Studio app endpoint
- Add "Continue to the app" button handler
- Remove manual script injection (app has built-in WebSocket client)
- Simplify initialization flow for faster startup

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add _checkPageErrors() to detect common initialization errors
- Add _waitForWebSocketInit() to monitor browser console logs
- Detect "System initialization complete" for success
- Detect "System initialization failed" for failure
- Check for page errors every second during 60s timeout
- Auto-refresh page on errors (applet failed, concurrent updates, snapshot failed)
- Implement 3-retry mechanism with page refresh between attempts
- Apply to both launchOrSwitchContext and attemptLightweightReconnect

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

This comment was marked as outdated.

This comment was marked as duplicate.

@bbbugg bbbugg changed the title fix: implement new version handling and UI interaction for AI Studio Remix flow fix: adapt to new AI Studio login flow Feb 21, 2026
@bbbugg bbbugg merged commit 48dbd57 into main Feb 21, 2026
5 checks passed
@github-actions
Copy link

🎉 此 PR 的修改已在版本 v0.7.0 中发布。
🎉 The changes in this PR have been released in version v0.7.0.

@bbbugg bbbugg added the 🐛 Bug Something isn't working label Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 Bug Something isn't working

Projects

None yet

1 participant