Conversation
Add the ability to browse, resume, and delete past AI chat sessions. Sessions are stored per-project using StateManager metadata and JSON files on disk. The history dropdown shows recent sessions with relative timestamps, and clicking one restores the full visual state (messages, tool indicators, edits, errors, questions). Resumed sessions continue the Claude conversation via the SDK resume option. Also adds a project-switch warning when AI is streaming, resets the chat UI on project open, and saves partial history when a query is cancelled so it can be resumed later.
47 tests covering session metadata storage, chat history file round-trips, deletion, visual state restoration of all message bubble types (user, assistant, tool, tool_edit, error, question, edit_summary), and end-to-end save-load-render flows. Test data is stored as JSON fixtures in ai-history-test-files/.
…in_test_iframe tool The embedded Phoenix iframe inside SpecRunner was connecting to MCP independently, causing instance confusion. Now only the SpecRunner connects to MCP, and a new exec_js_in_test_iframe tool bridges JS execution to the iframe when needed.
AI entitlement is not yet implemented in the backend. Use getLiveEditEntitlement as a proxy for Pro plan status and add a TODO with the full getAIEntitlement flow for when the backend is ready.
|
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.


Add the ability to browse, resume, and delete past AI chat sessions. Sessions are stored per-project using StateManager metadata and JSON files on disk. The history dropdown shows recent sessions with relative timestamps, and clicking one restores the full visual state (messages, tool indicators, edits, errors, questions). Resumed sessions continue the Claude conversation via the SDK resume option.
Also adds a project-switch warning when AI is streaming, resets the chat UI on project open, and saves partial history when a query is cancelled so it can be resumed later.