Skip to content

Commit c7384c9

Browse files
committed
feat: add missing ai chat content
1 parent 70feede commit c7384c9

1 file changed

Lines changed: 32 additions & 8 deletions

File tree

docs/07-Pro Features/01-ai-chat.md

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,24 @@
22
title: AI Chat
33
---
44

5-
Phoenix Code comes with a built-in AI assistant powered by Claude Code. You can ask it to write code, fix bugs, explain files, and more. The AI can read and edit your project files, run terminal commands, take screenshots of your Live Preview, and work alongside you as you code.
5+
import React from 'react';
6+
import VideoPlayer from '@site/src/components/Video/player';
67

7-
> AI Chat is available only in desktop apps. Free users get a daily and monthly chat limit. [Upgrade to Phoenix Code Pro](https://phcode.io/pricing) for unlimited access.
8+
:::info Pro Feature
9+
[Upgrade to Phoenix Code Pro](https://phcode.io/pricing) to access this feature.
10+
:::
811

9-
<!-- Add an image here showing the AI Chat panel in the sidebar with a conversation -->
12+
Phoenix Code comes with a built-in AI assistant powered by Claude Code. You can ask it to write code, fix bugs, explain files, and more. The AI can read and edit your project files, run terminal commands, take screenshots, and work alongside you as you code.
13+
14+
> AI Chat is available only in desktop apps.
15+
16+
:::note
17+
Free users get a daily and monthly chat limit. [Upgrade to Phoenix Code Pro](https://phcode.io/pricing) for unlimited access.
18+
:::
19+
20+
<VideoPlayer
21+
src="https://docs-images.phcode.dev/website/videos/ai-pro-dialog.mp4"
22+
/>
1023

1124
## Getting Started
1225

@@ -28,6 +41,8 @@ Type your message in the input box at the bottom and press `Enter` to send. Pres
2841

2942
While the AI is working, you can type your next message. It shows up as a queued message and gets sent automatically once the AI finishes its current response.
3043

44+
To stop the AI mid-response, click the **stop button** *(square icon)* that appears next to the send button while the AI is working, or press `Escape`.
45+
3146
### Context
3247

3348
Phoenix Code automatically provides context about what you're working on. Small chips appear above the input box showing:
@@ -40,20 +55,26 @@ You can dismiss any of these by clicking the **x** button on the chip.
4055

4156
## Attachments and Screenshots
4257

43-
Click the **paperclip button** to attach files from your project. You can attach images (PNG, JPG, GIF, WebP, SVG) and other files like code or documents.
58+
Click the **paperclip button** to attach a file or folder. The dropdown lets you choose:
59+
60+
- **Attach a file** - attach a single file. Supported image formats include PNG, JPG, GIF, WebP, and SVG. You can also attach code or document files.
61+
- **Add folder as context** - attach an entire folder so the AI can read its contents.
62+
63+
You can also paste an image directly from your clipboard into the input box.
4464

4565
Click the **camera button** to take a screenshot and attach it. The dropdown lets you choose what to capture:
4666

4767
- **Live Preview** - your Live Preview panel (if open)
4868
- **Selected Element** - the currently selected element in Live Preview
4969
- **Full Editor** - the entire editor window
5070
- **Area** - a custom region you select with a crop tool
71+
- **Upload from Device** - choose an existing image from your computer instead of taking a new screenshot
5172

5273
## Permission Modes
5374

5475
The AI has three permission levels that control how much it can do on its own. Click the **permission label** at the bottom of the panel to cycle between them.
5576

56-
- **Plan** - the AI proposes a plan first. You review it and click **Approve** to proceed or **Revise** to give feedback. Good for complex tasks where you want to stay in control.
77+
- **Plan** - the AI proposes a plan first as a card in the chat (titled **Proposed Plan**). Click the **expand icon** in the card header to view the plan in full screen. Then click **Approve** to proceed, or **Revise** to open an inline feedback box where you describe what should change before the AI tries again. Good for complex tasks where you want to stay in control.
5778
- **Edit** (default) - the AI can read and edit files on its own, but asks for your approval before running terminal commands.
5879
- **Full Auto** - the AI works through everything without pausing. Terminal commands still ask for confirmation.
5980

@@ -67,9 +88,11 @@ Sessions are saved per project, so each project has its own chat history.
6788

6889
## Undo and Restore
6990

70-
Before the AI makes any edits, Phoenix Code creates a **restore point**. If you don't like the changes, click **Undo** on the edit summary card to revert all the files back to how they were.
91+
Before each AI response that edits files, Phoenix Code creates a **restore point**. Each edit summary card has a button to revert to that point: it reads **Undo** on the most recent response and **Restore to this point** on earlier ones. Both do the same thing: they roll your files back to the saved state.
92+
93+
The first time you undo or restore in a session, Phoenix Code shows a confirmation dialog before reverting.
7194

72-
If the AI made changes across multiple responses, you can click **Restore to this point** on any earlier edit summary to go back to that state.
95+
> Restore only reverts changes made by the AI. Edits you made outside the AI Chat are not tracked and may be lost if they overlap with files the AI also edited. For full version history, use version control like Git.
7396
7497
<!-- Add an image here showing an edit summary card with the Undo button and file change stats -->
7598

@@ -90,4 +113,5 @@ Click the **gear icon** in the chat panel to open AI settings. Here you can:
90113
| Send message | `Enter` |
91114
| New line | `Shift + Enter` |
92115
| Cycle permission mode | `Shift + Tab` |
93-
| Cancel or clear input | `Escape` |
116+
| Stop the AI mid-response | `Escape` (while AI is generating) |
117+
| Clear input and focus the editor | `Escape` (when idle) |

0 commit comments

Comments
 (0)