Agent chat: show the agent's answers as Markdown (#1778)

Thanks @Rec0iL.
This commit is contained in:
Rec0iL authored and GitHub committed 2026-10-16 13:26:23 -04:00
1 parent ff7c899840
commit 6496ec86ec
7 files changed
+564 -3

No files matched your search

+3
View File
@@ -149,6 +149,9 @@ The agent reaches the open design only through SolidCraft's own tools (the
a single undo step, named after your message. The conversation shows *N changes, one undo
step* with **Undo these changes** while nothing else has happened since.
- **Tool cards:** each tool call shows as a card with its state; click it to see what it returned.
- **Formatted text:** the agent's answers show as Markdown: headings, lists, quotes, code blocks
(with **Copy**), bold, italic, `code` and links (web links only; each link is a button that opens
it in your browser). What you type, and the agent's thoughts, stay plain text.
- **Attach view:** tick it to send a picture of the current view with your message, for agents
that take pictures.
+2 -1
View File
@@ -96,6 +96,7 @@ Code: `crates/ui-egui/src/agent_chat/`.
| `settings.rs` | Preferences → AI and the Add agent dialog. |
| `process.rs` | The agent as a child process in a process group of its own; stopping it ends the group. |
| `discover.rs` | Which agents are installed, their versions, whether they look signed in. |
| `markdown.rs`, `markdown_view.rs` | The agent's text as Markdown: a bounded reader, and its drawing (parsed once per item, again only when the text changes). |
| `gate.rs` | What the agent's tool requests may do: run, wait for Allow/Deny, or never. |
| `mod.rs` | The conversation, turns (undo as one step, the per-turn limit), held requests. |
| `panel.rs` | The panel: docking, minimising, picker, sign-in, conversation, input. |
@@ -208,7 +209,7 @@ returns the whole state, for tests and screenshots.
| Area | Work |
|---|---|
| Conversation | Markdown rendering, diffs, history per design, resume (`session/load`) |
| Conversation | Diffs, history per design, resume (`session/load`) |
| Session controls | Model and mode pickers from `configOptions` / `modes`, slash commands |
| Auth | An embedded terminal or "open a terminal here" for terminal logins on each OS; logout |
| Discovery | Read the ACP registry; keychain-aware login check on macOS |