Skip to content

Feat/chatpage v1#8

Merged
coder-hhx merged 17 commits into
masterfrom
feat/chatpage-v1
Apr 13, 2026
Merged

Feat/chatpage v1#8
coder-hhx merged 17 commits into
masterfrom
feat/chatpage-v1

Conversation

@coder-hhx
Copy link
Copy Markdown
Owner

优化细节

…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.
@coder-hhx coder-hhx merged commit 4789786 into master Apr 13, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant