Component: UI / Chat Session Management / Agent Context
Description:
I was working on a large project with an extensive chat history in a single session. While the agent was actively running a task/prompt, I switched to a new chat tab to ask a separate question. When I switched back to the original large chat session, the IDE displayed the notice: “The server cleared a prefix of the conversation as it grew too large.”
However, instead of just dropping the oldest history tokens, the IDE completely broke the active UI state. Not only is the previous readable chat history gone, but the ongoing work/output that the agent was actively processing has also completely disappeared from the screen. The entire session state has gone blank or invisible.
Steps to Reproduce:
- Open a large project and build up a massive chat history in a single conversation window.
- Provide a prompt to the agent that triggers long-running tasks.
- While the agent is actively working, open a “New Chat” session and type a query.
- Switch back to the original chat session.
- Notice the “server cleared a prefix” warning, followed by the immediate disappearance of both historical messages and the agent’s current live progress.
Expected Behavior:
Even if the server clears the prefix tokens due to context limits, the UI should still render the remaining visible history and critically, it must not hide the active, live output of the running agent.
Hi @Krishna_Bansal, Welcome to the Forum!
Could you please provide a few additional details?
-
What is the exact version of the Antigravity IDE you are using?
-
What operating system and version are you running?
-
Approximately how many messages (or how long) was the conversation before you opened the new tab?
-
Did you have any large files (or folders) actively open or added to the agent’s context window at the time?
-
Do you have custom context settings active, like a .antigravityignore file or custom system instructions?
-
What was the specific prompt or task the agent was actively running when you switched tabs?
-
Did you switch to a new tab within the same workspace, or did you open a completely separate workspace or window?
-
If possible, could you share the error logs from the renderer? You can find these by opening the IDE developer tools (Help > Toggle Developer Tools), selecting the Console tab.
-
If possible, could you capture a quick screen recording of the issue occurring?
Hi @Ambati_Rajendra,
Thank you for the quick response! Here are the details you requested to help track down the bug:
-
Antigravity IDE Version: v2.5.5
-
Operating System: Windows 11 (as seen in my screenshot file naming convention)
-
Conversation Size: The conversation was exceptionally large, containing roughly 100 to 150 messages before I opened the new tab.
-
Large Files/Context: Yes, I was working on a large project. It involves codebase automation and multiple directories were active in the workspace.
-
Custom Context Settings: I am using standard project settings, no heavily modified custom .antigravityignore configurations.
-
Specific Prompt/Task: The agent was actively running a prompt to debug and fix an error inside the application code.
-
Workspace/Tab Switch: I switched to a new chat tab within the exact same active workspace window, not a separate workspace.
-
Logs & Screen Recording: Since the UI went completely blank/invisible after the clearance notice, I will try to replicate it again and capture the Console logs and a screen recording if it happens consistently.
I appreciate your help in getting this looked into by the engineering team!