Conversation
feat(runner): direct launch
…lector updates
fix: Update selectors for Google AI Studio UI changes and fix test mocks (CJackHwang#278)
…by centralizing definitions and supporting new/old UI structures."
…new tests for selector and grid logger utilities.
…DME and various documentation guides.
…nd prompt handling, alongside refactoring authentication state saving and enhancing logging infrastructure.
…ts for server state and launcher configuration.
…pport models without them.
…t, and enable standard type checking mode with stricter reports
feat: Logging overhaul, UI selector robustness, and thinking mode support
… its tests, exposing `save_error_snapshot_enhanced` in its place.
refactor: remove dead code and update documentation
Google AI Studio changed the menu item text from 'Upload File' to 'Upload a file'. Added fallback chain to support both old and new UI versions.
…ty (CJackHwang#292) * style: remove nested logs and leading spaces from logger output messages * refactor: Remove leading spaces from log messages for cleaner output. * fix: improve reliability of chat message input and sending in page controller. * feat: enhance logging by adding new tags, silencing verbose modules, and improving test coverage for log messages * refactor: deprecate legacy frontend, add React SPA and modularize routers
…t kill security by restricting PIDs to tracked processes. (CJackHwang#293)
…ng#294) Updated files: - advanced-configuration.md: Add SKIP_FRONTEND_BUILD, model_capabilities.json section, port kill security note - architecture-guide.md: Add model_capabilities.json and all new routers - development-guide.md: Add Node.js prereq, frontend dev section with npm commands - env-variables-reference.md: Add SKIP_FRONTEND_BUILD variable - environment-configuration.md: Add SKIP_FRONTEND_BUILD to startup config - installation-guide.md: Update Node.js requirement for frontend development
…ang#295) * docs: comprehensive documentation update for v4.0.3 changes Updated files: - advanced-configuration.md: Add SKIP_FRONTEND_BUILD, model_capabilities.json section, port kill security note - architecture-guide.md: Add model_capabilities.json and all new routers - development-guide.md: Add Node.js prereq, frontend dev section with npm commands - env-variables-reference.md: Add SKIP_FRONTEND_BUILD variable - environment-configuration.md: Add SKIP_FRONTEND_BUILD to startup config - installation-guide.md: Update Node.js requirement for frontend development * docs: update and refine various documentation files for improved clarity
…on across various files. (CJackHwang#297)
- Adopted logic and features from upstream (Centralized State, QueueManager, New Frontend). - Preserved and restored English translations across all backend modules. - Localized core components of the new React frontend (static/frontend). - Fixed circular imports introduced during the merge. - Audited README and .env.example for branding consistency.
Synchronize with CJackHwang/AIstudioProxyAPI upstream (Dec 2025) while fully localizing the codebase to English and restoring fork-specific features. ## Upstream Sync - Merged latest upstream changes including architecture improvements - Updated browser automation and page controller modules - Synced configuration and environment variable handling - Integrated upstream test improvements and coverage enhancements ## Localization (300+ strings across 50+ files) - Translated all Chinese log messages, comments, and docstrings to English - Localized error messages and user-facing strings in core modules - Updated all 18 documentation files to English - Renamed support_author.jpg (from Chinese filename) - Ensured consistent English terminology throughout codebase ## Fork Features Restored - Preserved custom authentication rotation and quota handling logic - Maintained fork-specific streaming enhancements - Kept enhanced error handling and recovery mechanisms - Restored all fork-specific test customizations ## Bug Fixes During Merge - Resolved merge conflicts in page_controller.py and launch_camoufox.py - Fixed selector constant references after upstream changes - Corrected import paths affected by module reorganization - Addressed CRLF/LF line ending inconsistencies ## Test Status - 660 tests passing - 13 pre-existing test failures (unrelated to this sync) - All localization changes verified against test suite Files changed: 115 (6,986 insertions, 8,949 deletions)
…ing mode timeouts - Fixed state shadowing by removing module-level variables in server.py. - Updated dependencies.py to read directly from the centralized state. - Resolved queue worker hang by implementing non-blocking client connection checks. - Integrated robust ThinkingController and simplified thinking selectors. - Implemented parameter caching for reasoning_effort to avoid redundant UI interactions. - Fixed NameError bugs for 'logger' and 'pending'. - Removed legacy/unused QueueManager class to reduce technical debt. - Ported reliability workarounds (backdrop cleanup, keyboard submission) from stable branch.
Perform a major cleanup and modernization of the repository to improve maintainability and resolve critical UI interaction issues. Changes: - 🏗 Cleanup: Removed deprecated `deprecated/`, `deprecated_javascript_version/`, and `workspace/` directories. - 📚 Docs: Restructured documentation by moving all guides to `docs/guides/` and archiving outdated research notes. - ⚡️ Modernization: Updated `server.py` and `api_utils/app.py` to remove legacy proxy logic and streamline the main entry points. - 🐛 Fix: Resolved 'Thinking Budget' selector issues that caused strict mode violations in browser automation. - 🛑 Reliability: Improved server shutdown and client disconnection logic to reduce `CancelledError` noise and ensure clean resource release. - 🎨 Refactor: Pruned unused imports and legacy helper functions across the entire `api_utils` and `browser_utils` modules. - 🧪 Testing: Updated test suite to reflect architectural changes and ensure compatibility with the modernized codebase. Includes implementation report: docs/reports/refactor/REFACTOR_REPORT_2025-12-22.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ refactor: extensive codebase cleanup, architecture modernization, and critical fixes
This PR introduces a comprehensive modernization of the AI Studio Proxy API, featuring a major architecture refactor, a complete frontend overhaul, extensive codebase cleanup, and critical fixes for thinking mode and request processing stability.
📝 Summary
This is a transformative update that streamlines the core architecture by centralizing state management, modernizing the frontend stack to React/Vite, and resolving long-standing stability issues with thinking mode and request hangs. It also completes a full synchronization with the Dec 2025 upstream, including full English localization and restructured documentation.
✨ Changes
🧹 Codebase Cleanup
gui_launcher.pyand the entiredeprecated_javascript_version/directory, significantly reducing technical debt.api_utils/mcp_adapter.py.ruff.workspace/docs/todocs/guides/and cleaned up task archives.🏗 Core Architecture Modernization
server.pyto remove legacy proxy logic, moving all shared state toapi_utils/server_state.py.static/frontend/.api_utils/routers/, improving maintainability.🧠 Thinking Mode & Stability Fixes
is_disconnectedstates and sync issues.📚 Documentation & Localization
docs/guides/structure with comprehensive documentation on architecture, API usage, environment variables, and platform differences.README.mdand.env.examplewith detailed instructions and configuration options.🛑 Shutdown & Reliability
📁 Files Changed
api_utils/browser_utils/static/frontend/docs/guides/server.py🧪 Testing Status
tests/launcher/andtests/api_utils/. Confirmed no regressions were introduced.server_statemodule.🔗 Related Issues
server.attributemust now useapi_utils.server_state.state.attribute.npm run buildinstatic/frontend) for production deployment, though pre-built assets are managed by the launcher.