Add target-app selection and routing support - #128
Open
Fayiz1 wants to merge 1 commit into
Open
Conversation
feat(web): Support dual Antigravity engines and add chat auto-scroll ResizeObserver Detailed Changes: 1. **Chat Auto-Scroll Stabilization (ResizeObserver)**: - Resolved a critical bug where long chats would jump/stay scrolled to the top on load. - Introduced a `ResizeObserver` on the inner messages container to detect asynchronous height increases (e.g. text expanding, Markdown compiling, images loading) and snap the scroll position to the bottom if the user was already near the bottom. - Restructured layout references (`innerRef` and `scrollRef`) in `ChatPanel.tsx` to handle the resize events. 2. **Dual-Target Engine Support (Antigravity & Antigravity IDE)**: - Enabled target routing selection in the UI, allowing the Porta web app to switch between both the standard `antigravity` Language Server and the Desktop `antigravity-ide` Language Server. - Ensured headers (`x-porta-target-app`) and WebSocket parameters are correctly passed so that step updates and message submissions route to the correct LS process. 3. **Background Mobile Load & Caching Optimization**: - Implemented sessionStorage caching for conversation trajectories in `useStepsStream.ts` to instantly restore message histories. - Eliminated the jarring blank "loading skeleton" flash when users perform a pull-to-refresh on mobile devices or reload on unstable network connections. - Set up silent background polling to merge and sync new steps seamlessly.
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.
feat(web): Support dual Antigravity engines and add chat auto-scroll ResizeObserver
Detailed Changes:
Chat Auto-Scroll Stabilization (ResizeObserver):
ResizeObserveron the inner messages container to detect asynchronous height increases (e.g. text expanding, Markdown compiling, images loading) and snap the scroll position to the bottom if the user was already near the bottom.innerRefandscrollRef) inChatPanel.tsxto handle the resize events.Dual-Target Engine Support (Antigravity & Antigravity IDE):
antigravityLanguage Server and the Desktopantigravity-ideLanguage Server.x-porta-target-app) and WebSocket parameters are correctly passed so that step updates and message submissions route to the correct LS process.Background Mobile Load & Caching Optimization:
useStepsStream.tsto instantly restore message histories.