Feat/chatpage v1#8
Merged
Merged
Conversation
…Prompt Phase A of ChatPage v1.0 implementation: Backend: - Extract sandbox logic (run_code, install_packages, templates) from cratebay-mcp to cratebay-core/src/sandbox.rs for sharing - Add Tauri commands: sandbox_run_code, sandbox_install - MCP layer now delegates to core sandbox module Frontend: - Add sandboxTools.ts (sandbox_run_code + sandbox_install Agent Tools) - Add sandboxStore.ts (session→sandbox binding) - Rewrite systemPrompt.ts: "code execution assistant" positioning, prioritizes sandbox_run_code tool, dynamic sandbox state injection - Register sandbox tools in tools/index.ts (placed first in tool list) All cargo tests pass. Workspace compiles clean.
Phase B: Provider configuration improvements - Enhanced settingsStore with requestFormat and reasoning level support - Improved ProviderForm with API format auto-detection from URL suffix - ReasoningEffort selector component - Updated i18n strings (en + zh-CN) Phase C: Chat UI enhancements - New ToolCallItem component with status indicators (yellow pulse/green/red) - New ThinkingBlock component with collapsible thinking process - New SandboxBar component showing active sandbox status - Updated MessageBubble to use new ToolCallItem and ThinkingBlock - Updated ChatInput with model selector integration - Updated MessageList welcome screen with sandbox-focused suggestions Upgraded pi-agent-core + pi-ai from 0.61.0 to 0.63.2. Frontend build passes. Rust workspace compiles clean.
All 4 phases complete: - Phase A: sandbox core + Tauri commands + Agent Tools + System Prompt - Phase B: provider config improvements (requestFormat, reasoning, auto-detect) - Phase C: UI enhancements (ToolCallItem, ThinkingBlock, SandboxBar, welcome page) - Phase D: tests pass (348 Rust + frontend build clean), docs updated
Navigation: 5 pages → 4 pages - Removed MCP from sidebar navigation - Added MCP as a tab in Settings page (between Runtime and Advanced) - Updated appStore PageId type - Updated Sidebar navItems Product positioning update: - CrateBay = open-source container management + AI sandbox (two pillars) - vs Docker Desktop: open-source, cross-platform, built-in AI - vs OrbStack: open-source, cross-platform (not macOS only) - vs E2B/Modal: local execution, zero cost, full privacy - Updated AGENTS.md, README.md, progress.md
- Translate "Sandbox Images" / "User Images" / "System" badge (en + zh-CN) - Increase logo top padding from 34px to 42px for better breathing room
Replace compile-time #[cfg(target_arch)] with runtime std::env::consts::ARCH detection for selecting the correct runtime image. This enables a single app bundle to support both Intel and ARM Macs (Universal Binary).
Ensure packaged apps include the runtime assets and entitlements needed to start reliably, and keep container creation state consistent during refreshes so testers see accurate UI feedback across locales.
Keep the npm lockfile aligned with the current GUI dependencies so pre-push npm ci checks pass before publishing the branch.
Keep the frontend i18n contract and sandbox tool helpers aligned with current usage so pre-push type checks succeed before publishing the branch.
Keep layout tests checking the actual default English labels, version, and navigation entries so local CI validates the current UI instead of stale expectations.
Keep agent flow tests aligned with the current system prompt wording so local frontend CI validates real behavior instead of removed section titles.
Update the GUI test suite to match the current four-page navigation and MCP-in-Settings flow. Add the CLI compatibility commands required by local smoke checks so pre-push validation can complete successfully.
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.
优化细节