feat(ai): model selector, chat sessions, markdown rendering, stop generating#28
Merged
Merged
Conversation
…erating, enhanced prompts AI chat pane improvements: - Model selector: configurable LLM model per provider (Anthropic/OpenAI) in settings - Chat sessions: persistent per-file sessions with create/switch/delete, localStorage-backed - Markdown rendering: react-markdown + remark-gfm for AI responses with Tailwind styling - Stop generating: AbortController (browser) + Arc<AtomicBool> (Rust) cancel mechanism - System prompts: enhanced STRIDE expertise, canvas positioning guidance, position data in context Code quality fixes from deep review: - cancel_chat_stream returns Result<(), String> per project convention - Runtime value imports for MAX_SESSIONS_PER_FILE/MAX_MESSAGES_PER_SESSION (no magic numbers) - migrateSessionKey wired up in AiChatTab to prevent session loss on Save As - XSS safety comment on MarkdownContent (rehype-raw intentionally omitted) Docs updated: architecture, product-design, overview, market-analysis, releasing runbook, CLAUDE.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Code quality fixes
cancel_chat_streamreturnsResult<(), String>per project conventionmigrateSessionKeywired up to prevent session loss on Save AsDocs updated
Test plan
npx biome check --write .— clean (1 pre-existing CSS warning)cargo clippy— cleannpx vitest --run— 416 tests passcargo test— 59 tests pass🤖 Generated with Claude Code